Given an array which consists of non-negative integers and an integer m, you can split the array i…
分类:LeetCode题目解答
[LeetCode] Search a 2D Matrix 搜索一个二维矩阵
Write an efficient algorithm that searches for a value in an m x n matrix. This mat…
[LeetCode] Design Linked List 设计链表
Design your implementation of the linked list. You can choose to use the singly linked list or the…
[LeetCode] Shortest Completing Word 最短完整的单词
Find the minimum length word from a given dictionary words, which has all the letters from the str…
33. Search in Rotated Sorted Array
欢迎fork and star:Nowcoder-Repository-github 33. Search in Rotated Sorted Array 题目 Suppose an array sorted in as…
LeetCode | Binary Tree Zigzag Level Order Traversal
题目: Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, fr…
LeetCode | Two Sum
题目: Given an array of integers, find two numbers such that they add up to a specific target number. The functi…
241. Different Ways to Add Parentheses
Given a string of numbers and operators, return all possible results from computing all the different possible…
136. Single Number
欢迎fork and star:Nowcoder-Repository-github 136. Single Number 题目 Given an array of integers, every element app…
[LeetCode] Valid Palindrome 验证回文字符串,Manacher's Algorithm 马拉车算法
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring …
【Leetcode】6. ZigZag Conversion
1. 题目 The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like th…
力扣(LeetCode)965
题目地址:https://leetcode-cn.com/probl…题目描述:如果二叉树每个节点都具有相同的值,那么该二叉树就是单值二叉树。只有给定的树是单值二叉树时,才返回 true;否则返回 false…