首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
哈哈哈个
掘友等级
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
3
文章 3
沸点 0
赞
3
返回
|
搜索文章
哈哈哈个
5月前
关注
coding - r
Referral Count Microservice Dependency - load factor Offset commit Course schedule mid...
0
评论
分享
哈哈哈个
5月前
关注
716. Max Stack
TreeMap + DLL A DoubleLinkedList to simulate the stack and allow O(1) removals. A Tree...
0
评论
分享
哈哈哈个
5月前
关注
126. Word Ladder II
bfs + dfs Use BFS to: Build a graph of valid paths using a parent map Note1: node coul...
0
评论
分享
哈哈哈个
5月前
关注
127. Word Ladder
BFS We are given a beginWord and an endWord. Let these two represent start node and en...
0
评论
分享
哈哈哈个
5月前
关注
109. Convert Sorted List to Binary Search Tree
O(NlogN) 先找中点,然后分别left right O(logN) leftmost element in the inorder traversal has to ...
0
评论
分享
哈哈哈个
5月前
关注
735. Asteroid Collision
// 当前cur是否存留 boolean alive = true; // 只有top+, cur-,才会相遇 whi...
0
评论
分享
哈哈哈个
5月前
关注
code- l
Alien base attack O(n) o(1) Page fetch multi stream...
0
评论
分享
哈哈哈个
5月前
关注
a coding
GetRand 1 // Question: // In this problem, you're asked to implement a data structure ...
0
评论
分享
哈哈哈个
6月前
关注
2742. Painting walls
```java class Solution { public int paintWalls(int[] cost, int[] time) { int n = cost....
0
评论
分享
哈哈哈个
6月前
关注
code
Role permission 0 Role permission 1 Role permission 2 prefix map graph coloring event ...
0
评论
分享
哈哈哈个
6月前
关注
981. Time Based Key-Value Store
Solutionap { Map<String, ArrayList<Pair<Integer, String>>> map; public TimeMap() { /...
0
评论
分享
哈哈哈个
6月前
关注
540. Single Element in a Sorted Array
Solution: Binary search We remove nums[mid], resulting in left half arr and right half...
0
评论
分享
哈哈哈个
6月前
关注
76. Minimum Window Substring
Solution: sliding window O(∣S∣+∣T∣) t may include duplicates, so we need to count freq...
0
评论
分享
哈哈哈个
6月前
关注
261. Graph Valid Tree
Solution 1: check if loop exist Solution 2: Using graph property Check whether or not ...
0
评论
分享
哈哈哈个
6月前
关注
787. Cheapest Flights Within K Stops
Solution BFS we will perform a level-wise BFS iteration over the nodes level limited b...
0
评论
分享
哈哈哈个
6月前
关注
528. Random Pick with Weight
SolutionidWlkIjoiMjMwNDIyNjM5OTg5MzA3MCJ9&rk3s=e9ecf3d6&x-orig-authkey=f32326d3454f2ac...
0
评论
分享
哈哈哈个
6月前
关注
399. Evaluate Division
Solution Build graph and BFS The direction of edge indicates the order of division, an...
0
评论
分享
哈哈哈个
6月前
关注
117. Populating Next Right Pointers in Each Node II
Solution1 level order traversal O(N)O(N) Solution2: using established linkedlist O(N)O...
0
评论
分享
哈哈哈个
6月前
关注
116. Populating Next Right Pointers in Each Node
Solution1: O(N) O(N) Level order traversal Solution2 : O(N) O(1) when we go over the n...
0
评论
分享
哈哈哈个
6月前
关注
545. Boundary of Binary Tree
Solution: average time O(h) worst case is O(n) Find seperately....
0
评论
分享
下一页
个人成就
文章被点赞
29
文章被阅读
46,968
掘力值
1,704
关注了
0
关注者
8
收藏集
2
关注标签
3
加入于
2020-12-27