登录
|
注册
公司
标签
文章
搜索
字符串
热门公司
百度
微软
腾讯
华为
阿里巴巴
迅雷
热门职位
C语言工程师
研发工程师
测试工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
1591
写个能将整篇文章单词翻转的程序。不允许使用任何函数 ...
阅读题目
百度
字符串
问答题
经典指数
0
0
1528
JOBDU最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I am a student.”。Cat对一一的翻转这些单词顺序可不在行,你能帮助他么? ...
阅读题目
字符串
面试题
经典指数
0
0
2542
请编写一个JavaScript函数 parseQueryString,它的用途是把URL参数解析为一个对象,如: var url = “http://www.taobao.com/index.php?key0=0&key1=1&key2=2.....” var obj = parseQueryString(url); alert(obj.key0) // 输出0 ...
阅读题目
阿里巴巴
2011
javascript
字符串
问答题
经典指数
0
0
3023
有一段文本,由英文字母、阿拉伯数字、GB2312编码的中文字符和一些常用标点符号(假设只包含全/半角的逗号和句子)组成。请写出程序,统计这段文本中每个字的出现次数,对“字”的定义如下:1,连续的英文字母或者阿拉伯数字,例如ab3或123,但最长不超过32个字符;2,包含不超过一个半角句点的两段连续数字,例如2.34,但最长不超过32个字符3,单个汉字 ...
阅读题目
百度
字符串
复杂度
问答题
经典指数
0
0
1633
将一个句子按单词反序。比如 "hi baidu com mianshiti",反序后变为 "mianshiti com baidu hi"。 ...
阅读题目
微软
字符串
问答题
经典指数
0
0
1196
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s ="aab", Return [ ["aa","b"], ["a","a","b"] ] ...
阅读题目
字符串
面试题
经典指数
0
0
3064
旧键盘上坏了几个键,于是在敲一段文字的时候,对应的字符就不会出现。现在给出应该输入的一段文字、以及实际被输入的文字,请你列出 肯定坏掉的那些键。 输入描述: 输入在2行中分别给出应该输入的文字、以及实际被输入的文字。每段文字是不超过80个字符的串,由字母A-Z(包括大、小写)、数字0-9、以及下划线“_”(代表空格)组成。题目保证2个字符串均非空。 输出描述: 按照发现顺序,在一行中输出坏掉的键。其中英文字母只输出大写,每个坏键只输出一次。题目保证至少有1个坏键。 输入例子: 7_This_is_a_test_hs_s_a_es 输出例子: 7TI ...
阅读题目
哈希
字符串
面试题
经典指数
0
0
1344
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest symmetric sub-string is "s PAT&TAP s", hence you must output 11. 输入描述: Each input file contains one test case which gives a non-empty string of length no more than 1000. 输出描述: For each test case, simply print the maximum length in a line. 输入例子: Is PAT&TAP symmetric? 输出例子: 11 ...
阅读题目
动态规划
字符串
面试题
经典指数
0
0
1538
Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (ie,"ACE"is a subsequence of"ABCDE"while"AEC"is not). Here is an example: S ="rabbbit", T ="rabbit" Return3. ...
阅读题目
动态规划
字符串
面试题
经典指数
0
0
954
Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. ...
阅读题目
字符串
面试题
经典指数
1
2
3
4
32
题目数
1
贡献者
212
答案数
扫描后移动端查看
我也分享一个题目
相关标签
C语言工程师
百度
查找
复杂度
研发工程师
动态规划
微软
基础知识
腾讯
华为
同类标签
树
排序
数组
链表
复杂度
查找
栈
图
哈希
队列
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录