Problems
Previous question · 148
Bias variance decomposition
medium
ML Coding
Next question · 150
House Robber
medium
Algorithms
Random coding question
Python
Language
Python
Description
Solution
Discussion
149. Reduce Array Size to The Half
medium
Amazon
entry
Roles
Software Engineer
ML Engineer
Data Engineer
Quantitative Researcher
Research Scientist
Companies
Amazon
Levels
entry
Tags
Array
Hash Table
Greedy
Sorting
Heap (Priority Queue)
Similar Questions
Custom Sort String
medium
Algorithms
Number of 1 Bits
easy
Algorithms
Letter Case Permutation
medium
Algorithms
40 people
are solving this problem
Run
Submit
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATA
INTERVIEW
Interactive coding terminal
Python environment ready.
Type a command below or run code from the editor.
run script
Execute the current editor contents
submit
Grade the current editor contents against all solution test cases
python ("print hello world")
Run an isolated Python command
help
Show all available commands
>>>