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.
clever way of doing this.
'Looks like you've solved it'
Phonomenal. Thank you Chrono
I'm a little confused by the actual explanation of this Kata. It states to find the MAXIMAL number by deleting one digit. For example:
Testing for:
n = 847043
Expected: 87043, instead got: 87443
The maximal number that I returned is better. I delete the 0, then create a larger number than what the unit tests returns. What am I missing?
Well if you looked at the top, you'd see that you can only use JS
Is this kata language-dependent, please? I mean can I code eg. in .py or .java or c or any other language? Or should I use some peculiar language?
Your idea was right about using those mentioned, especially
fromCharCode()
function.Hint: Yes, there is
true
value you can obtain without coding it directly.Mainly, you need to bypass using direct character via other methods, which you need to figure out how.
Hope you can complete this kata before the end of this year. ;D
Hint: You have to declare it indirectly. There are several ways of function declaration, alternatively from conventional
function _(){}
and_ = ()=>{}
forms.LOLLLL, my apology!!
Anyway, I was laughing with myself figuring out my blurred eyes. hahahh
PS. That meme was superb. XD
How can it be that "HNY2018 = () => '';" Doesn't even pass the character restriction test?
No true? No fromCharCode? Whaaat? My New Year resolution is to read discourse before attempting katas.
No problem, the avatar here looks small enough to confuse you :P
Hi! As
the chicken guyChrono79 informed, your code can't contain any of all characters listed above.And, no, you can't just directly use
return
command since it containse
,n
, andr
.Try finding another way to solve it.
Happy New Year, 2018 !!
Cheers, =]
PS. Sorry, I was mistaken Chrono79's profile pic as a chicken lol. :\
Sheeez. Okay, I'll have a little puzzle about it thanks mate
It seems so.
Loading more items...