原创 LeetCode 400. Nth Digit

原題網址:https://leetcode.com/problems/nth-digit/ Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7

原创 454. 4Sum II

原題網址:https://leetcode.com/problems/4sum-ii/ Given four lists A, B, C, D of integer values, compute how many tuples (i

原创 LeetCode 460. LFU Cache

原題網址:https://leetcode.com/problems/lfu-cache/ Design and implement a data structure for Least Frequently Used (LFU) c

原创 LeetCode 450. Delete Node in a BST

原題網址:https://leetcode.com/problems/delete-node-in-a-bst/ Given a root node reference of a BST and a key, delete the n

原创 LeetCode 473. Matchsticks to Square

原題網址:https://leetcode.com/problems/matchsticks-to-square/ Remember the story of Little Match Girl? By now, you know e

原创 LeetCode 451. Sort Characters By Frequency

原題網址:https://leetcode.com/problems/sort-characters-by-frequency/ Given a string, sort it in decreasing order based on

原创 LeetCode 448. Find All Numbers Disappeared in an Array

原題網址:https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/ Given an array of integers where 1 ≤ a[i

原创 LeetCode 396. Rotate Function

原題網址:https://leetcode.com/problems/rotate-function/ Given an array of integers A and let n to be its length. Assume 

原创 469. Convex Polygon

原題網址:https://leetcode.com/problems/convex-polygon/ Given a list of points that form a polygon when joined sequentiall

原创 LeetCode 477. Total Hamming Distance

原題網址:https://leetcode.com/problems/total-hamming-distance/ The Hamming distance between two integers is the number of

原创 LeetCode 445. Add Two Numbers II

原題網址:https://leetcode.com/problems/add-two-numbers-ii/ You are given two linked lists representing two non-negative n

原创 452. Minimum Number of Arrows to Burst Balloons

原題網址:https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/ There are a number of spherical balloo

原创 456. 132 Pattern

原題網址:https://leetcode.com/problems/132-pattern/ Given a sequence of n integers a1, a2, ..., an, a 132 pattern is a s

原创 LeetCode 449. Serialize and Deserialize BST

原題網址:https://leetcode.com/problems/serialize-and-deserialize-bst/ Serialization is the process of converting a data s

原创 LeetCode 474. Ones and Zeroes

原題網址:https://leetcode.com/problems/ones-and-zeroes/ In the computer world, use restricted resource you have to genera