摘要: 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 阅读全文
posted @ 2021-08-30 21:50 墨云黑 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-08-26 23:14 墨云黑 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-06-14 20:51 墨云黑 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 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. 阅读全文
posted @ 2021-06-10 22:38 墨云黑 阅读(50) 评论(0) 推荐(0) 编辑
摘要: Construct Binary Tree from Preorder and Inorder Traversal (M) 题目 Given preorder and inorder traversal of a tree, construct the binary tree. Note: You 阅读全文
posted @ 2021-06-08 22:15 墨云黑 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-06-07 22:00 墨云黑 阅读(43) 评论(0) 推荐(0) 编辑
摘要: Longest Consecutive Sequence (M) 题目 Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must 阅读全文
posted @ 2021-06-06 21:29 墨云黑 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 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' 阅读全文
posted @ 2021-06-04 22:46 墨云黑 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-06-03 22:46 墨云黑 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-06-02 22:27 墨云黑 阅读(58) 评论(0) 推荐(0) 编辑