Leetcode - Power of Two Python solution

preview_player
Показать описание

Algorithm: Divide recursively by 2 and check for remainder.
Time : O(log n)
Space: O(1)

#Leetcode #PowerOfTwo

Subscribe for more updates on #programming tips, coding interview questions and #algorithm patterns.
Рекомендации по теме