TLDR
Given an integer `n` is a power of four, if there exists an integer such that `x` such that`n == 4x` The easiest way how to solve this problem is to divide N on 4 and that is it. We will iterate again and again till our number is bigger than 1. Author: Sergei Golitsynlink: <https://leetcode.com/problems/power-of-four/Given an integer `n` return `true` if it is a power of four. Otherwise, return`false`via the TL;DR App
no story
Written by refocus | CEO & Founder at Refocus
Serial IT Entrepreneur with 2 exits
Mentor at @ 500 Startups and @ Techstars