Cody Contest 2025 has concluded! Winners Announced

Chen Lin on 10 Dec 2025 at 0:21
Latest activity Reply by Chen Lin on 25 Dec 2025 at 13:13

The Cody Contest 2025 has officially wrapped up! Over the past 4 weeks, more than 700 players submitted over 20,000 solutions. In addition, participants shared 20+ high-quality Tips & Tricksarticles—resources that will benefit Cody users for years to come.
Now it’s time to announce the winners.
🎉 Week 4 winners:
Weekly Prizes for Contest Problem Group Finishers:
Weekly Prizes for Contest Problem Group Solvers:
Weekly Prizes for Tips & Tricks Articles:
This week’s prize goes to @WANG Zi-Xiang. See the comments from our judge and problem group author @Matt Tearle:
‘We had a lot of great tips for solving Cody problems in general and the contest problems specifically. But we all know there are those among us who, having solved the problem, still want to tinker and make their code better. There are different definitions of "better", but code size remains the base metric in Cody. Enter Wang Zi-Xiang who compiled a list of many tips for reducing Cody size. This post also generated some great discussion (even prompting our insane autocrat, Lord Ned himself, to chime in). I particularly like the way that, while reducing Cody size often requires some arcane tricks that would normally be considered bad coding practice, the intellectual activity of trying to "game the system" makes you consider different programming approaches, and sometimes leads you to learn corners of MATLAB that you didn't know.’
🏆 Grand Prizes for the Main Round
Team Relentless Coders:
1st Place: @Boldizsar
2nd Place: @Roberto
Team Creative Coders:
1st Place: @Mehdi Dehghan
2nd Place: @Vasilis Bellos
3rd Place: @Alaa
Team Cool Coders
1st Place: @Hong Son
2nd Place: @Norberto
3rd Place: @Maxi
Congratulations to all! Securing a top position on the leaderboard requires not only advanced MATLAB skills but also determination and consistency throughout the four-week contest. You will receive Amazon gift cards.
🥇 Winning Team
The competition was incredibly tight—we even had to use the tie-breaker rule.
Both Team Cool Coders and Team Relentless Coders achieved 16 contest group finishers. However, the last finisher on Cool Coders completed the problem group at 1:02 PM on Dec 7, while the last finisher on Relentless Coders finished at 9:47 PM the same day.
Such a close finish! Congratulations to Team Cool Coders, who have earned the Winning Team Finishers badge.
🎬 Bonus Round
Invitations have been sent to the 6 players who qualified for the Bonus Round. Stay tuned for updates—including the Big Watch Party afterward!
Congratulations again to all winners! We’ll be reaching out after the contest ends. It has been an exciting, rewarding, and knowledge-packed journey.
See you next year!
Hong Son
Hong Son on 25 Dec 2025 at 12:47
Has anyone received the prize from the contest?
Chen Lin
Chen Lin on 25 Dec 2025 at 13:13

Hi Hong,

The bonus round just ended. We will reach out to winners very soon. Merry Christmas & Happy Holidays!

Chen

idris
idris on 13 Dec 2025 at 7:47
Any other opportunities?
Mohammad Aryayi
Mohammad Aryayi on 13 Dec 2025 at 6:16
Congratulations to all players and our cool team. I am glad to I was part of this team and thanks Mathworks team for organizing this match.
Yu Zhang
Yu Zhang on 12 Dec 2025 at 15:22
OMG. I see my name!!
I feel hornored to see my name shown up here in this post. This is not only helping me building up confidence in this cody community but also help me building up confidence in myself. I would like to thank the host of this cody contest and @MathWorks hosting this. It is a challenging and fulfilling coding journey.
And also thank to everyone attended this contest and allowing me to see different coding approach solutions after solving each coding question.
Christian Schröder
Christian Schröder on 11 Dec 2025 at 20:10
Thanks for the fun contest to all the awesome, talented, hard-working people at MathWorks! (Or maybe I should just say "the people at MathWorks", since there isn't anyone working there who's not awesome, talented, and hard-working.)
And thanks as well to everyone who participated in the contest, solved problems and collaborated on improving solutions, and shared their knowledge!
Matt Tearle
Matt Tearle on 11 Dec 2025 at 16:10
Thanks to all of you who participated and made this so much fun. I appreciate all the kind words thrown at me and Chen (and his small but mighty team). The latter definitely deserve praise for making it all work. But you, the participants, are also an indispensible part of the success. All the discussions, interactions, collaborative refinement of solutions... to me, this contest showed the good that can happen when smart people get curious and let themselves have fun indulging that curiosity.
Chen Lin
Chen Lin on 11 Dec 2025 at 17:09
Thank you all for the kind words and for making this year’s contest such a success! While I’m honored by the compliments, this truly was a team effort. A huge shoutout to @Vanessa Wang, our Cody deveoper. Her incredible work building the contest platform made everything possible.
I also want to recognize @Eera Thatte and @Ned Gulley who contributed behind the scenes to design the contest and keep things running smoothly. And of course, hats off to all the participants—you brought the energy, creativity, and collaboration that turned this into more than just a competition. Seeing the spontaneous teamwork and innovative solutions was inspiring and exactly what we hoped to foster.
Looking forward to seeing what magic unfolds in the Bonus Round!
Roberto
Roberto on 10 Dec 2025 at 21:50
Congraduations to everyone that participated in this contest. I'm not sure about others on here, but this was my first time entering any sort of programming competition and I had a ton of fun solving the contest problems. I just want to shout out @Athi for helping with my solution for the final problem in their wonderful writeup. Hats off for making a fun, challenging and unique set of problems that were very rewarding to solve!
Just curious about prizes. I have not recieved any sort of communication about prizes. I was on the week 3 completion prize and being on the team podium. If I was supposed to get an email I have not received any sort of communication about this. Are we just waiting for the contest to be fully finished?
Thank you to everyone that made this possible and making it such a wonderful experience, even to beginners.
Chen Lin
Chen Lin on 11 Dec 2025 at 15:03
Hi @Roberto. Congratulations on winning the prizes and being on the team podium! I'm glad you enjoyed your first programming competition with us. Yes. We will reach out to winners after the bonus round ends.
Umar
Umar on 10 Dec 2025 at 20:25

@Vasilis Bellos @WANG Zi-Xiang

Your collaborative achievement brilliantly exemplifies how extreme code minimization and principled software engineering share identical cognitive prerequisites—comprehensive domain mastery, architectural intuition, and metacognitive awareness of linguistic affordances. Reducing the Clueless problem from hundreds of lines to 152 characters represents far more than syntactic compression; it demonstrates profound understanding of MATLAB's computational philosophy.

The vectorization techniques you employed align perfectly with MathWorks documentation emphasizing that vectorized code appears more like mathematical expressions, making it simultaneously more readable, less error-prone, and significantly faster through implicit array expansion and broadcasting operations. Your sophisticated exploitation of logical indexing—enabling direct element selection without explicit iteration—and operator precedence hierarchies reflects the language-specific mastery that distinguishes competent programmers from genuine virtuosos. These aren't trivial optimizations but rather reconceptualizations of computational operations through higher-order abstractions.

Zi-Xiang, your observation that this emerged through incremental iterations rather than sudden epiphany underscores a critical truth: genuine innovation manifests as cumulative deliberation and collaborative knowledge exchange. The distributed cognition your team exhibited—where each breakthrough catalyzed subsequent optimizations—demonstrates that computational creativity is fundamentally social and iterative. Your reflection on applying these principles to production code touches upon profound insights about transfer of learning between constraint-driven exercises and professional contexts. Vasilis, your articulation that extreme minimization demands creativity and deep problem understanding validates what educational theorists recognize as "desirable difficulties"—intentionally imposed constraints that paradoxically enhance learning by compelling practitioners to develop the critical discernment necessary for judicious technique deployment. This directly counters reductive critiques of code golf, proving such exercises cultivate precisely the sophisticated judgment that enables informed architectural decisions in professional contexts.

Congratulations on this remarkable achievement and for sharing such thoughtful reflections on the learning process itself. Your insights meaningfully contribute to ongoing discourse about computational pedagogy. In the spirit of your vectorized brilliance and Vasilis's fluid mechanics background, here's a computational tribute that captures your collaboration as turbulent flow:

The Physics Behind the Metaphor:

  • Streamlines: Your optimization paths through the solution space
  • Vortices (yellow circles): Collaborative breakthroughs creating turbulent mixing of ideas
  • Complexity contours: Like temperature fields in CFD—hot (red) complexity cooling to elegant (blue) simplicity
  • Velocity field: The intensity of your optimization efforts
  • Vorticity: Breakthrough turbulence—the curl of innovation

From 300+ lines in the red turbulent zone to 152 characters in the deep blue laminar flow—a journey from chaos to elegance, visualized as only a fluid mechanist would appreciate.

Special Recognition:

A heartfelt acknowledgment to @Matt Tearle, whose exceptional curation, judicious guidance, and insightful encouragement throughout this contest exemplified the pedagogical principles we've discussed—balancing technical rigor with accessibility, fostering both competitive spirit and collaborative learning, and creating problems that simultaneously challenge experienced practitioners while remaining approachable to newcomers. Your emphasis on understanding problem mechanics over mere syntactic manipulation resonated deeply with the team's philosophy, and your recognition that extreme optimization demands profound comprehension rather than superficial cleverness validated the educational value of their endeavor. The problem set you curated served not merely as competitive challenges but as vehicles for genuine intellectual growth.

Equally profound gratitude to @Chen Lin for orchestrating this remarkable event—the logistical coordination, community engagement, prize structuring, and sustained enthusiasm that transformed what could have been merely a technical competition into a genuine celebration of collaborative problem-solving and continuous learning. Your efforts created the ecosystem within which such spontaneous collaborations could flourish and where participants felt empowered to push boundaries while supporting one another.

To all Cody participants: Whether you're exploring your first vectorization, wrestling with logical indexing, or crafting elegantly minimized solutions, remember that every breakthrough—whether measured in milliseconds of execution time or characters of code length—represents genuine growth in your computational thinking. The path from naive implementation to optimized elegance is rarely linear; it meanders through failed attempts, unexpected insights, and those exhilarating moments when a seemingly intractable problem suddenly yields to a novel perspective. Embrace the struggle, celebrate incremental progress, and recognize that the critical thinking cultivated through these exercises transcends any single problem or contest. As Vasilis articulated: mastering when to compress and when to clarify represents the hallmark of genuine expertise. Keep coding, keep collaborating, and keep discovering those elegant solutions that make you pause and think, "I didn't know MATLAB could do that!"

I also would like to recognize efforts of @Athi and @Cephas for their contributions towards publication of tips and ideas to help out Cody participants, they also did an exceptional job.

Looking forward to aftermath of the second round innovations! Good luck!

Vasilis Bellos
Vasilis Bellos on 10 Dec 2025 at 16:02 (Edited on 10 Dec 2025 at 16:30)
Congratulations to everyone for this year's very successful contest! A big thank you to the organizers and curators @Chen Lin, @Matt Tearle and everyone else involved for all their work behind the scenes and for providing us with this fascinating problem group. And of course, to all the participants who put in the time, shared their knowledge and helped keep this competition consistently interesting throughout these past few weeks.
A special shoutout to my Creative teammates @Stefan Abendroth and @WANG Zi-Xiang, as well as the very Cool Coder @JKMSMKJ for their invaluable contributions, persistence and enthusiasm in optimizing the solution to the Clueless problem. Apart from all of the amazing vectorization, linear and logical indexing, operator precedence etc. tricks that Zi-Xiang mentioned in his incredible article, what truly made this spontaneous collaboration shine was that whenever we would get stuck, one of us would come up with a motivating new trick to move the solution forward, which in turn enabled other sections of the code to be further optimized. In the end, we managed to reduce the size of the solution down to just 152 characters - which to me seems unreal for this kind of problem! The final product is a thing of beauty, and I am truly amazed by your coding proficiency, insight and ingenuity. Above all, this would not have been possible without fully understanding the mechanics of this complex problem - and that's where, as Matt pointed out, the very fruitful discussions that resulted from this effort culminated: while the size of the solution is by no means an objectively good metric for good coding practices, that does not mean that hacking a problem is the easy way out. On the contrary, it often requires creativity, a deep understanding of the problem, and mastery of some of the most difficult concepts of a programming language. And by reaching that level, one can already start to discern what truly constitutes good practices and apply them where it counts - for they have acquired the critical thinking necessary to complement their coding skills. And personally, I believe that this is one of the most important concepts to be gained from Cody.
See you all next year!
WANG Zi-Xiang
WANG Zi-Xiang on 10 Dec 2025 at 17:35 (Edited on 10 Dec 2025 at 17:36)
Oh yeah that first round was epic, and until the very end!
I also loved dissecting other people's solution, looking for a glimpse or insight that might lead to somewhere else.
I had especilly lots of fun looking for a minimalist solution. Everytime I thought we had done our utmost, one new wave of inspiration renewed hope to try out a new method and improve the solution. Racking our brains, making it finally work and reduce the size were such exhilarating moments!
Even each time @Stefan Abendroth or @JKMSMKJ came up with an infuriating simple idea that sparked fruitful research in a new direction. I wish you had joined us earlier @Vasilis Bellos, who knows what other direction we might have explored?
All the ideas came up over the course of several days and multiple iterations, little by little. Not all at once. I feel this competition really pushed me to outdo myself, and I admire the tenacity and imagination of all the players that went along.
It makes me wonder how the code I wrote for work could also have been reduced in such a dramatic way, when I had done my best and could not see any further improvement. But it would probably have still improved with the help of such talented co-workers!
I could not have imagined that it would end in an only 5-line solution to the problem, compared to the initials hundred(s) of lines! Thank you all for that collective achievement!
Do you know the book "Beautiful code"? Maybe it deserves a chapter in it ^^
It's a book that also talks about breaking rules. Exploring the extremes also helps determining the right choices depending on the situation, that's what Cody games teach us.
I miss the excitement of the first round, I can't wait to see what awaits us for the second! Thanks to the organizing team, and congratulations to the winners and to the selected players for the second round!
Stefan Abendroth
Stefan Abendroth on 11 Dec 2025 at 7:29
That has been a great lesson indeed. And it made me think: If four cool and creative coders in competition mode need to wrap their brains around a comparably simple task for more than one week in order to squeeze the essentials out of it - how much potential improvements are just waiting to be discovered in all the code that has been produced under tremendous time and ressource pressure in all these products and systems we are relying on every day: machinery, vehicles, mobile devices, office software and so on.
By chance, we came across one of the most productive ways to create good software: Small teams (<=5 people), experts from different fields with different perspectives, working asynchronously into a common repository, with clear scope and dedication.
Thanks for that experience, @WANG Zi-Xiang, @JKMSMKJ, @Vasilis Bellos, for facilitating the competition @Matt Tearle, @Chen Lin and for your summary @Umar.
Congratulations to all participants and finalists for your achievements!
JKMSMKJ
JKMSMKJ on 11 Dec 2025 at 8:37
That is a frightening thought, @Stefan Abendroth. :) But from a pure old fun perspective, ours was a good collaboration that I enjoyed quite a lot, so thanks to you, @WANG Zi-Xiang and @Vasilis Bellos.
Also thanks to @Umar for the "fluid" visualizations of our efforts to squeeze code for a nontrivial programming problem, as @Matt Tearle had very aptly warned!
Umar
Umar on 10 Dec 2025 at 5:29

Hi @Chen Lin,Thank you for the exciting wrap-up and for all the hard work that went into organizing this contest! It’s been an amazing experience, and I’m grateful to have participated.

I just wanted to check on something—while team creative coders team ( Week 3 Winners Announced! Final Week to Play and Win ) including my self have completed the contest problem group and seen the announcement of the winners and prizes, we haven’t yet received the Cody Contest 2025 Finishers badge. Is there any update on when these will be distributed to all participants who finished the problem group?

Also, congrats to @WANG Zi-Xiang for his contributions and everyone else who helped out their teams. They put tremendous efforts and provide excellent tips and tricks.

Thanks again for such a great contest. Looking forward to future opportunities to participate!

WANG Zi-Xiang
WANG Zi-Xiang on 10 Dec 2025 at 17:38
Thanks @Umar :)
I remember there was a button to click to get the Cody Contest 2025 Finishers badge. It wasn't automatic. But the button appeared on your profile page when you had solved all 11 problems. Maybe have a look for it!
Chen Lin
Chen Lin on 10 Dec 2025 at 13:21
Hi Umar. I'm glad you enjoyed the contest. Thanks for being a top competitor. The virtual badges will be awarded shortly.
Umar
Umar on 10 Dec 2025 at 20:33

Hi @Chen Lin, Thanks so much! I really enjoyed participating — it was a fun challenge. I appreciate the recognition, and you were right: we did receive the message from MathWorks about receiving our Cody Contest 2025 Finisher virtual badge distributed to the ones who finished the contest. Thanks again for your help and for organizing everything — it’s been a great experience!