Unary number system

Way back in the day, we didn’t have base systems! It was uphill both ways, through the snow and blazing heat. When you wanted to count one, you’d write:

|

When you wanted 5, you’d write

|||||

And clearly, 1 + 5 = 6

| + ||||| = ||||||

This is the simplest way of counting.

The value of any number = number of |’s

Serious about Learning Programming ?

Learn this and a lot more with Scaler Academy's industry vetted curriculum which covers Data Structures & Algorithms in depth.

Math Problems

Base conversion
Problem Score Companies Time Status
Excel Column Number 175 23:19
Excel Column Title 175 41:11
Digit op
Problem Score Companies Time Status
Palindrome Integer 200
HCL
17:28
Reverse integer 200 28:36
Next Smallest Palindrome! 400 63:07
Combinatorics
Problem Score Companies Time Status
K-th Permutation 200 52:59
City Tour 300
62:32
Grid Unique Paths 375 32:35
Hash search
Problem Score Companies Time Status
Highest Score 200 34:14
Bit play
Problem Score Companies Time Status
Addition without Summation 200 25:37
Number encoding
Problem Score Companies Time Status
Next Similar Number 200 55:40
Rearrange Array 250
49:03
Array dp
Problem Score Companies Time Status
Numbers of length N and value less than K 200
90:00
lock
Topic Bonus
Bonus will be unlocked after solving min. 1 problem from each bucket