Buttercola
Sunday, February 21, 2021
Lintcode 676. Decode Ways II
›
A message containing letters from A-Z is being encoded to numbers using the following mapping way: 'A' -> 1 'B' -> 2 ....
2 comments:
Tuesday, February 16, 2021
Lintcode 1208. Target Sum
›
You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and - . For each integer, you s...
1 comment:
Saturday, February 6, 2021
Leetcode Minimum Cost Tree From Leaf Values
›
Given an array arr of positive integers, consider all binary trees such that: Each node has either 0 or 2 children; The values of arr co...
Thursday, February 4, 2021
Leetcode 739. Daily Temperatures
›
Given a list of daily temperatures , produce a list that, for each day in the input, tells you how many days you would have to wait until a...
Lintcode 1491. Score of Parentheses
›
Given a balanced parentheses string S , compute the score of the string based on the following rule: () has score 1 AB has score A + B ,...
Lintcode 1201. Next Greater Element II
›
Given a circular array (the next element of the last element is the first element of the array), print the Next Greater Number for every ele...
Leetcode 496. Next Greater Element I
›
You are given two integer arrays nums1 and nums2 both of unique elements, where nums1 is a subset of nums2 . Find all the next grea...
Wednesday, February 3, 2021
Lintcode 1740. Online Stock Span
›
Write a class StockSpanner which collects daily price quotes for some stock, and returns the span of that stock's price for the curr...
Lintcode 1817. Divide Chocolate
›
You have one chocolate bar that consists of some chunks. Each chunk has its own sweetness given by the array sweetness. You want to share th...
Tuesday, February 2, 2021
Lintcode 285. Tall Building
›
At the weekend, Xiao Q and his friends came to the big city for shopping. There are many tall buildings.There are n tall buildings in a ro...
Friday, January 29, 2021
Lintcode 1379. The Longest Scene
›
A string, each character representing a scene. Between two identical characters is considered to be a continuous scene. For example: abcda ...
Lintcode 1397. Digital Coverage
›
Description 中文 Given some intervals, ask how many are covered most, if there are multiple, output the smallest number. the number of the int...
›
Home
View web version