登录
|
注册
公司
标签
文章
搜索
字符串
热门公司
百度
微软
腾讯
华为
阿里巴巴
迅雷
热门职位
C语言工程师
研发工程师
测试工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
1053
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad extra spaces' 'when necessary so that each line has exactly L characters. Extra spaces between words should be distributed as evenly as possible. If the number of spaces on a line do not divide evenly between words, the empty slots on the left wi ...
阅读题目
字符串
面试题
经典指数
0
0
1624
Given a string s consists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is defined as a character sequence consists of non-space characters only. For example, Given s ="Hello World", return5. ...
阅读题目
C语言工程师
字符串
面试题
经典指数
0
0
1447
有两个字符串 str1和str2,写一个函数实现在str1中查找str2的初始位置。要求不区分大小写。 ...
阅读题目
网易
字符串
问答题
经典指数
0
0
931
Given two binary strings, return their sum (also a binary string). For example, a ="11" b ="1" Return"100". ...
阅读题目
字符串
面试题
经典指数
0
0
1017
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
1381
给定字符串S,找出其中第一个出现一次的字符,要求时间复杂度O(N)。 ...
阅读题目
字符串
查找
问答题
经典指数
0
0
1351
用代码实现以下功能,一个超长字符串表示的十进制数,转化为十六进制的字符串。 ...
阅读题目
腾讯
字符串
问答题
经典指数
0
0
1852
设计一个函数,比较两个字符串的大小(当字符串包含数字时,以数字来比较大小,例如:“abc1” ...
阅读题目
百度
字符串
问答题
经典指数
0
0
2094
在实际项目中,我们可能会用字符串来表示无法用普通数据类型(int/float)来存储的数值,在这里我们把它们定义为大数。请实现两个字符串表示的大数相减的程序。例如:“1234567890123.1”-“123456789.1”=“1234444433334” 要求: 1、可以使用任何语言。 2、不可以使用大数类。 输出的结果也是用字符串表示的大数 ...
阅读题目
阿里巴巴
字符串
复杂度
问答题
经典指数
0
0
1976
给出一个字符串,求一个子串x,令w=xx,表示x的连接,如x=ab则w=abab,w在给出的字符串中出现并x是最长的。如给出"ababc"则结果是ab。并给出算法的时间复杂度。 ...
阅读题目
网易
字符串
问答题
经典指数
1
2
3
4
32
题目数
1
贡献者
212
答案数
扫描后移动端查看
我也分享一个题目
相关标签
C语言工程师
百度
查找
复杂度
研发工程师
动态规划
微软
基础知识
腾讯
华为
同类标签
树
排序
数组
链表
复杂度
查找
栈
图
哈希
队列
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录