You are given an
n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise)
Given a string containing only digits, restore it by returning all possible valid IP address combinations. Order of the result does not matter.
Given a binary tree, return a deep copy of it.
Given two strings, find the length of the longest common subsequence (LCS).
Implement a trie with insert, search, and startsWith methods.
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a roman numeral, convert it to an integer.
Given an integer, in the range of 1 to 3999, convert it to a Roman numeral.
Given an integer array
A, a peak element with index
p is defined as
A[p] > A[p - 1] && A[p] > A[p + 1]. Find a peak element in this array and return its index. The array may contains multiple peeks; return any of them.