1. 题目 Given a linked list, remove the nth node from the end of list and return its head. For example, Given li…
分类:LeetCode题目解答
135. Candy
欢迎fork and star:Nowcoder-Repository-github 135. Candy 题目 There are N children standing in a line. Each child i…
[LeetCode] Reaching Points 到达指定点
A move consists of taking a point (x, y) and transforming it to either (x, x+y) or&…
213. House Robber II
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money …
【Leetcode】9. Palindrome Number 判断一个数字是否是回文数字
1. 题目 Determine whether an integer is a palindrome. Do this without extra space. 2. 思路 反转后和自身比较是否相等。不需要考虑溢出,因为…
[LeetCode] Employee Free Time 职员的空闲时间
We are given a list schedule of employees, which represents the working time for each employe…
[LeetCode] Rank Scores 分数排行
Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranki…
[LeetCode] Rotate Array 旋转数组
Rotate an array of n elements to the right by k steps. For example, with n&nbs…
[LeetCode] Summary Ranges 总结区间
Given a sorted integer array without duplicates, return the summary of its ranges. For example, given […
[LeetCode] Palindromic Substrings 回文子字符串
Given a string, your task is to count how many palindromic substrings in this string. The substrings wi…
[LeetCode] Binary Tree Longest Consecutive Sequence 二叉树最长连续序列
Given a binary tree, find the length of the longest consecutive sequence path. The path refers t…
[LeetCode] Nested List Weight Sum 嵌套链表权重和
Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Ea…