摘要: 89. Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing 阅读全文
posted @ 2019-04-07 22:00 mingL 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 88. Merge Sorted Array Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1as one sorted array. Note: The number of elements initia 阅读全文
posted @ 2019-04-07 21:37 mingL 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 87. Scramble String Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one p 阅读全文
posted @ 2019-04-07 21:27 mingL 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 86. Partition List Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You s 阅读全文
posted @ 2019-04-07 21:04 mingL 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 85. Maximal Rectangle Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example: 阅读全文
posted @ 2019-04-07 20:54 mingL 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 84. Largest Rectangle in Histogram Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the ar 阅读全文
posted @ 2019-04-07 20:36 mingL 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 83. Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Example 2 阅读全文
posted @ 2019-04-07 20:35 mingL 阅读(80) 评论(0) 推荐(0) 编辑