// Package q3370 implements a solution for https://leetcode.com/problems/smallest-number-with-all-set-bits/ package q3370 func smallestNumber(n int) int { i := 0 for n > 0 { n >>= 1 i++ } return 1<