LeetCode - Flatten Binary Tree to Linked List
Question Definition
Given a binary tree, flatten it to a linked list in-place.
More …Given a binary tree, flatten it to a linked list in-place.
More …You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it is possible to measure exactly z litres using these two jugs.
More …In LeetCode Store, there are some kinds of items to sell. Each item has a price.
However, there are some special offers, and a special offer consists of one or more different kinds of items with a sale price.
You are given the each item’s price, a set of special offers, and the number we need to buy for each item. The job is to output the lowest price you have to pay for exactly certain items as given, where you could make optimal use of the special offers.
Each special offer is represented in the form of an array, the last number represents the price you need to pay for this special offer, other numbers represents how many specific items you could get if you buy this offer.
You could use any of special offers as many times as you want.
More …Implement pow(x, n).
More …Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.
More …