Hey folks!
I've always been a fan of small but fun programming challenges (I still remember learning w/ Project Euler ~15 years ago).
I wanted to create a similar feature on my site for people to practice both Math based and Algorithm based challenges. They're great for:
- Programming Practice
- Coding Interview Prep
- & just a fun way to challenge yourself :)
You can find all 100 Challenges at: https://www.beyondcode.app/
All the challenges are completely free, and you can easily track your progress as you complete them. I hope people find it helpful and enjoyable!
Having said that, here's your first problem 🙂
First Digit Match
Description
The number 525 starts with 5 and ends with 5 - the first and last digits match.
The number 1231 starts with 1 and ends with 1.
Single digit numbers like 7 also count.
Problem
How many positive integers less than 100000 have matching first and last digits?
Think you have the answer? Comment below or go check at https://www.beyondcode.app/. First one to comment right wins 🔥

Top comments (2)
This is a fun and clever challenge — simple on the surface, but it really gets you thinking about how to approach edge cases and write clean, efficient code. I appreciate the creativity behind these kinds of exercises. Looking forward to more like this!
Thank you so much! Im glad you enjoyed it 🙂. I've got many more you can check out for free at beyondcode.app/ !