随笔分类 -  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 阅读全文
posted @ 2021-05-14 01:11 limaodeng 阅读(131) 评论(0) 推荐(0)
摘要:##1 题目描述 ###1.1 英文描述 Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Example 1: Input: 阅读全文
posted @ 2020-08-12 00:54 limaodeng 阅读(160) 评论(2) 推荐(0)
摘要:##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 阅读全文
posted @ 2020-08-12 00:47 limaodeng 阅读(85) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-02-24 21:40 limaodeng 阅读(115) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-02-24 21:20 limaodeng 阅读(88) 评论(0) 推荐(0)
摘要: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, 阅读全文
posted @ 2020-02-23 19:59 limaodeng 阅读(109) 评论(0) 推荐(0)
摘要:1.题目描述 英文版: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement i 阅读全文
posted @ 2020-02-19 00:14 limaodeng 阅读(133) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-02-18 00:54 limaodeng 阅读(133) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-02-16 23:55 limaodeng 阅读(115) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-02-16 19:49 limaodeng 阅读(125) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-02-16 02:29 limaodeng 阅读(157) 评论(0) 推荐(0)
摘要:##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 阅读全文
posted @ 2020-02-16 01:21 limaodeng 阅读(182) 评论(0) 推荐(0)