上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
  2017年7月17日
摘要: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be 阅读全文
posted @ 2017-07-17 20:21 无惧风云 阅读(119) 评论(0) 推荐(0)
摘要: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they 阅读全文
posted @ 2017-07-17 20:08 无惧风云 阅读(137) 评论(0) 推荐(0)
摘要: Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note:n is positive and will fit within the range of a 32-bi 阅读全文
posted @ 2017-07-17 19:45 无惧风云 阅读(173) 评论(0) 推荐(0)
摘要: Description: Count the number of prime numbers less than a non-negative number, n. 阅读全文
posted @ 2017-07-17 10:21 无惧风云 阅读(157) 评论(0) 推荐(0)
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan 阅读全文
posted @ 2017-07-17 09:26 无惧风云 阅读(206) 评论(0) 推荐(0)
  2017年7月16日
摘要: Implement int sqrt(int x). Compute and return the square root of x. 阅读全文
posted @ 2017-07-16 22:12 无惧风云 阅读(118) 评论(0) 推荐(0)
  2017年7月13日
摘要: Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Example 2: 阅读全文
posted @ 2017-07-13 10:15 无惧风云 阅读(172) 评论(0) 推荐(0)
  2017年7月7日
摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文
posted @ 2017-07-07 10:58 无惧风云 阅读(95) 评论(0) 推荐(0)
摘要: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enough space (size tha 阅读全文
posted @ 2017-07-07 10:47 无惧风云 阅读(111) 评论(0) 推荐(0)
摘要: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 阅读全文
posted @ 2017-07-07 10:22 无惧风云 阅读(174) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页