#define _CRT_SECURE_NO_WARNINGS #include #include #include void main71() { char a[] = "i am a student"; char b[64]; int i = 0; for (i=0; *(a+i) != '\0... ...
分类:
其他好文 时间:
2018-08-03 22:42:14
阅读次数:
174
[抄题]: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / opera ...
分类:
其他好文 时间:
2018-08-03 14:44:33
阅读次数:
114
实现 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 1。 示例 1: 输入: haystack = "hello", needle = "ll" 输出: 2 示例 2 ...
分类:
其他好文 时间:
2018-07-30 22:39:33
阅读次数:
174
题目: 实现 strStr() 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 -1。 示例 1: 输入: haystack = "hello", needle = " ...
分类:
其他好文 时间:
2018-07-28 19:35:40
阅读次数:
106
// dbft算法返回下一个出块节点,如此看返回的就是创世块,也就是说出块节点不变化 func GetValidators(txs []*types.Transaction) ([]keypair.PublicKey, error) { // TODO implement vote return g... ...
分类:
其他好文 时间:
2018-07-27 20:55:24
阅读次数:
168
编写程序的时候,经常要处理字符串,最基本就是字符串的查找,在php检测字符串中是否包含指定字符串可以使用正则,如果你对正则不了解,那么有几个函数可以为您提供方便。 1. strstr strstr() 函数搜索一个字符串在另一个字符串中的第一次出现。 该函数返回字符串的其余部分(从匹配点)。如果未找 ...
分类:
Web程序 时间:
2018-07-27 18:09:41
阅读次数:
166
To Lower Case Description Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1: Examp ...
分类:
其他好文 时间:
2018-07-27 14:39:48
阅读次数:
124
先是randy回来讲了一节io的内容,randy讲的显然比david好太多了,然而还是感觉听得云里雾里。实际上感觉第十章也没什么内容,无非就是讲了些底层的io函数,并且告诉你这些东西基本没什么叼用,一般还是要用unix给的标准io函数...或者也可以用自己implement的io函数,书上写了一套叫 ...
分类:
系统相关 时间:
2018-07-25 20:13:25
阅读次数:
184
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possib ...
分类:
其他好文 时间:
2018-07-20 14:04:41
阅读次数:
140
练习: 一:e1_MyFirstBDD 使用方法的方式实现阶乘的计算 zero.feature: Feature: Compute factorial In order to play with Lettuce As beginners We'll implement factorial Scena... ...
分类:
其他好文 时间:
2018-07-18 21:48:06
阅读次数:
691