- 博客(18)
- 资源 (11)
- 收藏
- 关注
原创 【LeetCode】 22. Generate Parentheses 括号生成(Medium)(JAVA)
【LeetCode】 22. Generate Parentheses 括号生成(Medium)(JAVA)题目地址: https://leetcode.com/problems/generate-parentheses/题目描述:Given n pairs of parentheses, write a function to generate all combinations of we...
2020-02-28 16:27:14 96
原创 【LeetCode】 21. Merge Two Sorted Lists 合并两个有序链表(Easy)(JAVA)
【LeetCode】 21. Merge Two Sorted Lists 合并两个有序链表(Easy)(JAVA)题目地址: https://leetcode.com/problems/merge-two-sorted-lists/submissions/题目描述:Merge two sorted linked lists and return it as a new list. The ...
2020-02-28 16:07:05 94
原创 【LeetCode】 20. Valid Parentheses 有效的括号(Easy)(JAVA)
【LeetCode】 20. Valid Parentheses 有效的括号(Easy)(JAVA)题目地址: https://leetcode.com/problems/valid-parentheses/题目描述:Given a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ‘]’, determine...
2020-02-28 15:41:49 77
原创 【LeetCode】 19. Remove Nth Node From End of List 删除链表的倒数第N个节点(Medium)(JAVA)
【LeetCode】 19. Remove Nth Node From End of List 删除链表的倒数第N个节点(Medium)(JAVA)题目地址: https://leetcode.com/problems/remove-nth-node-from-end-of-list/题目描述:Given a linked list, remove the n-th node from th...
2020-02-28 15:13:29 96
原创 【LeetCode】 18. 4Sum 四数之和(Medium)(JAVA)
【LeetCode】 18. 4Sum 四数之和(Medium)(JAVA)题目地址: https://leetcode.com/problems/4sum/题目描述:Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + ...
2020-02-28 14:56:03 102
原创 【LeetCode】 16. 3Sum Closest 最接近的三数之和(Medium)(JAVA)
16. 3Sum Closest 最接近的三数之和(Medium)(JAVA)题目地址: https://leetcode.com/problems/3sum-closest/题目描述:Given an array nums of n integers and an integer target, find three integers in nums such that the sum i...
2020-02-28 12:47:15 95
原创 【LeetCode】 15. 3Sum 三数之和(Medium)(JAVA)
【LeetCode】 15. 3Sum 三数之和(Medium)(JAVA)题目地址: https://leetcode.com/problems/longest-common-prefix/题目描述:Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? ...
2020-02-28 12:08:43 157
原创 【LeetCode】 14. Longest Common Prefix 最长公共前缀(Easy)(JAVA)
【LeetCode】 14. Longest Common Prefix 最长公共前缀(Easy)(JAVA)题目地址: https://leetcode.com/problems/longest-common-prefix/题目描述:Write a function to find the longest common prefix string amongst an array of ...
2020-02-27 16:12:42 103
原创 【LeetCode】 11. Container With Most Water 盛最多水的容器(Medium)(JAVA)
【LeetCode】 11. Container With Most Water 盛最多水的容器(Medium)(JAVA)题目地址: https://leetcode.com/problems/container-with-most-water/题目描述:Given n non-negative integers a1, a2, …, an , where each represents...
2020-02-27 15:54:23 95
原创 【LeetCode】 9. Palindrome Number 回文数(Easy)(JAVA)
【LeetCode】 9. Palindrome Number 回文数(Easy)(JAVA)题目地址: https://leetcode.com/problems/palindrome-number/题目描述:Determine whether an integer is a palindrome. An integer is a palindrome when it reads the...
2020-02-27 15:34:27 101
原创 【LeetCode】 8. String to Integer (atoi) 字符串转换整数 (atoi)(Medium)(JAVA)
【LeetCode】 8. String to Integer (atoi) 字符串转换整数 (atoi)(Medium)(JAVA)题目地址: https://leetcode.com/problems/string-to-integer-atoi/题目描述:Implement atoi which converts a string to an integer.The functio...
2020-02-27 13:08:08 90
原创 【LeetCode】 7. Reverse Integer 整数反转(Easy)(JAVA)
【LeetCode】 7. Reverse Integer 整数反转(Easy)(JAVA)题目地址: https://leetcode.com/problems/reverse-integer/题目描述:Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 32...
2020-02-27 12:00:39 99
原创 【LeetCode】 6. ZigZag Conversion Z 字形变换(Medium)(JAVA)
【LeetCode】 6. ZigZag Conversion Z 字形变换(Medium)(JAVA)题目地址: https://leetcode.com/problems/zigzag-conversion/题目描述:The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows ...
2020-02-27 11:45:58 89
原创 【LeetCode】 5. Longest Palindromic Substring 最长回文子串(Medium)(JAVA)
【LeetCode】 5. Longest Palindromic Substring 最长回文子串(Medium)(JAVA)题目地址: https://leetcode.com/problems/longest-palindromic-substring/题目描述:Given a string s, find the longest palindromic substring in s...
2020-02-26 17:22:13 130
原创 【LeetCode】 4. Median of Two Sorted Arrays 寻找两个有序数组的中位数(Hard)(JAVA)
【LeetCode】 4. Median of Two Sorted Arrays 寻找两个有序数组的中位数(Hard)(JAVA)题目地址: https://leetcode.com/problems/median-of-two-sorted-arrays/题目描述:There are two sorted arrays nums1 and nums2 of size m and n r...
2020-02-25 20:59:55 131
原创 【LeetCode】 3. Longest Substring Without Repeating Characters 无重复字符的最长子串 (Medium)(JAVA)
【LeetCode】 3. Longest Substring Without Repeating Characters 无重复字符的最长子串 (Medium)(JAVA)题目地址: https://leetcode.com/problems/longest-substring-without-repeating-characters/题目描述:Given a string, find t...
2020-02-25 20:25:56 102
原创 【LeetCode】 2. Add Two Numbers 两数相加 (Medium)(JAVA)
【LeetCode】 2. Add Two Numbers 两数相加 (Medium)(JAVA)题目地址: https://leetcode.com/problems/add-two-numbers/题目描述:You are given two non-empty linked lists representing two non-negative integers. The digit...
2020-02-25 20:14:35 164
原创 【LeetCode】1. Two Sum 两数之和(JAVA)
题目地址: https://leetcode.com/problems/two-sum/题目描述:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have e...
2020-02-25 20:03:03 113
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人