随笔分类 - LeetCode刷题
摘要:##1 题目描述 ###1.1 英文描述 Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center). Example 1: Input: ro
阅读全文
摘要:##1 题目描述 ###1.1 英文描述 Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Example 1: Input:
阅读全文
摘要:##1 题目描述 ###1.1 英文描述 Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target
阅读全文
摘要:1.题目描述 英文版: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were in
阅读全文
摘要:1.题目描述 英文版: Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's
阅读全文
摘要:1.题目描述 英文版: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,
阅读全文
摘要:1.题目描述 英文版: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement i
阅读全文
摘要:1.题目描述 英文版: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the su
阅读全文
摘要:1.题目描述 英文版: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which
阅读全文
摘要:1.题目描述 英文版: Given n non negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that
阅读全文
摘要:1.题目描述 英文版: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time c
阅读全文
摘要:##1.题目描述 ####英文版: 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 i
阅读全文

浙公网安备 33010602011771号