엔지니어 게시판
LeetCode 솔루션 분류

[8/26] 869. Reordered Power of 2

컨텐츠 정보

본문

Medium
1850363Add to ListShare

You are given an integer n. We reorder the digits in any order (including the original order) such that the leading digit is not zero.

Return true if and only if we can do this so that the resulting number is a power of two.

 

Example 1:

Input: n = 1
Output: true

Example 2:

Input: n = 10
Output: false

 

Constraints:

  • 1 <= n <= 109
Accepted
96,694
Submissions
150,404

관련자료

댓글 0
등록된 댓글이 없습니다.
전체 396 / 3 페이지
번호
제목
이름

최근글


인기글


새댓글


Stats


  • 현재 접속자 163 명
  • 오늘 방문자 2,309 명
  • 어제 방문자 6,462 명
  • 최대 방문자 11,134 명
  • 전체 회원수 1,050 명
알림 0