• ###### DimaMalahcommented on "Shortest steps to a number" kata

This comment is hidden because it contains spoiler information about the solution

approved

• ###### akar-0created a suggestion for "Shortest steps to a number" kata

COBOL translation updated to new tests framework, my first trial. Please review carefully.

approved

• ###### akar-0created a suggestion for "Shortest steps to a number" kata

COBOL translataion (author inactive).

• ###### TNSGXhostscommented on "Codewars style ranking system" csharp solution

Yes, this solution is quite compact. But a huge disadvantage is that it is unreadable.

• ###### David93commented on "Who likes it?" csharp solution

the 2 strings and the int are totally unnecessary

• ###### blueneoskycommented on "Codewars style ranking system" csharp solution

Clever in a way, but clearly not a bets practice :

• progress setter is not a 'setter' and the assignation from ctor seems to 'work down' (if you permit me this pun - break down...)
• triple encapsulation of ternary operator - nop, lot of static analysers will going crazy from 2, so 3 means << unreadable >>
• ###### JaumeGreencommented on "Codewars style ranking system" csharp solution

This solution is very nice but has a couple of problems.

Rank is not bound, so it can go over 8.
Making the progress increase the rank directly makes it lose a rank when crossing the 0;

With this set of tests:
User user = new User();
user.incProgress(8);
user = new User();
user.incProgress(7);
user = new User();
user.incProgress(6);
user = new User();
user.incProgress(5);
user = new User();
user.incProgress(4);
user = new User();
user.incProgress(3);
user = new User();
user.incProgress(2);
user = new User();
user.incProgress(1);

These are the actual vs expected results:
user.incProgress(8) : gives 14, 50 should be 8, 0
user.incProgress(7) : gives 11, 60 should be 8, 0
user.incProgress(6) : gives 8, 0 should be 8, 0
user.incProgress(5) : gives 6, 40 should be 7, 40
user.incProgress(4) : gives 4, 10 should be 5, 10
user.incProgress(3) : gives 2, 0 should be 3, 0
user.incProgress(2) : gives 1, 10 should be 1, 10
user.incProgress(1) : gives -2, 40 should be -2, 40

• ###### chipelmercommented on "Shortest steps to a number" kata

A fantastic kata, one of the best!!

• ###### suarezali75created a question for "Complete Binary Tree" kata

Mine is passing all the tests in Attempt. However shows "Exit Code: 139" and won't let me Submit it. Can anybody give some guidance?

• ###### AgentMCcommented on "Esolang Interpreters #2 - Custom Smallfuck Interpreter" csharp solution

Wait, you are creating a new StringBuilder EACH TIME you are flipping the bit? This solution deserves a special un-optimization reward.

• ###### gxcadcommented on "Shortest steps to a number" kata

At first I thought this kata was easier (like 7kyu) but after I tried it, I realized it is indeed 6kyu (albeit on the easy side of 6kyu). I love these easy to understand, but more challenging to actually do type of katas. Katas that require some crazy long explanation to do can sometimes get tedious just to understand what is being asked -_-.