01 2018 档案
LeetCode解题报告—— Search in Rotated Sorted Array & Search for a Range & Valid Sudoku
摘要:1. Search in Rotated Sorted Array Suppose an array sorted in ascending order is rotated(轮流,循环) at some pivot(枢轴; 中心点) unknown to you beforehand(提前; 事先 阅读全文
posted @ 2018-01-30 18:42 f91og 阅读(219) 评论(0) 推荐(0)
LeetCode解题报告—— Swap Nodes in Pairs & Divide Two Integers & Next Permutation
摘要:1. Swap Nodes in Pairs Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the li 阅读全文
posted @ 2018-01-19 17:44 f91og 阅读(173) 评论(0) 推荐(0)
LeetCode解题报告—— 4Sum & Remove Nth Node From End of List & Generate Parentheses
摘要:1. 4Sum Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the ar 阅读全文
posted @ 2018-01-16 15:19 f91og 阅读(180) 评论(0) 推荐(0)
LeetCode解题报告—— Container With Most Water & 3Sum Closest & Letter Combinations of a Phone Number
摘要:1. Container With Most Water Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are 阅读全文
posted @ 2018-01-14 23:18 f91og 阅读(203) 评论(0) 推荐(0)
LeetCode解题报告—— 2 Keys Keyboard & Longest Palindromic Substring & ZigZag Conversion
摘要:1. Longest Palindromic Substring Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. E 阅读全文
posted @ 2018-01-13 20:30 f91og 阅读(233) 评论(0) 推荐(0)
LeetCode解题报告—— 1-bit and 2-bit Characters & 132 Pattern & 3Sum
摘要:1. 1-bit and 2-bit Characters We have two special characters. The first character can be represented by one bit 0. The second character can be represe 阅读全文
posted @ 2018-01-09 11:18 f91og 阅读(287) 评论(0) 推荐(0)