We are making some upgrades to Challenges – one of which is allowing users to contribute their own! If you have an idea for a challenge, please post it as an entry here in this Sandbox, where it can be reviewed and possibly improved upon.
We’d prefer fully written out challenges, but if you have an outline of an idea, that is okay too. Also, feel free to leave feedback / votes on challenge ideas that are posted here.
Users whose ideas are selected to be posted as Challenges will be credited and receive a new badge for their effort. All challenge prompts and ideas submitted here must be written fully by you – not by a GenAI tool or copied from another source.
What makes a good challenge
Challenges can have a wide variety of themes. Some interesting options could be:
Build something
A fun project like meme generator, game, productivity app, art, etc.
Using a certain technology (or maybe without using a certain technology?)
Spot the error
- Figure out what’s wrong with some code (perhaps it’s giving a compiling error, has a security vulnerability, wrong output, etc.)
Solve a puzzle
Optimize performance
- Improve the efficiency of a text manipulation, data query, etc.
To help fellow users decide which challenge could be a good fit for them to try, please also indicate some or all of the following:
An approximate difficulty level
Rough estimate of time it may take to solve the challenge
Any specific skills or technology that must be utilized
Recommendations for how winners should be selected, such as:
Crowd favorite, determined by upvotes
Performance based grading criteria (e.g. most efficient solution, most functionality, etc.)
Any other ideas you may have
Title: "Clockwise or anticlockwise?"
When I was learning how determinants (in math) work to calculate the area enclosed by a set of points, I found it pretty cool that the area can turn out positive or negative depending on the direction. If the points go clockwise, the area is negative; if they go anticlockwise, it’s positive. That got me thinking… hmmm this could be turned into a coding problem.
Problem: Suppose you’re given an n×m matrix grid filled with numbers/letters/symbols/characters.
Input:As input a sequence of characters that forms a closed loop by moving through the grid will be given, kinda like tracing points on a 2D plane.
What to do: Treat the sequence as points and calculate the area of the loop using a determinant-based method.
Figure out whether the loop is clockwise /anticlockwise from the sign of the area.
Output: As output you have to generate a passcode-style result.
Example:
"a$)2!'8@!*)'—12—+—24"
Or, "a$)2!'8@!*)'12+24"
“[Clockwise sequence of the input] – [number of characters in the sequence] – [sign] — [area]”
The input loop could be clockwise or anticlockwise, and the program should handle both without any special cases.
I like this idea! We are interested in possibly using it for a future challenge. I am going to send you a chat message to discuss further.