摘要:
Counting Elements Given an integer array arr, count element x such that x + 1 is also in arr. If there're duplicates in arr, count them seperately. Ex 阅读全文
摘要:
leetcode 49. Group Anagrams Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ 阅读全文
摘要:
leetcode 122. Best Time to Buy and Sell Stock II 相关链接 "leetcode" 描述 Say you have an array for which the ith element is the price of a given stock on d 阅读全文
摘要:
leetcode 121. Best Time to Buy and Sell Stock 相关链接 "leetcode" 描述 Say you have an array for which the ith element is the price of a given stock on day 阅读全文
摘要:
leetcode 53. Maximum Subarray 链接 "leetcode" 描述 Given an integer array nums, find the contiguous subarray (containing at least one number) which has th 阅读全文
摘要:
leetcode 202. Happy Number 相关链接 "LeetCode" 描述 Write an algorithm to determine if a number is "happy". A happy number is a number defined by the follow 阅读全文
摘要:
136.Single Number 相关链接 "leetcode" 背景知识 Concept原理 If we take XOR of zero and some bit, it will return that bit a⊕0=a(0异或任何数得任何数) If we take XOR of two 阅读全文
摘要:
703. Kth Largest Element in a Stream & c++ priority_queue & minHeap/maxHeap 相关链接 "leetcode" "c++ priority_queue cplusplus" "c++ priority_queue cnblog" 阅读全文
摘要:
[leetcode]1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree 链接 "leetcode" 描述 Given two binary trees original and cloned and giv 阅读全文