Leetcode 162: Find Peak Element
The original question can be found here. It’s asking us to find an element that is grater than both left […]
The original question can be found here. It’s asking us to find an element that is grater than both left […]
The original question can be found here. The question is asking us to find a target element in rotated sorted
The original question can be found here. The question is asking us to find the minimum element in a rotated
The original question can be found here. The question is asking us to return a peak element, which means, an
The original question can be found here. The question is asking to return the k closet elements to target x.
The original question can be found here. The question is asking us to return the index of a target element,
The original question can be found here. The question is asking to return a tuple with first and last position
The original question can be found here. The question is asking us to perform a binary search on an sorted
Introduction Java Optional is a container class that encapsulates an optional value, which was introduced by Java 8. However, I
Introduction Sometimes we need to infer algorithms by time complexity. After we bring out the brute force solution, the interviewer