登录
|
注册
公司
标签
文章
搜索
字符串
热门公司
百度
微软
腾讯
华为
阿里巴巴
迅雷
热门职位
C语言工程师
研发工程师
测试工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
1512
对于一个任意输入的少于200字节的字符串,把它按‘-’分成若干子串(子串最多20个),输出原始字符串和每个子串,要求能依次处理用户输入的多个字符串,直到用户输入字符串“0”时程序退出。 ...
阅读题目
字符串
华为
问答题
经典指数
1
0
1506
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
1464
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。 ...
阅读题目
阿里巴巴
字符串
填空题
经典指数
0
0
1445
有两个字符串 str1和str2,写一个函数实现在str1中查找str2的初始位置。要求不区分大小写。 ...
阅读题目
网易
字符串
问答题
经典指数
0
0
1419
remove掉给定字符串中的多余空格,要求达到以下要求 A.无连续相邻的两个空格 B.字符串开头和结尾无空格 C.新的一行开头和结尾无空格 ...
阅读题目
微软
字符串
问答题
经典指数
1
0
1407
从C/C++转到Java的程序员,一开始最不习惯的就是变量命名方式的改变。C语言风格使用下划线分隔多个单词,例如“hello_world”;而Java则采用一种叫骆驼命名法的规则:除首个单词以外,所有单词的首字母大写,例如“helloWorld”。 请你帮可怜的程序员们自动转换变量名。 输入描述: 输入包含多组数据。每组数据一行,包含一个C语言风格的变量名。每个变量名长度不超过100。 输出描述: 对应每一组数据,输出变量名相应的骆驼命名法。 输入例子: hello_worldnice_to_meet_you 输出例子: helloWorldniceToMeetYou ...
阅读题目
字符串
面试题
经典指数
1
0
1403
比较给定的字符串集合{“cafe”, “baidu”, “duiba”,”face”, “thisone”,”iseasy”}中是否存在有这样的字符串,它们包含的字符以及字符个数相同,出现顺序不必相同,找到并打印出来。 ...
阅读题目
百度
字符串
问答题
经典指数
0
0
1399
字符串匹配实现, 请以两种方法,回溯与不回溯算法实现。 ...
阅读题目
微软
字符串
问答题
经典指数
1
0
1393
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 ...
阅读题目
字符串
面试题
经典指数
<<
<
21
22
23
24
25
>
>>
242
题目数
1
贡献者
212
答案数
扫描后移动端查看
我也分享一个题目
相关标签
C语言工程师
百度
查找
复杂度
研发工程师
动态规划
微软
基础知识
腾讯
华为
同类标签
树
排序
数组
链表
复杂度
查找
栈
图
哈希
队列
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录