文章
【javascript系列】字符串:字符串单个字符访问
访问字符串的单个字符获取字符串的某一单个字符有两种方法。第一种是使用<codecharAt</code方法<pre<code>&39;hello&39;.charAt(1)&39;e&39;</code</pre第二种是使用类
关于 String.intern() 的思考
我看到一个segmentfault上的问题(https://segmentfault.com/q/1010000007067616/a1020000007072265),是关于String.intern()的,感觉比较有意思,于是自己也去探索了一下,有了一些自己的见解,于是在
LeetCode 394: DecodeString (Java)
解码题。编码规则直接看例子(编码后字符串>原字符串):2b>bb3a2c>3acc>accaccacc2a2befxy>2abbefxy>abbefabbefxy根据上面的结构我们很容易想到用深搜算法:
LeetCode 6: ZigZag Conversion (JAVA)
<pre<code给一个String:&34;PAYPALISHIRING&34;要求按竖Z字方法去排列再横向读出,给定行数R。若R3:PAHNAPLSIIGYIR则程序输出应为:&34;PAHNAPLSIIGYIR&34
Android判断String是否为空
判断字符串是否为空:<pre<codepublicclassStrUtils{publicstaticbooleanisEmpty(Stringstr){if(strnull||&34;&34;.equals(str)){
Python 字符串内置方法
Python字符串内置方法作者博客:http://zzir.cn/(https://link.segmentfault.com/?encWKGFeUzWLmGy27EFQslDLg%3D%3D.ECDjM5Vnv%2FdXz0kXMUgJPw%3D%3D)strin
LeetCode: 93. Restore IP Addresses
Givenastringcontainingonlydigits,restoreitbyreturningallpossiblevalidIPaddresscombinations.Forexample:Given&34;25525511135&34;,
[LeetCode] Valid Parentheses
ProblemGivenastringcontainingjustthecharacters&39;(&39;,&39;)&39;,&39;{&39;,&39;}&39;,&39;&39;and&39;&39;,determine
[LeetCode] 38. Count and Say
ProblemThecountandsaysequenceisthesequenceofintegersbeginningasfollows:<pre<code1,11,21,1211,111221,...</code</pre1i
[LeetCode] Implement strStr()
ProblemImplementstrStr().Returnstheindexofthefirstoccurrenceofneedleinhaystack,or1ifneedleisnotpartofhaystack.Note
已加载文章中没有匹配内容,试试其他关键词或清空搜索。