Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

Challenges

Dive into our coding challenges to have fun and acquire new skills. Join us in chat to discuss!

NEW! Grow your skills

Challenges offer an easy way to test your understanding and pick up some additional skills along the way.

Add your entry to the challenge

Put your coding skills to the test and share your answer with everyone. We're excited to see what you've come up with.

Time to discuss and vote

Explore the diverse solutions from our community. Share your thoughts through comments, ask questions, and appreciate great code by casting your vote for the best entry.

And the awards go to...

Your brilliant solutions earn you special recognition! We'll be highlighting top contributors and insightful approaches, so put your best code forward.

Are you interested in Challenges on Stack Overflow?
Add more feedback
21 challenges
Sorted by:
27 votes
1k views
44 entries

Challenge 20: We all scream for Ice Cream!

The Challenge: Write a program to determine how many tubs of various ice cream flavors a volunteer needs to purchase for an ice cream social fundraiser she is planning for a charity organization. 30 ...

29 votes
3k views
21 entries

Challenge #19: In Other Words... [COMPLETED]

Update on June 17: This challenge is now closed, thanks to everyone who gave it a shot. The winners of this challenge are: André, Apfelvater, Daniel T, Fred Bill, Jannik S., joaocandre, Kane ...

44 votes
5k views
45 entries

Challenge #18: Hidden in Plain Sight [COMPLETED]

Update on May 14, 2026: This challenge is now closed, thanks to everyone who participated. The winners of this challenge are: AKHolland, amance, Aravind K. B, Book, cknott, Daniel T, Dmitrii Bychenko, ...

30 votes
5k views
27 entries

Challenge #17: The Accurate Selection [COMPLETED]

Update on April 14, 2026: This challenge is now closed. Thanks to everyone who participated! The winners of this challenge, who solved all 10 selections, are: Atmo, cknott, keymasterr, Antoine, ...

55 votes
8k views
83 entries

Challenge #16: Change is the only constant [COMPLETED]

Update on March 12, 2026: Thanks to everyone who participated in Challenge 16! The correct output is: 73, -1, 6, -1, 4, 2, -1, 5, 2, -1, 5, 2, 3, -1, 2, 4, 4, 2, 2, 2, 4, 4, 3, 2, 3, 2, 4, 3, 3, 4, 3, ...

80 votes
8k views
101 entries

Challenge #15: Mystery Alphabet Decoder [COMPLETED]

Update on February 13, 2026: Thanks to everyone who participated in Challenge 15! The correct output for the alien alphabet is: ⪏⊚⊕⊟⊞⨙⊛∭↔⊠⊝৲⊣⊗⇲⊥⊢◉⊡⊤◴⚆⊜↪ 87 users got the right answer, out of 101 ...

63 votes
9k views
95 entries

Challenge #14: Signal from Noise [COMPLETED]

Update on January 8, 2026: Huge thanks to everyone who participated in the challenge. The conditions for signal/noise were tricky, and we appreciate the careful implementations! The correct sum of the ...

84 votes
8k views
73 entries

Challenge #13: Integer sorting in a grid [COMPLETED]

Update on October Dec 4: Huge thanks to everyone who participated in the challenge. The correct answer is that 45 of the sets were impossible to put into the grid. We received 70 responses from 68 ...

43 votes
5k views
9 entries

Challenge #12: Spooky Halloween scene [COMPLETED]

Update, Nov 13: Thanks to all that participated and voted in this challenge! In terms of votes, top 3 entries were: 1st place: Phil with a spooky house scene 2nd place: Death-is-the-real-truth (...

63 votes
6k views
55 entries

Challenge #11: Taco crawl optimization [COMPLETED]

Update on October 23: Huge thanks to everyone who participated in the challenge. The correct routing was [0,7,5,6,2,10,4] for 97 tastiness and 2.8945 tastiness/distance. 43 of the 53 entries provided ...

-17 votes
6k views
57 entries

Challenge #10: Road safety challenge (joint with Kaggle) [COMPLETED]

Update, Nov 1, 2025: The challenge is now complete. Thanks to those that participated. We'll review the entries and soon announce the users that receive the badge. Kaggle is a platform for Machine ...

23 votes
5k views
30 entries

Challenge #9: Random Number Generator [COMPLETED]

Update: October 6, 2025: Thanks to everyone who participated in this challenge! It was very interesting to see the diverse approaches to random number generation. Congratulations to the following ...

28 votes
3k views
27 entries

Challenge #8: Word ladder [COMPLETED]

Update, October 2, 2025: Appreciation to everyone who participated in this challenge! The correct length of the word ladders is as follows: [stone, money] [11] [bread, crumb] [11] [smile, giant] [11] ...

50 votes
4k views
97 entries

Challenge #7: Pangram checker [COMPLETED]

Update, October 2, 2025: A HUGE thanks to everyone who participated in this challenge! The correct answer is: 819 Non-Pangrams, 132 Pangrams (non-perfect) and 49 Perfect-Pangrams. We are very ...

78 votes
8k views
130 entries

Challenge #6: Integer Counting [COMPLETED]

Update on October 8, 2025: Thanks to everyone who voted on the entries! We received 281 votes from 59 users. There were a lot of great responses to this challenge. We appreciate the participation. We'...

15 30 50 per page