登录
|
注册
公司
标签
文章
搜索
字符串
热门公司
百度
微软
腾讯
华为
阿里巴巴
迅雷
热门职位
C语言工程师
研发工程师
测试工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
1521
If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with simple chopping. Now given the number of significant digits on a machine and two float numbers, you are supposed to tell if they are treated equal in that machine. 输入描述: Each input file contains one test case which gives three numbers N, A and B, where N ( 输出描述: For each test case, print in a line "YES" if the two numbers are treated equal, and ...
阅读题目
基础知识
字符串
面试题
经典指数
1
0
1516
对于一个任意输入的少于200字节的字符串,把它按‘-’分成若干子串(子串最多20个),输出原始字符串和每个子串,要求能依次处理用户输入的多个字符串,直到用户输入字符串“0”时程序退出。 ...
阅读题目
字符串
华为
问答题
经典指数
1
0
1509
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 ="aabcc", s2 ="dbbca", When s3 ="aadbbcbcac", return true. When s3 ="aadbbbaccc", return false. ...
阅读题目
动态规划
字符串
面试题
经典指数
1
0
1468
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner of the shop would only sell the strings in whole pieces. Hence Eva must check whether a string in the shop contains all the beads she needs. She now comes to you for help: if the answer is "Yes", please tell her the number of extra beads she has to buy; or if the answer is "No", please tell her the number of beads mi ...
阅读题目
哈希
字符串
面试题
经典指数
1
0
1457
若初始序列为gbfcdae,那么至少需要 1 次两两交换,才能使该序列变为abcdefg。任给一个自由a--g这7个字母组成的排列,最坏的情况下需要至少 2 次两两交换,才能使序列变为abcdefg。 ...
阅读题目
阿里巴巴
字符串
填空题
经典指数
1
0
1409
从C/C++转到Java的程序员,一开始最不习惯的就是变量命名方式的改变。C语言风格使用下划线分隔多个单词,例如“hello_world”;而Java则采用一种叫骆驼命名法的规则:除首个单词以外,所有单词的首字母大写,例如“helloWorld”。 请你帮可怜的程序员们自动转换变量名。 输入描述: 输入包含多组数据。每组数据一行,包含一个C语言风格的变量名。每个变量名长度不超过100。 输出描述: 对应每一组数据,输出变量名相应的骆驼命名法。 输入例子: hello_worldnice_to_meet_you 输出例子: helloWorldniceToMeetYou ...
阅读题目
字符串
面试题
经典指数
1
0
1406
比较给定的字符串集合{“cafe”, “baidu”, “duiba”,”face”, “thisone”,”iseasy”}中是否存在有这样的字符串,它们包含的字符以及字符个数相同,出现顺序不必相同,找到并打印出来。 ...
阅读题目
百度
字符串
问答题
经典指数
1
0
1395
People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzing such patterns can help to narrow down a speaker's identity, which is useful when validating, for example, whether it's still the same person behind an online avatar. Now given a paragraph of text sampled from someone's speech, can you find the person's most commonly used word? 输入描述: Each input file contains one test case. For each case, there ...
阅读题目
字符串
面试题
经典指数
1
0
1336
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L in lowercase), or 0 (zero) from O (o in uppercase). One solution is to replace 1 (one) by @, 0 (zero) by %, l by L, and O by o. Now it is your job to write a program to check the accounts generated by the judge, and to help the juge modify the confusing passwords. 输入描述: Each input file contains ...
阅读题目
字符串
面试题
经典指数
1
0
1334
一个文本字符串由大小写字母,空格,',' '.'组成,求这个文本中完整句子的个数,一个完整的句子以'.'号结尾并至少包含一个字母(完整代码) ...
阅读题目
百度
字符串
问答题
经典指数
<<
<
15
16
17
18
19
20
>
>>
210
题目数
1
贡献者
212
答案数
扫描后移动端查看
我也分享一个题目
相关标签
C语言工程师
百度
查找
复杂度
研发工程师
动态规划
微软
基础知识
腾讯
华为
同类标签
树
排序
数组
链表
复杂度
查找
栈
图
哈希
队列
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录