Day 2 โ LeetCode Learning Log
๐ Building Blocks I Practiced Today
Binary Search
Searching algorithm used in sorted arrays.
O(logn) time, O(1) space
Prone to Negative values, Unsorted array
int l = 0, r = nums.length - 1;
while(l <= r){
int mid = l + (r -...
ayush-30-days-of-leetcode.hashnode.dev2 min read