首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
哈哈哈个
掘友等级
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
3
文章 3
沸点 0
赞
3
返回
|
搜索文章
哈哈哈个
6月前
关注
271. Encode and Decode Strings
Solution Tricky part is to figure out how to encode the string....
0
评论
分享
哈哈哈个
6月前
关注
2856. Minimum Array Length After Pair Removals
solution: First take a look at a few cases: 1,2,3,4 -> 0 1,1,1,1,1,2 -> 4 1,1,1,1,2 ->...
0
评论
分享
哈哈哈个
6月前
关注
212. Word Search II
Solution: DFS + Trie The key is how we find the matches of word from the dictionary. W...
0
评论
分享
哈哈哈个
6月前
关注
2050. Parallel Courses III
Solution: BFS while (!queue.isEmpty()) { int curCourse = queue.poll();...
0
评论
分享
哈哈哈个
6月前
关注
1136. Parallel Courses
Solution BFSt minimumSemesters(int n, int[][] relations) { int[] inDegree = new int[n ...
0
评论
分享
哈哈哈个
6月前
关注
2303. Calculate Amount Paid in Taxes
 ```java class Solut...
0
评论
分享
哈哈哈个
6月前
关注
705 Design HashSet
 ```java class MyHas...
0
评论
分享
哈哈哈个
6月前
关注
706. Design HashMap
Solution: Array + LinkedList706. Design HashMap706. Design HashMap706. Design HashMap7...
0
评论
分享
哈哈哈个
6月前
关注
408. Valid Word Abbreviation
 ```java class Solut...
0
评论
分享
哈哈哈个
6月前
关注
687. Longest Univalue Path
solution: DFS O(N), O(N)iven the root of a binary tree, return the length of the longe...
0
评论
分享
哈哈哈个
6月前
关注
438. Find All Anagrams in a String
solution: Sliding window + counter, O(N), O(K) simplest approach: sliding window + two...
0
评论
分享
哈哈哈个
6月前
关注
3176. Find the Maximum Length of a Good Subsequence I
solution: dp O(N^2 * k),O(NK) dp[i][j] represents the maximum length of subsequence en...
0
评论
分享
哈哈哈个
6月前
关注
3155. Maximum Number of Upgradable Servers
Intuitive: For each data center, can upgrade 1, 2, 3,... up to K servers, using O(N) l...
0
评论
分享
哈哈哈个
6月前
关注
2467. Most Profitable Path in a Tree
Solution Build the Tree: Use an graph to represent the undirected tree. DFS: Bob going...
0
评论
分享
哈哈哈个
6月前
关注
1600. Throne Inheritance
Solution: N-tree pre order traversal 「else return x's oldest child who's not in curOrd...
0
评论
分享
哈哈哈个
6月前
关注
849. Maximize Distance to Closest Person
1.Keep record of previos of 1 2. Group by 0 s // 0000000001111 if (seats[prev] != 1)...
0
评论
分享
哈哈哈个
6月前
关注
872. Leaf-Similar Trees
solutiuon List<Integer> list1 = new ArrayList<>(); List<Integer> list2 = new ArrayList...
0
评论
分享
哈哈哈个
6月前
关注
1639. Number of Ways to Form a Target String Given a Dictionary
SOLUTION: DP dp[i][j] = number of ways to build the first i characters of target using...
0
评论
分享
哈哈哈个
6月前
关注
2265. Count Nodes Equal to Average of Subtree
solution DFS int leftSum = resLeft[0], leftCount = resLeft[1]; int rightSum = resRight...
0
评论
分享
哈哈哈个
6月前
关注
291. Word Pattern II
Solution Use a map to track pattern character -> substring. the mapping is bi-directio...
0
评论
分享
下一页
个人成就
文章被点赞
29
文章被阅读
46,978
掘力值
1,704
关注了
0
关注者
8
收藏集
2
关注标签
3
加入于
2020-12-27