Easy Find K-th largest element in N arrays. Notice You can swap elements in the array Have you met this questi…
标签:LeetCode
LeetCode刷题之路 Dota2 参议院
Dota2 参议院【中等】 Dota2 的世界里有两个阵营:Radiant(天辉)和 Dire(夜魇) Dota2 参议院由来自两派的参议员组成。现在参议院希望对一个 Dota2 游戏里的改变作出决定。他们以一个基于轮为…
Leetcode. 子矩阵的最大累加和问题
问题描述 给定一个矩阵Matrix, 其中的值由正, 有负, 有0, 返回子矩阵的最大累加和. 例如: 给定矩阵 | -90 | 48 |78 | | 64 | -40 | 64 | | -81 | -7 | 66 | …
792. Number of Matching Subsequences &524. Longest Word in Dictionary through Deleting
Number of Matching Subsequences Longest Word in Dictionary through Deleting 这两道题一起来总结一下。 把它们放在一起,是因为他俩几乎是同一道题。…
LeetCode算法题-Ugly Number(Java实现-四种解法)
这是悦乐书的第199次更新,第208篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第64题(顺位题号是263)。编写一个程序来检查给定的数字是否是一个丑陋的数字。丑陋的数字是正数,其主要因子…
527. Word Abbreviation
Hard Given an array of n distinct non-empty strings, you need to generate minimal possible abbreviations for e…
Day9. Move Zeroes(283)
问题描述 Given an array nums, write a function to move all 0’s to the end of it while maintaining the relati…
[LeetCode][Python]448. Find All Numbers Disappeared in an Array
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appea…
Leetcode - Substring with Concatenation of All Words
My code: public class Solution { public List<Integer> findSubstring(String s, String[] words) { List<…
[array] leetcode - 54. Spiral Matrix - Medium
leetcode-54. Spiral Matrix – Medium descrition GGiven a matrix of m x n elements (m rows, n columns), re…
LeetCode 182. Duplicate Emails
LeetCode 182. Duplicate Emails 题目 Write a SQL query to find all duplicate emails in a table named Person. +---…
LeetCode 3Sum 解题报告
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique tripl…