DEV Community

Cover image for Think You Can Complete This Challenge? πŸ€”πŸ”₯
David Thurman @ BeyondCode.app for Beyond Code

Posted on • Edited on

Think You Can Complete This Challenge? πŸ€”πŸ”₯

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 πŸ”₯

Beyond Code Preview

Top comments (2)

Collapse
 
dido_joy profile image
Joy

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!

Collapse
 
beyond_code_app profile image
David Thurman @ BeyondCode.app Beyond Code

Thank you so much! Im glad you enjoyed it πŸ™‚. I've got many more you can check out for free at beyondcode.app/ !