# @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:44
(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++
-
-
-
MotionAlarm
MotionAlarm PublicAlarm system controlled by 433 MHz remote control, based on Arduino Nano and Ultrasonic rangefinder HC-SR04
C++ 1
-
-
circle_tg
circle_tg PublicBot for converting video into a circle note, scheduling feeds to channels, and merging video files together
Ruby
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.