Skip to content

qincasin/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Solutions with Java


Update time: Wed May 29 15:26:26 CST 2019

I have solved 114 / 1092 problems while 976 problems are still locked.

# Title Source Code Related Topics Explanation Difficulty remarks
561 Array Partition I Java Array 数组分组I Easy
832 Flipping an Image Java Array 翻转图像 Easy
867 Transpose Matrix Java Array 矩阵的转置 Easy
766 Toeplitz Matrix Java Array Toeplitz矩阵 Easy
888 Fair Candy Swap Java Array 公平糖果交换 Easy
485 Max Consecutive Ones Java Array 找出给定数组中最大连续1的个数 Easy
896 Monotonic Array Java Array 单调数据 Easy
448 Find All Numbers Disappeared in an Array Java Array 找出数组中所有不出现的数值 Easy
169 Majority Element Java Array 数组中多数派元素 Easy
697 Degree of an Array Java Array 数组的度 Easy
268 Missing Number Java Array 缺失的数字 Easy
561 Array Partition I Java Array 数组分组I Easy
926 Flip String to Monotone Increasing Java Array 单调递增的字符串 Medium
941 Valid Mountain Array Java Array 验证山峰数组 Medium
55 Jump Game Java Array Medium
21 Merge Two Sorted Lists Java Linked List 合并给定顺序的两个链表 Easy
234 Palindrome Linked List Java Linked List 回文单链表翻转 Easy
206 Reverse Linked List Java Linked List 单链表翻转 Easy
461 Hamming Distance Java Bit hanming距离 Easy
191 Number of 1 Bits Java Bit 1的bit数 Easy
136 Single Number Java Bit 单个数字(包含bit/hash方法) Easy
137 Single Number II Java Bit 单个数字 (bit方法) Easy
754 Reach a Number Java Bit 到达一个目标数字的最少步数 Easy
709 To Lower Case Java String 字符串转换小写 Easy
804 Unique Morse Code Words Java String 唯一的莫斯单词 Easy
344 Reverse String Java String 翻转字符串 Easy
345 Reverse Vowels of a String Java String 翻转元音字符串 Easy
125 Valid Palindrome Java String 验证回文串 Easy
9 Palindrome Number Java String 回文数字 Easy
771 Jewels and Stones Java Hash 宝石和石头 Easy
1 Two Sum Java Hash 两数之和 Easy
594 Longest Harmonious Subsequence Java Hash 最长和谐子序列的长度 Easy
540 Single Element in a Sorted Array Java 数组中找出single元素 Medium
811 Subdomain Visit Count Java Hash 子域名访问计数 Easy
525 Contiguous Array Java Hash 连续数组 Medium
961 N-Repeated Element in Size 2N Array Java Hash 2N矩阵中N重复元素 Easy
500 Keyboard Row Java Hash 键盘行数 Easy
884 Uncommon Words from Two Sentences Java Hash 两句话中不常见的词汇 Easy
463 Island Perimeter Java Hash 计算岛屿长度 Easy
438 Find All Anagrams in a String Java Hash 找到字符串中所有字母异位词 Medium
242 Valid Anagram Java Sort Easy
922 Sort Array By Parity II Java Sort 奇偶顺序排序 Easy
524 Longest Word in Dictionary through Deleting Java Sort 通过删除给定的字符串找到最小字典顺序的最长单词 Medium
26 Remove Duplicates from Sorted Array Java Sort 从排好序的数组中删除重复数据 Easy
958 Check Completeness of a Binary Tree Java Tree 验证完全二叉树 Medium
653 Two Sum IV - Input is a BST Java Tree 两数之和-输入是BST Easy
965 Univalued Binary Tree Java Tree 唯一二叉树 Easy
700 Search in a Binary Search Tree Java Tree BST查找 Easy
617 Merge Two Binary Trees Java Tree merge两个二叉树 Easy
589 N-ary Tree Preorder Traversal Java Tree 三叉树的前序遍历 Easy
590 N-ary Tree Postorder Traversal Java Tree 三叉树的后续遍历 Easy
429 N-ary Tree Level Order Traversal Java Tree 三叉树的层序遍历 Easy
559 Maximum Depth of N-ary Tree Java Tree 求三叉树的深度 Easy
104 Maximum Depth of Binary Tree Java Tree 求二叉树的深度 Easy
987 Increasing Order Search Tree Java Tree 递增顺序查找树 Easy
872 Leaf-Similar Trees Java Tree 叶子节点相似的树 Easy
637 Average of Levels in Binary Tree Java Tree 二叉树的层平均值 Easy
226 Invert Binary Tree Java Tree 翻转二叉树 Easy
1022 Sum of Root To Leaf Binary Numbers Java Tree 从根到叶的二进制数之和 Easy
993 Cousins in Binary Tree Java Tree 堂兄弟节点 Easy
925 Long Pressed Name Java two point / String 长按名称 Easy
343 Integer Break Java Math 数字拆分 Medium
491 Increasing Subsequences Java dfs 递增序列 Medium
133 Clone Graph Java dfs 克隆图 Medium
417 Pacific Atlantic Water Flow Java Go dfs 太平洋大西洋水流问题 Medium 二维数组DFS基本技能处理

About

算法第四版和leetcode习题

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published