Answer (12)
- Find Square Root
- For large multimplication, one number must be
long longand the variable which store the result also belong long(ex:long long m = (long long)val * val)
- For large multimplication, one number must be
- Find Nth Root
pow(mid, n)works here
- Koko Eating Banans
- Bouquets
low = min(bloomDay)high = max(bloomDay)- Can we make
mbouquets on day= mid? - Count consecutive bloomed flowers (
bloomDay[i] <= mid)- When
count == k→ 1 bouquet formed
- When
- Smallest Divisor
- Capacity to Ship
- Kth Missing Positive Number
- Aggresive Cows
- Book Allocation
- Split array - Largest Sum
- Painter's partition
- Minimize Max Distance to Gas Station
- Median of 2 sorted arrays
- Kth element of 2 sorted arrays