码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
7kyu Binary Addition
题目: Implement a function that adds two numbers together and returns their sum in binary. The conversion can be done before, or after the addition. The ...
分类:其他好文   时间:2017-08-08 13:56:39    阅读次数:122
内容拾遗之str
str: a.创建方法: s1='hello' s1=str('hello') b.特有功能 s1.strip() #两端去除空格 s1.find() #找子序列 s1.startswith() #以.....开头 s1.endswith() #以....结尾 s1.replace() #将字符串替 ...
分类:其他好文   时间:2017-08-06 12:42:09    阅读次数:151
C中strstr的实现方法
做题目的时候须要自己实现strstr函数 /************************************************************************/ /* 编写函数IND。让它推断一个字符串是否为还有一个字符串的子串的功能。若是则返回第一次出现的起始位置,否 ...
分类:其他好文   时间:2017-08-04 13:47:30    阅读次数:144
Object、Objects
Constructor Object() Method Object clone() // protected shallow copy ,override it as public if the subclass use this method , // implement the Cloneab ...
分类:其他好文   时间:2017-08-02 23:23:28    阅读次数:166
[LeetCode] 208. Implement Trie (Prefix Tree)
https://leetcode.com/problems/implement-trie-prefix-tree/#/description Implement a trie with insert, search, and startsWith methods. Note:You may assu ...
分类:其他好文   时间:2017-08-02 10:20:42    阅读次数:141
leetcode- 232. Implement Queue using Stacks
使用栈实现队列: 将栈中的元素取出再存入一次就是队列: 更简单一点实现,pop和top的实现互相借助时: ...
分类:其他好文   时间:2017-08-02 10:13:56    阅读次数:161
8. String to Integer (atoi)
https://leetcode.com/problems/string-to-integer-atoi/description/ Implement atoi to convert a string to an integer. Hint: Carefully consider all possi ...
分类:其他好文   时间:2017-08-01 23:01:39    阅读次数:186
[LeetCode] 284. Peeking Iterator Java
题目: Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- ...
分类:编程语言   时间:2017-07-31 20:50:13    阅读次数:155
[LeetCode] 208. Implement Trie (Prefix Tree) Java
题目: Implement a trie with insert, search, and startsWith methods. Note:You may assume that all inputs are consist of lowercase letters a-z. 题意及分析:实现一个 ...
分类:编程语言   时间:2017-07-31 19:55:04    阅读次数:131
leetcode- 225 Implement Stack using Queues
stack: 先进后出 pop(); push(); top(); size(); empty() queue: 先进先出 pop(); push(); front(); back(); size(); empty() 使用队列实现栈: 最重要的是考虑pop函数,因为要pop 最后进入的: ...
分类:其他好文   时间:2017-07-31 18:55:26    阅读次数:143
2381条   上一页 1 ... 64 65 66 67 68 ... 239 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!