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.
Done in O(n) time with comments! Very well done!
This comment is hidden because it contains spoiler information about the solution
myjinxin2015 is a javascript wizard I would do well to learn from
Hacker solution for sure! Makes no sense to this javascript noob & works and described. Well done!
I'll be running this through a debugger to figure it out!
This comment is hidden because it contains spoiler information about the solution
Im a newbie to javascript and this website. Not a total newb, though will not spout credentials. Im trying to understand the code and the culture here. I'm not trying to start a flame war, trying to engage with others
Tried to be respectful in my questions and I have not.
I am sorry that I have been passive aggressive with "You see beautiful, I see can't read". Did not realize that such discussions are passive-aggressive. Will not speak of such in the future. What I wanted was an explaination on a novel(to me) for loop with multiple variable initializations in the intial expression. I should not have stated my opinion on whether the code was golfed or not.
Thank you for the clarification,(especially Avanta) all who have contributed to this discussion.
As I understand now:
i is the control var in the initial expression of the for loop. The initialExpression of the for loop can contan multiple variables in the scope of the loop.
Of course one can initialize more than one variable per line. That is not my confusion.
Is i is the loop control var?
Are l and r part of the loop control logic?
That is what is unclear about the code
Am i correct in assuming that the code would work just the same if
l and r were initialized out side the loop?
Thank you for taking time to explain
Not that good at javascript so this may be a newb issue. Basically I can't follow the loop init.
How can array initialization have two vars and a lamba instead of i=some number? If it was just the lambda, I could follow.
Explaination or a link would be much appreciated.
Is this a newb thing issue or is this golfing
You see beautiful, I see can't read. Is clever as all get out, but not best practice.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
C# now allows tuples. Please take tuple instead of string as return value.
Why are you using longs? Most of the solutions convert to int straightaway so they can use Math.sqrt to test for perfect squares.
Do you intend for the user to write check if perfect square functions like I did or no?
Hi guys! Just found this site a few days ago. I've been developing the solutions in Visual Studio and then pasting the solutions into the Kata. I've grown dependant on Intellisense and Code completion. I noticed that today my last three katas completed have been listed in my completed katas, but have not been getting honor for them. Have I been flagged for cheating or some such? On my view profile page, I see "Stats are being refreshed, your browser will reload soon..."
Am I awaiting review for the honor for my past creations?
This comment is hidden because it contains spoiler information about the solution
Loading more items...