Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thanks.
Just another kata, just another class, just another cat saying meow.
But behind this quiet little function, there’s a storm.
I wrote this in Tehran, on Day 5 of a reality most coders can’t imagine — internet choked, power unstable, drones flying, a regime suppressing both thought and voice.
I’m not here for sympathy. I’m here to leave a marker — a small log in the endless scroll of solutions — to say that we, the people of Iran, are still here, still coding, still human. We are not our government. We are not your enemy.
We want freedom, like you.
And maybe when the ones who hijacked our country are gone, peace won’t just be a comment after solving a kata. It’ll be real.
Thanks. This is Day 5 of the real world war.
I’m not writing this for compassion — I’ve already solved this kata. I just want people to see the truth about what's happening to the people of Iran.
I solved this while sitting in my home in Tehran, under bombardment. The internet was restricted by the Ayatollahs. The electricity went out. I was alone.
My girlfriend had to leave town after President Trump warned civilians to evacuate for their safety.
I leave this comment as a memory of a war I believe will only end when the Ayatollahs are gone — and when they are, I believe the world will finally breathe freer, rid of a regime that fuels terrorism and death with drones and propaganda.
We — the people of Iran — are not them. We are just like you.
We dream, we build, we write code, we love.
We want freedom, too.
Let this solution and this comment stand not only as code, but as truth from someone who has lived through the silence of bombs and the noise of lies.
... --- ...
I think my comment here is dissapeared!
you said: Oh really? Well I'm looking every day at the hole in my house made by a peaceful suicide drone, shahed 136, which was kindly given to russia by your country to bomb my city. You made your bed, now sleep in it. You won't find compassion here.
Your answer:
This is not the war of the Iranian people. Our country has been hijacked by the Ayatollahs. This war is not between you and us — the people of Iran — but between a brutal regime and the world.
Like you, I am a code warrior. I know it might be hard to grasp, but you need to understand: we, the people of Iran, are not your enemies. We are victims too — of a regime that rules without our consent, crushes dissent with prison and bullets, and kills us when we dare to speak out.
The drones and bombs — they don’t come from us. They come from a government we never chose, one that oppresses us just as it harms others.
Please, don’t mistake the people for the regime. We bleed too.
Oh really? Well I'm looking every day at the hole in my house made by a peaceful suicide drone, shahed 136, which was kindly given to russia by your country to bomb my city. You made your bed, now sleep in it. You won't find compassion here.
Today is day four of the war. Even with the loud bombs around me, I solved this little problem — a small memory to hold on to. This is Iran, Tehran...
This war isn’t ours. We Iranians are peaceful souls, just dreaming of a kinder, brighter life.
Big thanks to the writer of this Kata — your challenge gave me hope and focus.
I truly hope that someday, if I’m lucky enough to survive, I’ll see a world filled with peace and no more war.
I admit—this might be the messiest solution I’ve written. But context matters.
Right now, as I write this, my country is under bombardment. I'm in Iran, living under missile fire from Israel. And no, that’s not an excuse for the "dirty" code—but it's something I need to say out loud.
Maybe this comment will just be a quirky memory—just another coding day under fire. But if things don’t turn out well… maybe Codewars will remember me as the last warrior who fought for freedom with code, even during one of the darkest moments in our history.
Stay strong, stay human. 🕊️
Lua translation!
I disabled the
%
operator and themath.fmod
function. Let me know if I missed some!Thanks to the Codewars community for the "Finding Remainder Without Using '%' Operator" kata!
A clever and elegant challenge that encourages thinking beyond built-in operators.
Really enjoyed solving it using just the fundamentals — much appreciated!
🙌 Thanks to the Codewars community for the "Help your fellow warrior!" kata!
A simple yet insightful exercise in breaking down a numeric goal into tiered units.
It was a great way to practice clean conditional logic and basic arithmetic — appreciate it!
🙏 Thanks to the Codewars community for this great kata!
Practicing modular arithmetic with Fibonacci was a fun way to reinforce
number patterns and optimize performance without relying on BigInt.
Learned a lot about memory efficiency and mathematical tricks — cheers!
Thanks for this one — really enjoyed it!
Nice little regex workout with just enough edge cases to keep things interesting.
Always fun solving something short and satisfying like this
This was an excellent little exercise in sorting logic and value mapping.
It really pushed me to think clearly about how to rank character significance and deal with ties deterministically.
Thanks to the kata creator for the challenge!
This kata was surprisingly tricky!
I spent about an hour wrestling with the pattern and debugging my logic — but it was absolutely worth it. Really satisfying to finally crack it.
Big thanks to the author — loved the challenge!
Thanks for the great kata — really enjoyed the challenge!
Nice balance of logic and creativity, and a satisfying problem to solve.
Appreciate the opportunity to sharpen my skills — keep them coming!
Sincere thanks to the Codewars author for this thoughtfully designed kata — an excellent blend of data analysis and array manipulation challenges.
Loading more items...