Skip to content

Instantly share code, notes, and snippets.

View KeshariPiyush24's full-sized avatar
🏠
Working from home

Piyush Keshari KeshariPiyush24

🏠
Working from home
View GitHub Profile
@KeshariPiyush24
KeshariPiyush24 / elastic-collision-2d-no-gravity.markdown
Created April 25, 2020 05:38
Elastic Collision 2D(No Gravity)
@KeshariPiyush24
KeshariPiyush24 / Notes.md
Last active September 21, 2024 05:29
Binary Search

Question: 704 Binary Search

Intution:

Time Complexity: $$O(log(n))$$

Space Complexity: $$O(1)$$

Solution:

@KeshariPiyush24
KeshariPiyush24 / Notes.md
Last active September 21, 2024 05:28
Search Insert Position
@KeshariPiyush24
KeshariPiyush24 / Notes.md
Last active September 21, 2024 05:28
Sqrt(x)

Question: 69. Sqrt(x)

Intution:

Time Complexity: $$O(log(n))$$

Space Complexity: $$O(1)$$

Solution:

@KeshariPiyush24
KeshariPiyush24 / Notes.md
Created September 21, 2024 05:14
374. Guess Number Higher or Lower
@KeshariPiyush24
KeshariPiyush24 / Notes.md
Created September 21, 2024 05:31
278. First Bad Version

Question: 278. First Bad Version

Intution:

Time Complexity: $$O(log(n))$$

Space Complexity: $$O(1)$$

Solution:

@KeshariPiyush24
KeshariPiyush24 / Notes.md
Created September 21, 2024 05:32
744. Find Smallest Letter Greater Than Target
@KeshariPiyush24
KeshariPiyush24 / Notes.md
Created September 21, 2024 05:34
441. Arranging Coins

Question: 441. Arranging Coins

Intution:

Time Complexity: $$O(log(n))$$

Space Complexity: $$O(1)$$

Solution:

@KeshariPiyush24
KeshariPiyush24 / Notes.md
Last active September 21, 2024 05:36
367. Valid Perfect Square
@KeshariPiyush24
KeshariPiyush24 / Notes.md
Created September 21, 2024 05:39
153. Find Minimum in Rotated Sorted Array