摘要:
Serialize and Deserialize Binary Tree (H) 题目 Serialization is the process of converting a data structure or object into a sequence of bits so that it 阅读全文
摘要:
Binary Tree Maximum Path Sum (H) 题目 A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge conne 阅读全文
摘要:
Maximum Units on a Truck (E) 题目 You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i] = [n 阅读全文
摘要:
My Calendar I (M) 题目 Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. 阅读全文
摘要:
Construct Binary Tree from Preorder and Inorder Traversal (M) 题目 Given preorder and inorder traversal of a tree, construct the binary tree. Note: You 阅读全文
摘要:
Min Cost Climbing Stairs (E) 题目 You are given an integer array cost where cost[i] is the cost of ith step on a staircase. Once you pay the cost, you c 阅读全文
摘要:
Longest Consecutive Sequence (M) 题目 Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must 阅读全文
摘要:
Open the Lock (M) 题目 You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' 阅读全文
摘要:
Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts (M) 题目 Given a rectangular cake with height h and width w, and two arrays of intege 阅读全文
摘要:
Interleaving String (M) 题目 Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings s a 阅读全文