# @param {Integer} n
# @return {Integer[]}
def lexical_order(n)
res = Array.new
curr = 1
n.times {
res << curr
curr *= 10
while curr > n
curr /= 10
curr += 1
curr /= 10 while curr % 10 == 0
end
}
return res
end
on perpetual freelance
-
BSUIR
- $HOME
-
16:05
(UTC +03:00)
Highlights
- Pro
Pinned Loading
-
GateSec
GateSec PublicWi-Fi access control system, unlocking by NFC 13.56 MHz and reconciliation of records in remote SQLite
C++
-
whistleblower
whistleblower PublicRuby UI application (JSON, YML, LibUI, OpenSSL password encryption) - to track cryptocurrencies and send notifications to your email using SMTP
Ruby
-
-
-
MotionAlarm
MotionAlarm PublicAlarm system controlled by 433 MHz remote control, based on Arduino Nano and Ultrasonic rangefinder HC-SR04
C++ 1
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.