github / github/gemoji

Битовые операции для цифр

Open
#323 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
4.5k
Forks
802
PR merge metrics
No merged PRs in 30d

Description

POWER_OF_TWO = {1, 2, 4, 8}
def is_power_of_two(digit):
return digit in POWER_OF_TWO

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.