xinyu04

导航

2022年7月10日 #

LeetCode Container With Most Water 区间贪心

摘要: You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, hei 阅读全文

posted @ 2022-07-10 20:56 Blackzxy 阅读(13) 评论(0) 推荐(0) 编辑

LeetCode Median of Two Sorted Arrays 排序

摘要: Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity shou 阅读全文

posted @ 2022-07-10 02:50 Blackzxy 阅读(6) 评论(0) 推荐(0) 编辑

LeetCode Two Sum Map映射

摘要: 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 assume that each inp 阅读全文

posted @ 2022-07-10 02:25 Blackzxy 阅读(12) 评论(0) 推荐(0) 编辑