 ## 162. Find Peak Element

A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠… ## 287. Find the Duplicate Number

Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), pro… ## 49. Group Anagrams

Given an array of strings, group anagrams together. For example, given: [“eat”, “tea”, “tan”, “ate”,… ## Array解题方法小结

LeetCode上的相关题目(easy) 26,  27, 35, 48, 88 118, 119, 121, 122, 136, 162, 167, 169 217, 219, 243, 268, … ## LeetCode – 48. Rotate Image

You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). … ## LeetCode – 581. Shortest Unsorted Continuous Subarray

Given an integer array, you need to find one continuous subarray that if you only sort this subarray… ## LeetCode – 119. Pascal’s Triangle II

Given an index k, return the kth row of the Pascal’s triangle. For example, given k = 3, Retur… ## LeetCode – 118. Pascal’s Triangle

Given numRows, generate the first numRows of Pascal’s triangle. For example, given numRows = 5… ## LeetCode – 243. Shortest Word Distance

Given a list of words and two words word1 and word2, return the shortest distance between these two … ## LeetCode – 520. Detect Capital

Given a word, you need to judge whether the usage of capitals in it is right or not. We define the u…