代码改变世界

阅读排行榜

[LeetCode] 697. Degree of an Array_Easy tag: Hash Table

2018-08-13 05:46 by Johnson_强生仔仔, 145 阅读, 收藏,
摘要: Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t 阅读全文

[LeetCode] 182. Duplicate Emails_Easy tag: SQL

2018-08-18 11:19 by Johnson_强生仔仔, 131 阅读, 收藏,
摘要: Write a SQL query to find all duplicate emails in a table named Person. + + + | Id | Email | + + + | 1 | a@b.com | | 2 | c@d.com | | 3 | a@b.com | + + 阅读全文

[LeetCode] 103. Binary Tree Zigzag Level Order Traversal _ Medium tag: BFS

2018-07-05 06:27 by Johnson_强生仔仔, 129 阅读, 收藏,
摘要: Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and 阅读全文

[LeetCode] 1485. Clone Binary Tree With Random Pointer_ Medium tag: BFS, DFS

2021-06-16 09:21 by Johnson_强生仔仔, 97 阅读, 收藏,
摘要: A binary tree is given such that each node contains an additional random pointer which could point to any node in the tree or null. Return a deep copy 阅读全文

[LeetCode] 489. Robot Room Cleaner_Hard tag: DFS, backtracking

2018-07-19 04:59 by Johnson_强生仔仔, 91 阅读, 收藏,
摘要: You are controlling a robot that is located somewhere in a room. The room is modeled as an m x n binary grid where 0 represents a wall and 1 represent 阅读全文
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 78 下一页