登录
|
注册
公司
标签
文章
搜索
字符串
热门公司
百度
微软
腾讯
华为
阿里巴巴
迅雷
热门职位
C语言工程师
研发工程师
测试工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
1350
用代码实现以下功能,一个超长字符串表示的十进制数,转化为十六进制的字符串。 ...
阅读题目
腾讯
字符串
问答题
经典指数
0
0
1589
写个能将整篇文章单词翻转的程序。不允许使用任何函数 ...
阅读题目
百度
字符串
问答题
经典指数
0
0
1379
给定字符串S,找出其中第一个出现一次的字符,要求时间复杂度O(N)。 ...
阅读题目
字符串
查找
问答题
经典指数
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
1016
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. ...
阅读题目
字符串
面试题
经典指数
0
0
2250
检查程序,是否存在问题,如果存在指出问题所在,如果不存在,说明输出结果。 package algorithms.com.guan.javajicu; public class Example { String str = new String(“good”); char[] ch = {‘a’, ’b’, ’c’}; public static void main(String[] args) { Exampleex = new Example(); ex.change(ex.str, ex.ch); System.out.print(ex.str + ” and ”); System.out.print(ex.ch); } public void change(Stringstr, char ch[]) { str = “test ok”; ch[0] = 'g'; } } ...
阅读题目
Java
网易
2015
字符串
问答题
经典指数
0
0
930
Given two binary strings, return their sum (also a binary string). For example, a ="11" b ="1" Return"100". ...
阅读题目
字符串
面试题
经典指数
0
0
2005
Given a string with n characters, suppose all the characters are different from each other, how many different substrings do we have? n+1 n^2 n(n+1)/2 2^n-1 n! ...
阅读题目
微软
字符串
组合数学
单选题
经典指数
0
0
1444
有两个字符串 str1和str2,写一个函数实现在str1中查找str2的初始位置。要求不区分大小写。 ...
阅读题目
网易
字符串
问答题
经典指数
0
0
2352
把字符串转换为整数 例如:"-123" -> -123 #include #include using namespace std; int num(string str) { int num = 0; for (int i = 0; i < ___1___; i ++) { int k = ___2__; num = __3___; } return num; } int main() { string str = "-123"; int n = 0; if ( str[0] == '-' ) n = -1 * num (str.substr(1)); else n = num(str); cout ...
阅读题目
腾讯
C语言工程师
字符串
问答题
经典指数
1
2
3
4
32
题目数
1
贡献者
212
答案数
扫描后移动端查看
我也分享一个题目
相关标签
C语言工程师
百度
查找
复杂度
研发工程师
动态规划
微软
基础知识
腾讯
华为
同类标签
树
排序
数组
链表
复杂度
查找
栈
图
哈希
队列
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录