Make the change you want to see in the world.
You are given a 2D integer array orders, where each orders[i] = [pricei, amounti, orderTypei] denotes that $amount_i$ orders have been placed of type $orderType_i$ at the price $price_i$. The $orderType_i$ is:
orders[i]
[pricei, amounti, orderTypei]
Readmore
A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only.
We distribute some number of candies, to a row of n = num_people people in the following way:
Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.
Design an Iterator class, which has:
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher’s h-index.
Given a column title as appear in an Excel sheet, return its corresponding column number.
In a given grid, each cell can have one of three values:
Given a binary tree, return the vertical order traversal of its nodes values.