摘要:
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)