码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
选择排序
选择排序: http://www.cnblogs.com/chineking/archive/2011/05/24/implement-sort-algorithm-with-python.html 选择排序,是对冒泡排序法的一种改进,它的时间复杂度为O(n2)。 原理: 每一趟在n-i+1(i=1 ...
分类:编程语言   时间:2016-12-31 11:24:26    阅读次数:189
haligong2016
A 采用递推的方法,由于要到达棋盘上的一个点,只能从左边或者上边过来,根据加法原则,到达某一点的路径数目,就等于到达其相邻的上点和左点的路径数目的总和。所有海盗能达到的点将其路径数置为0即可。 #include <stdio.h> #include <string.h> #include <stdl ...
分类:其他好文   时间:2016-12-26 12:17:25    阅读次数:370
链表(裸题)
Doubly Linked List Aizu - ALDS1_3_C Your task is to implement a double linked list. Write a program which performs the following operations: insert x: ...
分类:其他好文   时间:2016-12-21 11:52:06    阅读次数:253
c语言实现名值对通过key查找value
需求、例如: 1、" key1 = value1 " 通过"key1"从该字符串中查找出"value",value去除前后空格 2、" key1 == value1 " 、" key1 = = value1 " 双等于号不合法 头文件: 函数原型: 实现方法: 测试: ...
分类:编程语言   时间:2016-12-21 02:49:57    阅读次数:246
【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 ...
分类:其他好文   时间:2016-12-19 14:02:41    阅读次数:183
LeetCode 206 Reverse a singly linked list.
Reverse a singly linked list. Hint: A linked list can be reversed either iteratively or recursively. Could you implement both? 递归的办法: /** * Definition ...
分类:其他好文   时间:2016-12-15 11:58:04    阅读次数:144
java/Android 接口调用的几种写法
虽然Handler用的地方比较普遍,但是接口也有他的独特之处,比较直观,然后降低了耦合性 如有一接口,需要将数据传给使用的activity中,接口如下 1:判断context是否继承并通知调用接口 这时只需要在数据传递处强制转换这个接口并调用,然后在使用处(比如Activity中 implement ...
分类:移动开发   时间:2016-12-12 19:41:06    阅读次数:271
abstract class and interface
Interface separates what a Class does and how does it work. List interface lets different type of List to implement its own method. interface has more ...
分类:其他好文   时间:2016-12-11 10:19:40    阅读次数:132
详解prototype与__proto__区别
Each constructor is a function that has a property named “prototype” that is used to implement proto...
分类:其他好文   时间:2016-12-09 10:35:18    阅读次数:212
[8.1] Triple Step
A child is running up a staircase with n steps and can hop either 1 step, 2 steps, or 3 steps at a time. Implement a method to count how many possible ...
分类:其他好文   时间:2016-12-08 07:40:17    阅读次数:167
2381条   上一页 1 ... 80 81 82 83 84 ... 239 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!