一、PTA实验作业 题目1:6 3查找指定人员 1. 本题PTA提交列表(要提交列表,不是结果) 2. 设计思路(伪代码或流程图) 3.代码截图 4.本题调试过程碰到问题及PTA提交列表情况说明。 (1)只会输出第一个人的信息 因为大意,在if语句后多了分号 题目2:7 1计算职工工资 1. 本题P ...
分类:
编程语言 时间:
2017-12-25 00:39:58
阅读次数:
464
Tensorflow Welcome to the Tensorflow Tutorial! In this notebook you will learn all the basics of Tensorflow. You will implement useful functions and d ...
分类:
Web程序 时间:
2017-12-22 03:27:08
阅读次数:
266
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-20 20:14:02
阅读次数:
208
When making a reusable component, you'll find that people often like to have the API they're most familiar with, so in this lesson we'll recreate the ...
分类:
其他好文 时间:
2017-12-19 01:14:46
阅读次数:
154
一、PTA实验作业 题目1:6 5 判断回文字符串 1. 本题PTA提交列表(要提交列表,不是结果) 2. 设计思路(伪代码或流程图) 用strstr判断是否存在子串,存在的话就用函数返回第一次匹配的字符串的地址,如果是自己做会用for语句来找出第一个字母相同的地方,然后判断后面的字母是不是也相同, ...
分类:
其他好文 时间:
2017-12-17 18:11:22
阅读次数:
345
class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ return haystack.find(needle) ... ...
分类:
其他好文 时间:
2017-12-17 16:59:41
阅读次数:
134
Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystac ...
分类:
编程语言 时间:
2017-12-15 22:31:33
阅读次数:
200
Implement a magic directory with buildDict, and search methods.For the method buildDict, you'll be given a list of non-repetitive words to build a dic... ...
分类:
其他好文 时间:
2017-12-14 22:55:06
阅读次数:
191
Implement a trie with insert, search, and startsWith methods. Note: You may assume that all inputs are consist of lowercase letters a-z. var Trie = fu... ...
分类:
其他好文 时间:
2017-12-14 22:52:28
阅读次数:
143
Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- it e... ...
分类:
其他好文 时间:
2017-12-14 13:15:51
阅读次数:
169