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.
One line of comprehensable code - great job!
"For this challenge, create a function that adds
my guy
at the end of every sentence."Your code added this phrase only at the end of text my guy.
;)
This comment is hidden because it contains spoiler information about the solution
Dead link in description: https://preview.codewars.com/kata/beat-the-bookmaker
Everybody/most of us usually use(s) console.log after receiving error message to check created code, and in this kata is not possible. Why?
Code like this did not print the output from console.log()
I received only messages from test like: "Passwords use a limited characterset!".
Solved, but I'm curious why I can't use console.log() in JS?
Author is gone. I add both informations in the description.
Array with letters it's only example, but don't bother with letters. Probably you missed this line: "If the callback function returns true then the loop will stop and no additional values will be iterated." The rest will be (or was) easy for you, after all you have 1 kyu :)
Oh, it works :) I thought that transforming long string into array and operation on array will be too memory consuming and I did operation directly on string, but in almost the same way: while loop + removing last char from 'a' and 'b'. Although my solution is longer...
Author is gone. According to docs: https://docs.codewars.com/concepts/kata/translations/ please label your comment as Suggestion.
This comment is hidden because it contains spoiler information about the solution
Yeah, and what if the k was greater than 40...?
Since the link includes 'me' we cannot presently see 'your' solution by using it ;) But I'm aware that few years ago probably there were no features like 'View Solution' near user's comment.
No problem! Somewhere, under if statement checking d==74, yes, there is condition for 11! We have a winner!
BTW, such cases isn't considered as cheating? Well, maybe this guy just wanted to prove that something is wrong with randomness of tests...
Loading more items...