LeetCode 162: Find Peak Element
A peak element is an element that is greater than its neighbors.
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise).
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai).
Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist.
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value.