House Robber IV

ProblemTC: O(nlog(Max(nums))) ⛶class Solution { public int minCapability(int[] nums, int k) { int index = 0; int low = Integer.MAX_VALUE; int high = 0; for(int i...
0 Read More

Minimum Time to repair cars

Problem TC: O(nlog(k)), where k is the max time in the range between 1 to r*n^2 ⛶class Solution { public long repairCars(int[] ranks, int cars) { long low = 1;// atleat one lowute will b...
0 Read More