查找 substr 所指的空终止字节字符串在 str 所指的空终止字节字符串中的首次出现。不比较空终止字符。 ...
分类:
其他好文 时间:
2018-02-05 23:18:49
阅读次数:
190
Implement pow(x, n). Example 1: Example 2: ...
分类:
其他好文 时间:
2018-02-05 18:40:31
阅读次数:
144
Implement pow(x, n). Notice You don't need to care about the precision of your answer, it's acceptable if the expected answer and your answer 's diffe ...
分类:
其他好文 时间:
2018-02-04 21:00:42
阅读次数:
136
Implement a stack with min() function, which will return the smallest number in the stack. It should support push, pop and min operation all in O(1) c ...
分类:
其他好文 时间:
2018-02-04 13:56:09
阅读次数:
144
8. String to Integer (atoi) Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challen ...
分类:
其他好文 时间:
2018-02-03 00:42:45
阅读次数:
168
3. Longest Substring Without Repeating Characters (medium) 最长的无重复的子字符串 Given a string, find the length of the longest substring without repeating char ...
分类:
其他好文 时间:
2018-02-01 10:45:51
阅读次数:
180
【题目描述】 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not ...
分类:
其他好文 时间:
2018-01-27 11:30:18
阅读次数:
142
用队列实现栈。这个实现方法十分的简单,就是在push这一步的时候直接变成逆序。 ...
分类:
其他好文 时间:
2018-01-26 22:45:23
阅读次数:
184
Servlet入门外2 Servlets 执行 javax.servlet.Servlet interface. 当servlet编写者可以通过直接implement interface开发servlet, 但这样通常没有必要. 因为大多数servlet是针对用HTTP协议的web服务器, 这样最通 ...
分类:
其他好文 时间:
2018-01-25 15:39:00
阅读次数:
142
String to Integer (atoi) 题解 题目来源:https://leetcode.com/problems/string to integer atoi/description/ Description Implement atoi to convert a string to a ...
分类:
其他好文 时间:
2018-01-25 11:05:54
阅读次数:
97