摘要: 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 should preserve the 阅读全文
posted @ 2018-10-25 18:50 Veritas_des_Liberty 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 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: AC code: Runtime: 12 ms 阅读全文
posted @ 2018-10-25 16:31 Veritas_des_Liberty 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist 阅读全文
posted @ 2018-10-25 12:20 Veritas_des_Liberty 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Example 2: my code: Runtime: 12 ms, faster than  阅读全文
posted @ 2018-10-25 10:52 Veritas_des_Liberty 阅读(148) 评论(0) 推荐(0) 编辑