📅 Day 2: March 21,2022
Problem Solved today:
Minimize the Height of Tower
duplicate number(O(n) with constant space
Things i Learned:
- This problem took lot of effort(3hrs) as dealing with negative test cases was getting complex.
-
The second problem could be solved in multiple ways:
- 1. XOR operation[xor of same two number is 0] - 2. Standard Floyd's tortoise and hare algorithm
-I used the first approach but the second option is a lot faster
Result:
Top comments (0)