题目: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays…
分类:LeetCode
409. Longest Palindrome
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes th…
[Leetcode] Pascal's Triangle 杨辉三角形
Pascal’s Triangle I Given numRows, generate the first numRows of Pascal’s triangle. For example, g…
【leetcode】47. Permutations II 非重复的所有组合
1. 题目 Given a collection of numbers that might contain duplicates, return all possible unique permutations. Fo…
LeetCode | Merge Sorted Array(归并有序数组)
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has e…
leetCode 198
问题 You are a professional robber planning to rob houses along a street. Each house has a certain amount of mon…
LeetCode算法题-K-diff Pairs in an Array(Java实现)
这是悦乐书的第254次更新,第267篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第121题(顺位题号是532)。给定一个整数数组和一个整数k,您需要找到数组中唯一的k-diff对的数量。 …
[LeetCode] Count of Range Sum 区间和计数
Given an integer array nums, return the number of range sums that lie in [lower, upper] …
[LeetCode] Third Maximum Number 第三大的数
Given a non-empty array of integers, return the third maximum number in this array.…
LeetCode | Plus One(数组表示的数字加1)
Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored s…
LeetCode从零刷起 (9. Palindrome Number)
LeetCode(9. Palindrome Number) Determine whether an integer is a palindrome. Do this without extra space. clic…
[LintCode][System Design] Inverted Index
Problem Create an inverted index with given documents. Example Given a list of documents with id and content. …