TongTong Shi's Blog
A Playground to Share My Knowledge
Find Peak Element Find Peak Element
LeetCode Q 162 - Find Peak ElementA peak element is an element that is greater than its neighbors.Given an input array n
2019-04-14 Tong Shi
Count Complete Tree Nodes Count Complete Tree Nodes
LeetCode Q 222 - Count Complete Tree NodesGiven a complete binary tree, count the number of nodes. Note:Definition of a
2019-04-14 Tong Shi
Search a 2D Matrix II Search a 2D Matrix II
LeetCode Q 240 - Search a 2D Matrix IIWrite an efficient algorithm that searches for a value in an m x n matrix. This ma
2019-04-14 Tong Shi
Search a 2D Matrix Search a 2D Matrix
LeetCode Q 74 - Search a 2D MatrixWrite an efficient algorithm that searches for a value in an m x n matrix. This matrix
2019-04-12 Tong Shi
Find First and Last Position of Element in Sorted Array Find First and Last Position of Element in Sorted Array
LeetCode Q 34 - Find First and Last Position of Element in Sorted ArrayGiven an array of integers nums sorted in ascendi
2019-04-12 Tong Shi
Search Insert Position Search Insert Position
LeetCode Q 35 - Search Insert PositionGiven a sorted array and a target value, return the index if the target is found.
2019-04-12 Tong Shi
71 / 79