Sara

  • Home

  • Tags

  • Categories

  • Archives

  • Search

LeetCode_Split Array Largest Sum

Posted on 2019-08-29 | Edited on 2019-08-30 | In LeetCode

Split Array Largest Sum

Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m subarrays.
(分割数组的最大值最小)

Read more »

LeetCode_Meeting Rooms II

Posted on 2019-08-22 | In LeetCode

Meeting Rooms II

给定一系列的会议时间间隔intervals,包括起始和结束时间[[s1,e1],[s2,e2],…],找到所需的最小的会议室数量。
(区间重叠最多部分)

Read more »

LeetCode_Maximum Product of Three Numbers

Posted on 2019-08-22 | In LeetCode

Maximum Product of Three Numbers

Given an integer array, find three numbers whose product is maximum and output the maximum product.
(从数组中找出乘积最大的3个数)

Read more »

LeetCode_Convert Binary Search Tree to Sorted Doubly Linked List

Posted on 2019-08-20 | In LeetCode

Convert Binary Search Tree to Sorted Doubly Linked List

Convert a BST to a sorted circular doubly-linked list in-place. Think of the left and right pointers as synonymous to the previous and next pointers in a doubly-linked list.
(将二叉搜索树转换为一个有序的双向链表)

Read more »

LeetCode_Validate Stack Sequences

Posted on 2019-08-20 | In LeetCode

Validate Stack Sequences

Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop operations on an initially empty stack.
(判断有效的栈压入、压出序列)

Note:

  1. 0 <= pushed.length == popped.length <= 1000
  2. 0 <= pushed[i], popped[i] < 1000
  3. pushed is a permutation of popped.
  4. pushed and popped have distinct values.
Read more »

Algorithm_Knapsack Problem

Posted on 2019-08-10 | Edited on 2019-08-13 | In Algorithm

Knapsack Problem

背包问题

Read more »

Leetcode_Perfect Squares

Posted on 2019-06-30 | Edited on 2019-07-05 | In LeetCode

Perfect Squares

Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, …) which sum to n.
(将一个正整数分为干个平方数的和,使得平方数个数最少)

Read more »

Leetcode_Integer to English Words

Posted on 2019-06-30 | Edited on 2019-07-05 | In LeetCode

Integer to English Words

Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 2^31 - 1.
(读数值)

Read more »

Leetcode_Ugly Number II

Posted on 2019-06-30 | Edited on 2019-07-05 | In LeetCode

Ugly Number II

Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5.
(第 n 个丑数)

Read more »

Algorithm_Closest Pair of Points

Posted on 2019-06-30 | In Algorithm

Closest Pair of Points(平面最近点对)

Read more »
12…21

Sara Han

207 posts
4 categories
40 tags
© 2019 Sara Han
Powered by Hexo v3.8.0
|
Theme – NexT.Mist v6.4.2