Skip to content
qincasin edited this page May 29, 2019 · 1 revision

Leetcode Solutions with Java


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

I have solved 104 / 1050 problems while 944 problems are still locked.

# Title Source Code Related Topics Explanation Difficulty
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
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
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
925 Long Pressed Name Java two point / String 长按名称 Easy
343 Integer Break Java Math 数字拆分 Medium
Clone this wiki locally