- 博客(5)
- 收藏
- 关注
原创 leetcode 49. Group Anagrams
leetcode 49. Group Anagrams很久·没刷leetcode,逐渐手生了。下面的代码不知道为何不能acc错误为:public class Solution { Set genCharSet(String s){ Set res = new HashSet(); for(int i=0;i<s.length();i++){
2017-04-23 17:18:01 518
原创 leetcode 48. Rotate Image
leetcode 48. Rotate Image本地变换的主要思想是找规律: 先做装置变换,再转列对称变换以下是Python代码:class Solution(object): def rotate(self, matrix): """ :type matrix: List[List[int]] :rt
2017-04-12 22:03:56 495
原创 leetcode 44. Wildcard Matching
leetcode 44. Wildcard Matching这是一段拙劣的程序: Acc at the end in complexity rankingpublic class Solution { public static void main(String[] arg){ String a = "aa"; String b = "*"; Solution s = n
2017-04-06 23:17:10 212
原创 leetcode 43. Multiply Strings
leetcode 43. Multiply Strings字符串相乘 不简单啊。。。参考了 String 、StringBuffer、StringBuilder 之间的区别public class Solution { public static void main(String[] arg){ String a = "999"; String b = "9
2017-04-04 16:03:36 289
原创 leetcode 41. First Missing Positive
leetcode 41. First Missing Positive 今天上午做了两个0-n 排序的问题,排序关键所在于swappublic class Solution { public int firstMissingPositive(int[] nums) { int len = nums.length; int i=0;
2017-04-04 14:02:43 338
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人