Loading editor...
Press Space to run code
Visualization
📊
Run code to visualize data structures
Console
Console output will appear here
Call Stack0 frames
⌸
Run your code to see the call stack
Variables
Run code to see variables
Return array where ans[i] is the number of 1s in binary of i
Run code to visualize data structures
Console output will appear here
Run your code to see the call stack
Run code to see variables