LeetCode Question · Jul 2020

Facebook Question

3 upvotes 3,666 views 14 replies

Question Details

The question is to find the fewest number of operations needed to get to 1. available opperations: - add 1 - subtract 1 - divide by 2 input: 15 output: 5 because: 15->16->8->4->2->1

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding