![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
qch60925
这个作者很懒,什么都没留下…
展开
-
1528-重新排列字符串
class Solution { public String restoreString(String s, int[] indices) { char[] ans = new char[s.length()]; for(int i=0;i<indices.length;i++){ ans[indices[i]]=s.charAt(i); } return new String(ans); } }原创 2021-02-22 22:34:28 · 89 阅读 · 0 评论 -
2021-02-08
数组排序 Arrays.sort(nums1); 栈的操作: push,pop,peek,size 队列操作 add,poll,peek,size 字符串操作 转StringBuilder 优化 HashMap集合 put,get,keySet遍历,containsKey() HashSet集合 add,get原创 2021-02-20 22:40:04 · 44 阅读 · 0 评论