上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 26 下一页
摘要: LeetCode 0093. Restore IP Addresses复原IP地址【Medium】【Python】【回溯】【DFS】【暴力】 Problem "LeetCode" Given a string containing only digits, restore it by returni 阅读全文
posted @ 2020-03-04 20:49 Wonz 阅读(357) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0994. Rotting Oranges腐烂的橘子【Easy】【Python】【BFS】 Problem "LeetCode" In a given grid, each cell can have one of three values: the value represent 阅读全文
posted @ 2020-03-04 14:49 Wonz 阅读(220) 评论(0) 推荐(0) 编辑
摘要: LeetCode 面试题 10.01. Sorted Merge LCCI【Easy】【Python】【双指针】 问题 "力扣" 给定两个排序后的数组 A 和 B,其中 A 的末端有足够的缓冲空间容纳 B。 编写一个方法,将 B 合并入 A 并排序。 初始化 A 和 B 的元素数量分别为 m 和 n 阅读全文
posted @ 2020-03-03 13:31 Wonz 阅读(176) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0257. Binary Tree Paths二叉树的所有路径【Easy】【Python】【DFS】 Problem "LeetCode" Given a binary tree, return all root to leaf paths. Note: A leaf is a n 阅读全文
posted @ 2020-03-02 23:07 Wonz 阅读(218) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0206. Reverse Linked List反转链表【Easy】【Python】【链表】 Problem "LeetCode" Reverse a singly linked list. Example: Follow up: A linked list can be rev 阅读全文
posted @ 2020-03-02 16:04 Wonz 阅读(141) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0225. Implement Stack using Queues用队列实现栈【Easy】【Python】【栈】【队列】 Problem "LeetCode" Implement the following operations of a stack using queues. 阅读全文
posted @ 2020-03-01 22:56 Wonz 阅读(115) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1366. Rank Teams by Votes通过投票对团队排名【Medium】【Python】【排序】 Problem "LeetCode" In a special ranking system, each voter gives a rank from highest t 阅读全文
posted @ 2020-03-01 22:33 Wonz 阅读(306) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1365. How Many Numbers Are Smaller Than the Current Number有多少小于当前数字的数字【Easy】【Python】【暴力】 Problem "LeetCode" Given the array , for each find o 阅读全文
posted @ 2020-03-01 15:36 Wonz 阅读(280) 评论(0) 推荐(0) 编辑
摘要: LeetCode 面试题 04.10. 检查子树【Medium】【Python】【DFS】 问题 "力扣" 检查子树。你有两棵非常大的二叉树:T1,有几万个节点;T2,有几万个节点。设计一个算法,判断 T2 是否为 T1 的子树。 如果 T1 有这么一个节点 n,其子树与 T2 一模一样,则 T2 阅读全文
posted @ 2020-03-01 15:18 Wonz 阅读(183) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1367. Linked List in Binary Tree二叉树中的列表【Medium】【Python】【DFS】 Problem "LeetCode" Given a binary tree and a linked list with as the first node. 阅读全文
posted @ 2020-03-01 14:40 Wonz 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 26 下一页