上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 54 下一页
摘要: Compare two strings A and B, determine whether A contains all of the characters in B. The characters in string A and B are all Upper Case letters. Not 阅读全文
posted @ 2016-07-06 12:17 北叶青藤 阅读(171) 评论(0) 推荐(0)
摘要: Reverse Words in a String I Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". 阅读全文
posted @ 2016-07-06 12:01 北叶青藤 阅读(180) 评论(0) 推荐(0)
摘要: Maximum Subarray Given an array of integers, find a contiguous subarray which has the largest sum. Notice The subarray should contain at least one num 阅读全文
posted @ 2016-07-06 11:10 北叶青藤 阅读(217) 评论(0) 推荐(0)
摘要: Search a 2D Matrix II Write an efficient algorithm that searches for a value in an m x n matrix, return the occurrence of it. This matrix has the foll 阅读全文
posted @ 2016-07-06 10:43 北叶青藤 阅读(211) 评论(0) 推荐(0)
摘要: For a given source string and a target string, you should output the first index(from 0) of target string in source string. If target does not exist i 阅读全文
posted @ 2016-07-06 08:27 北叶青藤 阅读(168) 评论(0) 推荐(0)
摘要: Given a string and an offset, rotate string by offset. (rotate from left to right) Given a string and an offset, rotate string by offset. (rotate from 阅读全文
posted @ 2016-07-06 08:21 北叶青藤 阅读(235) 评论(0) 推荐(0)
摘要: Unique Paths I A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or 阅读全文
posted @ 2016-07-06 07:39 北叶青藤 阅读(164) 评论(0) 推荐(0)
摘要: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example Given lists: [ 2->4->null, null, -1->null ] 阅读全文
posted @ 2016-07-06 07:22 北叶青藤 阅读(173) 评论(0) 推荐(0)
摘要: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all 阅读全文
posted @ 2016-07-06 07:06 北叶青藤 阅读(173) 评论(0) 推荐(0)
摘要: Ugly Number Write a program to check whether a given number is an ugly number`. Ugly numbers are positive numbers whose prime factors only include 2,  阅读全文
posted @ 2016-07-06 04:12 北叶青藤 阅读(333) 评论(0) 推荐(0)
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 54 下一页