上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 28 下一页
摘要: 题目: Implement int sqrt(int x). 实现int sqrt(int x)。 Compute and return the square root of x, where x is guaranteed to be a non-negative integer. 计算并返回x的 阅读全文
posted @ 2018-09-18 10:56 chan_ai_chao 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 题目: Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses. 冬天来了!您在比赛期间的第一份工 阅读全文
posted @ 2018-09-17 21:01 chan_ai_chao 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 题目: Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 返回haystack中第一次出现针的索引, 阅读全文
posted @ 2018-09-17 16:24 chan_ai_chao 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 题目: Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... 找到无限整数序列的第n个数字1,2,3,4,5,6,7,8,9,10,11 ...... Note:n is 阅读全文
posted @ 2018-09-17 16:03 chan_ai_chao 阅读(95) 评论(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 - 阅读全文
posted @ 2018-09-15 22:26 chan_ai_chao 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a program to find the node at which the intersection of two singly linked lists begins. 编写程序以找到两个单链表开头的节点。 For example, the following two li 阅读全文
posted @ 2018-09-14 15:41 chan_ai_chao 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. 阅读全文
posted @ 2018-09-13 20:57 chan_ai_chao 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a function to find the longest common prefix string amongst an array of strings. 编写一个函数来查找字符串数组中最长的公共前缀字符串。 If there is no common prefix, re 阅读全文
posted @ 2018-09-13 20:36 chan_ai_chao 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. 给定字符串s由大写/小写 阅读全文
posted @ 2018-09-13 19:59 chan_ai_chao 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. 给定非负整数c,您的任务是确定是否存在两个整数a和b,使得a 阅读全文
posted @ 2018-09-13 10:09 chan_ai_chao 阅读(99) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 28 下一页