"Example:
bucket A: 3 liters capacity
bucket B: 5 liters capacity
goal: 4 liters
You are asked to print the logical sequence to get to the 4 liters of water in one bucket.
Follow up:
How would you solve the problem if you have more than 2 buckets of water?"
B. T. - "Example:
bucket A: 3 liters capacity
bucket B: 5 liters capacity
goal: 4 liters
You are asked to print the logical sequence to get to the 4 liters of water in one bucket.
Follow up:
How would you solve the problem if you have more than 2 buckets of water?"See full answer
"Clarifying scope : This is a feature on top of existing swiggy app to deliver prepared food for health-conscious people
Clarify the term health conscious :
Calory counters
Macro trackers : Need balance of carb, protein, fat etc.
Fresh Eaters :Need fresh ingredients
Allergic due to some ingredient
Ill people
There can be various user personas along with respective pain points are:
1) Gym goers : No way to count the calories or track macro intakes in a swiggy order
2) Fresh eaters : Lack"
Rohit K. - "Clarifying scope : This is a feature on top of existing swiggy app to deliver prepared food for health-conscious people
Clarify the term health conscious :
Calory counters
Macro trackers : Need balance of carb, protein, fat etc.
Fresh Eaters :Need fresh ingredients
Allergic due to some ingredient
Ill people
There can be various user personas along with respective pain points are:
1) Gym goers : No way to count the calories or track macro intakes in a swiggy order
2) Fresh eaters : Lack"See full answer
"ArrayList allows constant time access (O(1)) to elements using their index because it uses a dynamic array internally, whereas LinkedList requires traversal from the head node, resulting in linear time complexity (O(n))."
Aziz V. - "ArrayList allows constant time access (O(1)) to elements using their index because it uses a dynamic array internally, whereas LinkedList requires traversal from the head node, resulting in linear time complexity (O(n))."See full answer