登录
|
注册
公司
标签
文章
搜索
字符串
热门公司
百度
微软
腾讯
华为
阿里巴巴
迅雷
热门职位
C语言工程师
研发工程师
测试工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
1222
Given two strings S1 and S2 , S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1 . Your task is simply to calculate S1 - S2 for any given strings. However, it might not be that simple to do it fast . 输入描述: Each input file contains one test case. Each case consists of two lines which gives S1 and S2, respectively. The string lengths of both strings are no more than 104. It is guaranteed that all the characters are visible ASCII codes and wh ...
阅读题目
字符串
面试题
经典指数
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"] ] ...
阅读题目
字符串
面试题
经典指数
1
0
1180
无中间变量,求字符串长度 int strlen(const char *str)。 ...
阅读题目
腾讯
字符串
问答题
经典指数
0
0
1163
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length of 1. ...
阅读题目
字符串
面试题
经典指数
1
0
1150
将一个字符串转换成一个整数,要求不能使用字符串转换整数的库函数。 ...
阅读题目
字符串
面试题
经典指数
1
0
1142
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I G Y I R And then read line by line:"PAHNAPLSIIGYIR" Write the code that will take a string and make this conversion given a number of rows: string convert(string text, int nRows); convert("PAYPALISHIRING", 3)should return"PAHNAPLSIIGYIR". ...
阅读题目
字符串
面试题
经典指数
1
0
1138
设计一个strmncmp函数,对比普通的strcmp,原则在于,当字符串中含有数字时,以数字大小为标准,对于其中只有一个字符串为数字的情况,仍然使用原来的原则,要求:请给出完整代码,在达到目标的情况下尽量搞笑,简洁。 ...
阅读题目
百度
字符串
问答题
经典指数
1
0
1134
The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1is read off as"one 1"or11. 11is read off as"two 1s"or21. 21is read off as"one 2, thenone 1"or1211. Given an integer n, generate the nth sequence. Note: The sequence of integers will be represented as a string. ...
阅读题目
字符串
面试题
经典指数
1
0
1127
Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a minute to figure out that those strange strings are actually referring to the coded time "Thursday 14:04" -- since the first common capital English letter (case sensitive) shared by the first two strings is the 4th capital letter 'D', representing the 4th day in a week; the second common character is the 5th capital letter 'E', representing th ...
阅读题目
字符串
面试题
经典指数
1
0
1064
Validate if a given string is numeric. Some examples: "0"=>true " 0.1 "=>true "abc"=>false "1 a"=>false "2e10"=>true Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before implementing one. ...
阅读题目
字符串
面试题
经典指数
<<
<
21
22
23
24
25
>
>>
242
题目数
1
贡献者
212
答案数
扫描后移动端查看
我也分享一个题目
相关标签
C语言工程师
百度
查找
复杂度
研发工程师
动态规划
微软
基础知识
腾讯
华为
同类标签
树
排序
数组
链表
复杂度
查找
栈
图
哈希
队列
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录