Given a string and a string dictionary, find the longest string in the dictionary that can be formed by…
分类:LeetCode题目解答
[LeetCode] Optimal Division 最优分隔
Given a list of positive integers, the adjacent integers will perform the float division. For exam…
LeetCode 257 Binary Tree Paths
题目描述 Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 / \ 2…
[Leetcode] Reorder List 链表重新排序
Reorder List Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do…
LeetCode | Decode Ways
题目: A message containing letters from A-Z is being encoded to numbers using the following mapping: '…
LeetCode 074 Search a 2D Matrix
题目说明 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following …
【leetcode】63. Unique Paths II 有障碍的棋盘走路路径数量
1. 题目 Follow up for “Unique Paths”: Now consider if some obstacles are added to the grids. How man…
[LeetCode] Maximum Size Subarray Sum Equals k 最大子数组之和为k
Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If ther…
[LeetCode] Kill Process 结束进程
Given n processes, each process has a unique PID (process id) and its PPID (pa…
LeetCode 065 Valid Number
题目描述 Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false…
79. Word Search
79. Word Search 题目 Given a 2D board and a word, find if the word exists in the grid. The word can be construct…
[LeetCode] Split Array into Consecutive Subsequences 将数组分割成连续子序列
You are given an integer array sorted in ascending order (may contain duplicates), you need to split th…