摘要: 这里记录一下自己刷的LeetCode题目。 有些博客用英文阐述自己的思路和收获,相当于练习一下英文的表达能力。 比较好的题目有加粗。 题目以后将按题型分类,可以从目录寻找相关的分类。 数组 简单题 26. Remove Duplicates from Sorted Array 122. Best T 阅读全文
posted @ 2018-11-18 11:27 华仔要长胖 阅读(2875) 评论(0) 推荐(0) 编辑
摘要: 数据结构 数据结构(1) 线性表之顺序存储结构 数据结构(2) 线性表之单链表 数据结构(3) 线性表之静态链表 数据结构(4) 线性表之循环链表 数据结构(5) 线性表之双向链表 数据结构(6) 栈的顺序与链式存储 数据结构(7) 循环队列和链队列 数据结构(8) 串的模式匹配算法(朴素、KMP、 阅读全文
posted @ 2018-09-13 16:53 华仔要长胖 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: 如题: 1) 找出数组中重复的数字 2) 不修改数组找出重复的数字 3) 二维数组中的查找 4) 替换空格 5) 从尾到头打印链表 6) 重建二叉树 7) 二叉树的下一个结点 8) 用两个栈实现队列 9) 斐波那契数列及青蛙跳台阶问题 10) 旋转数组的最小数字 11) 矩阵中的路径 12) 机器人 阅读全文
posted @ 2018-09-12 20:48 华仔要长胖 阅读(37146) 评论(0) 推荐(8) 编辑
摘要: Difficulty: Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/binary-tree-level-order-traversal/ Given a binary tree, return t 阅读全文
posted @ 2019-11-04 12:58 华仔要长胖 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Difficulty: Hard More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/binary-tree-postorder-traversal/ Given a binary tree, return the p 阅读全文
posted @ 2019-11-04 11:52 华仔要长胖 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Difficulty: Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/binary-tree-preorder-traversal/ Given a binary tree, return the  阅读全文
posted @ 2019-11-04 11:24 华仔要长胖 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Difficulty: Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/kth-smallest-element-in-a-bst/ Given a binary search tree, write 阅读全文
posted @ 2019-10-29 09:55 华仔要长胖 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Difficulty: Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/binary-tree-inorder-traversal/ Given a binary tree, return the i 阅读全文
posted @ 2019-10-29 09:50 华仔要长胖 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Difficulty:Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/validate-binary-search-tree/ Given a binary tree, determine if it 阅读全文
posted @ 2019-10-28 10:11 华仔要长胖 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Difficulty:easy More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/maximum-depth-of-binary-tree/ Given a binary tree, find its maximum 阅读全文
posted @ 2019-10-27 08:21 华仔要长胖 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Difficulty:easy More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/contains-duplicate-iii/ Given an array of integers, find out whethe 阅读全文
posted @ 2019-10-24 10:56 华仔要长胖 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Difficulty:easy More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/contains-duplicate-ii/ Given an array of integers and an integer k, 阅读全文
posted @ 2019-10-24 09:00 华仔要长胖 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Difficulty:easy More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/palindrome-linked-list/ Given a singly linked list, determine if it 阅读全文
posted @ 2019-10-23 14:52 华仔要长胖 阅读(195) 评论(0) 推荐(0) 编辑