由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - java question
相关主题
java里 不用charAt 直接用[] 可以么?也问个regular expression的问题
Java好用在什么地方呢About Longest repeated substring
what is the most efficient way to trim a string in C++?one question about algorithm
a job interview question for funhelp on longest common substring
interview question: what is the difference between Java and c++一个关于assignment constructor和expection的问题
怎么efficiently实现next_combination?Perl search string
问一道HIVE题 关于Efficiency[合集] 问2个微软电话面试题目
java初学者求指点这段code[合集] Solve this task using recursion. how to ?
相关话题的讨论汇总
话题: efficient话题: str话题: question
进入Programming版参与讨论
1 (共1页)
l**********n
发帖数: 8443
1
the following is not memory efficient, how to make it more efficient
while(str.charAt(0) == '0') {
str = str.substring(1);
}
g*****g
发帖数: 34805
2
do a charAt(i) until not 0 and substring one time.

【在 l**********n 的大作中提到】
: the following is not memory efficient, how to make it more efficient
: while(str.charAt(0) == '0') {
: str = str.substring(1);
: }

s***a
发帖数: 43
3
用String builder?

【在 l**********n 的大作中提到】
: the following is not memory efficient, how to make it more efficient
: while(str.charAt(0) == '0') {
: str = str.substring(1);
: }

1 (共1页)
进入Programming版参与讨论
相关主题
[合集] Solve this task using recursion. how to ?interview question: what is the difference between Java and c++
请教一个字符串比较排序的问题怎么efficiently实现next_combination?
有python大神吗?紧急求助呀!!谢谢!!!问一道HIVE题 关于Efficiency
问个缺少逗号的数组赋值问题java初学者求指点这段code
java里 不用charAt 直接用[] 可以么?也问个regular expression的问题
Java好用在什么地方呢About Longest repeated substring
what is the most efficient way to trim a string in C++?one question about algorithm
a job interview question for funhelp on longest common substring
相关话题的讨论汇总
话题: efficient话题: str话题: question