码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
[Leetcode] Binary search tree --Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the n ...
分类:其他好文   时间:2018-01-08 14:47:56    阅读次数:136
232. Implement Queue using Stacks
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front ...
分类:其他好文   时间:2018-01-08 11:02:53    阅读次数:165
LeetCode 69. Sqrt(x)
Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. Example 1: Example 2: 时间复杂度:O(logn) ...
分类:其他好文   时间:2018-01-04 16:28:49    阅读次数:189
10)字符串知识
#include<stdio.h>#include<string.h>#include"c.h"int main(){ char *p="123456123789123"; char a[]="78"; p=strstr(p,a); printf("%s",p); return 0;} ...
分类:其他好文   时间:2018-01-02 13:25:27    阅读次数:197
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 challenge, please do not see below ...
分类:其他好文   时间:2017-12-31 20:58:44    阅读次数:134
Python的网络编程[4] -> DHCP 协议 -> DHCP 的 Python 实现
DHCP实现 / DHCP Implement 目录 下面介绍建立一个简单的DHCP服务器,主要用于对基本的DHCP请求进行响应,目前只提供一个IP为客户端使用,实现最基本的通信示例。理论内容可参考 DHCP 理论部分。 1 DHCP 服务器建立过程 首先是基本服务器的建立,这个服务器实现了最基本的 ...
分类:编程语言   时间:2017-12-30 15:59:56    阅读次数:246
Python的网络编程[3] -> BOOTP 协议 -> BOOTP 的 Python 实现
BOOTP实现 / BOOTP Implement 目录 Note: 理论部分请参考文末相关阅读链接 1 BOOTP 的服务器建立过程 服务器建立步骤主要有: (1) 设定服务器IP,传送ip(offer_ip),服务端口68,客户端口67; (2) 建立send_socket/UDP,广播模式允许 ...
分类:编程语言   时间:2017-12-30 15:53:50    阅读次数:213
50. Pow(x, n) 实现Pow(x,n)
Implement pow(x, n). // /**// * @param {number} x// * @param {number} n// * @return {number}// */// var myPow = function (x, n) {// return Math.pow(x,... ...
分类:其他好文   时间:2017-12-30 00:23:17    阅读次数:124
Leetcode: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 challenge, please do not see below ...
分类:其他好文   时间:2017-12-26 14:34:27    阅读次数:148
Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possib ...
分类:其他好文   时间:2017-12-25 15:39:20    阅读次数:171
2381条   上一页 1 ... 53 54 55 56 57 ... 239 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!