shuaijiang's blog
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于

LeetCode Next Permutation

DescriptionImplement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest
7月 24 2015
#leetcode

LeetCode Reverse Nodes In K Group

DescriptionGiven a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain
7月 23 2015
#leetcode

LeetCode Sliding Window Maximum

DescriptionGiven an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the slidi
7月 23 2015
#leetcode

LeetCode Minimum Size Subarray Sum

DescriptionGiven an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn’t one, return 0 instead. For example, given the arra
7月 23 2015
#leetcode

LeetCode Longest Consecutive Sequence

DescriptionGiven an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1, 3, 2],The longest consecutive elements sequence is [1,
7月 23 2015
#leetcode

LeetCode Search A 2D Matrix 2

DescriptionWrite an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted in ascending from left to right.Integers
7月 23 2015
#leetcode

LeetCode Add Binary

DescriptionGiven two binary strings, return their sum (also a binary string). For example,a = “11”b = “1”Return “100”. The original problem is here. The original code is here.
7月 22 2015
#leetcode

LeetCode Decode Ways

DescriptionA message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message con
7月 22 2015
#leetcode

LeetCode Median of Two Sorted Arrays

DescriptionThere are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). The original prob
7月 22 2015
#leetcode

LeetCode Search For A Range

DescriptionGiven a sorted array of integers, find the starting and ending position of a given target value. Your algorithm’s runtime complexity must be in the order of O(log n). If the target is not f
7月 21 2015
#leetcode
1…1011121314…26

搜索

Hexo Fluid
总访问量 次 总访客数 人
京ICP证123456号 | police-icon 京公网安备12345678号