随笔分类 -  Leetcode

摘要:1. 题目 1.1 英文题目 Given an array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific 阅读全文
posted @ 2021-07-12 09:39 云梦士 阅读(85) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a soluti 阅读全文
posted @ 2021-07-10 16:12 云梦士 阅读(108) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 You are given an array prices where prices[i] is the price of a given stock on the ith day. Find the maximum profit you can achieve. Yo 阅读全文
posted @ 2021-07-10 10:30 云梦士 阅读(98) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosin 阅读全文
posted @ 2021-07-07 10:21 云梦士 阅读(106) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal's triangle. In Pascal's triangle, each number is the sum 阅读全文
posted @ 2021-07-06 18:20 云梦士 阅读(116) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree. A hei 阅读全文
posted @ 2021-07-06 15:53 云梦士 阅读(114) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of 阅读全文
posted @ 2021-06-29 17:00 云梦士 阅读(113) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 Given a non-empty array of decimal digits representing a non-negative integer, increment one to the integer. The digits are stored such 阅读全文
posted @ 2021-06-29 10:32 云梦士 阅读(138) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum 阅读全文
posted @ 2021-06-27 17:56 云梦士 阅读(136) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where i 阅读全文
posted @ 2021-06-25 20:21 云梦士 阅读(113) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may 阅读全文
posted @ 2021-06-25 14:59 云梦士 阅读(129) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 Given an integer array nums sorted in non-decreasing order, remove the duplicates in-placein-place such that each unique element appear 阅读全文
posted @ 2021-06-24 18:57 云梦士 阅读(161) 评论(0) 推荐(0) 编辑
摘要:1. 题目 1.1 英文题目 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assum 阅读全文
posted @ 2021-06-23 17:30 云梦士 阅读(89) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示