Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DailyTemperatures ¶
DailyTemperatures returns an array answer such that answer[i] is the number of days you have to wait after the ith day to get a warmer temperature. If there is no future day for which this is possible, keep answer[i] == 0 instead.
func MaximumSumOfHeights ¶
func ValidateStackSequences ¶
ValidateStackSequences returns true if this could have been the result of a sequence of push and pop operations on an initially empty stack, or false otherwise. Elements are distinct in each sequence.
Types ¶
type MinStack ¶
type MinStack struct {
// contains filtered or unexported fields
}
type StackQueue ¶
type StackQueue struct {
// contains filtered or unexported fields
}
StackQueue is a queue implements by stack.
Click to show internal directories.
Click to hide internal directories.