nextdoor_techie's profile picture. Go Lang Backend Developer striving to be the best at what I do. 
Welcome to my coding journey :)

Linkedin - http://linkedin.com/in/kp30/

Kamal Pratik

@nextdoor_techie

Go Lang Backend Developer striving to be the best at what I do. Welcome to my coding journey :) Linkedin - http://linkedin.com/in/kp30/

Aggresive Cows : 🟢 Range : 1 to maximum element in array 🟢 Check to find if k cows can be placed with the current mid. 🟢 If yes then store potential ans and discard left half 🟢 Else discard right half 🟢 Repeat in loop until low<=high 🟢 return ans #DSA #BinarySearch

nextdoor_techie's tweet image. Aggresive Cows :
🟢 Range :  1 to maximum element in array
🟢 Check to find if k cows can be placed with the current mid. 
🟢 If yes then store potential ans and discard left half 
🟢 Else discard right half
🟢 Repeat in loop until low&amp;lt;=high
🟢 return ans
#DSA #BinarySearch

#Day3 : Binary Search Trick here is to identify if it is a binary search question. 🟢 Koko Eating Bananas 🟢 Minimum days to make M bouquets 🟢 FInd Smallest Divisor 🟢 Capacity to Ship Packages within D Days 🟢 Kth Missing Positive Number


#day2 : Binary Search *Find out how many times an array is rotated *Single element in Sorted array *FInd Peak Element *Find square root of a number


Algo : *Since the sorted array is rotated, One half will always be sorted and other will be unsorted. *FInd out which half is sorted and unsorted by comparing nums[m] to nums[l] and nums[h]. *Eliminate one half based on the requirement. *Repeat.

#Day2-Binary Search Search in Rotated Sorted Array. Search in Rotated Sorted Array with Duplicate Elements. Search minimum elements in Rotated Sorted Array.



#Day2-Binary Search Search in Rotated Sorted Array. Search in Rotated Sorted Array with Duplicate Elements. Search minimum elements in Rotated Sorted Array.


Weekly Target DSA : Finish Binary Search from @striver_79 AtoZ Sheet DEV : Start a project


United States Trends

Loading...

Something went wrong.


Something went wrong.