Median of Two Sorted Arrays

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 complexity sh...

2017-03-12 11:10:22

阅读数 400

评论数 0

493. Reverse Pairs

Given an array nums, we call (i, j) an important reverse pair if i < j and nums[i] > 2*nums[j].You need to return the number of important rever...

2017-02-12 16:33:26

阅读数 1549

评论数 0

Super Ugly Number

Write a program to find the nth super ugly number.Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes ...

2017-02-01 10:39:50

阅读数 162

评论数 0

483. Smallest Good Base

For an integer n, we call k>=2 a good base of n, if all digits of n base k are 1.Now given a string representing n, you should return the smallest...

2017-01-30 10:07:22

阅读数 1611

评论数 0

491. Increasing Subsequences

Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increasing s...

2017-01-30 09:50:57

阅读数 265

评论数 0

312. Burst Balloons

Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloo...

2017-01-18 09:49:51

阅读数 253

评论数 0

220. Contains Duplicate III

Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] an...

2017-01-17 15:17:54

阅读数 348

评论数 0

115. Distinct Subsequences

Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from t...

2017-01-17 10:11:58

阅读数 203

评论数 0

472. Concatenated Words

周日参加了leetcode的contest,莫名其妙的被这道题卡住了,给出的反馈是内存超出,就觉得很郁闷,经过今天的好好研究终于发现了原因(根据错误样例反推原因)。 Given a list of words, please write a program that returns all co...

2016-12-19 16:17:02

阅读数 504

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭