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.
Maybe constructor != initialize (cuz in c++ it returns a new object or something I'm not sure cuz I use python)
me too, sir
still solvable without much math, there are clever tricks but a good way to practice ds as you can see with other's solutions.
great point and very much agree
@Sennsei:
Why do you solve katas then? Why complicate your life? Not everything ones does in life is to show off.
Why do you assume he isn't good at one already? BTW, you're talking to XRFXLP as if he created this kata. Well, he didn't.
Don't learn every language, but it helps if you can explore different stuff in other languages and incorporate things in your favorite language. (after learning one language well)
That's mostly true, but it depends on context. Notice how this kata is tagged with keywords like 'functional programming' and 'higher-order functions': within that context that is certainly 8kyu. It sometimes depends on language too - 7kyu kata in JS could be 3kyu in BF, or for any theorem proving languages like coq/agda, requires a lot more math knowledge, even for easiest ones. Solving katas in C is almost always harder than something like python / js, but because only 1 rank can be set for all languages, it's usually chosen for one that's easier to implement.
Nope, but the description can't be tailored to every single solver of every skill level - it's aimed at average user. Search engines like Google exist, and every word or phrase that doesn't make sense to you - you can search for, and learn quickly. Most katas, even 8kyu, can teach you some things. If you expect to be able to solve everything without research, I hate it to break it to you - it's not gonna happen.
I suggest to think about yours too. Are you here to complain, or to learn? The choice is yours :>
Well, that's the problem: it's not that easy to tell. Difficulty is very subjective, and what is easy for one, is difficult for another.
I agree that higher order functions are becoming more and more fundamental thign in modern programming, and that it's not any advanced programming topic anymore. I know that the solution to the kata is almost trivial.
But, on the other hand, I know how confusing and difficult to grasp the concept of a function itself is for newbies, let alone a higher order function. I personally believe this kata is not an 8 kyu problem, not because of code, and not because of the required coding skill, but because I realize how confusing the concept is. That said, I understand people who say it is 8 kyu.
fair point. should this kata be 7kyu?
The first example is not working because it avoids "implicit type casting", but the same is not avoided in your friend's code.
An example to illustrate the stuff:
In the second case, 1 which is of 'number' type gets converted to 'boolean' type (which is
true
since it is truthy value) but in the first case there's no such type casting, and as a result that returnsfalse
.In the test cases, you are given
1
as input, which breaks the first code.Try talking to average, 8 kyu, entry level newbie and explain them what you mean by "passing a function to a function", then you will see :)
The current description makes complete sense to me. It's not cluttered, gives you the correct information... what's the problem?
Try to read comments below. The thing, is that if YOU understand it doesn't mean others too. Just think of the other ppl.
How am I suppose to know what you meant creating this kata? You consider it as 8kyu level?
I thought that 8kyu is for noobs who want to learn something to help them move on.
The satisfaction of this kata is telling me smth else.
Why are you colecting points here if you don't want to showoff? You want to know everything but you don't want to be good at one language? If it's your path..
What is your point of create katas? Do you like to complicate ppl lives :D?
I can't even check the "bool" if it's true or not... You want me to set this on my own? Same with the func1/func2.
I think it's kinda pointless to learn every language avaible bcs you do not write program in the same exact way as you do in other language. Don't you think you can lose yourself?
"But sometimes I love to see how things are different in different language, that's a good experience, you might wanna try that."
Nah, I think I don't have enough time and skills right now to jump from one language to the other just to see the difference. Maybe in 5-10 years when I'll be good at one I try others if I don't quit earlier :).
Do you work with python, js, etc.?
It is 51(I don't track that all), not 52. BTW There are things like 'curiosity' and 'learning'. Most of the katas are available in python, JS, C++, ruby, C, Java, C# so I usually don't consider to do the same problem in multiple languages, since I usually come here at the end of the day.
But sometimes I love to see how things are different in different language, that's a good experience, you might wanna try that.
Other than that, there are some cool kata which are available only in some specific language, so I've read a litte bit of docs to solve those.
Nope, why would I want to showoff? I literally don't know anyone.
I presume you don't go on street and pick up any random chap to show your wallet.
Yes, in some languages. Though I regret being so, but I can't make enough time to do those.
Yes, that was the whole point of learning.
That's an inactivity, right? If you are doing one thing, you don't have to that particular thing always. Being a human, I need some kinda refreshment.
Yes, and with time this will change.
Well, I assumed one atleast know the basic of programming language.
Yeah, you're right about that. If you'll combine 7 kyu and 8 kyu, they would make around 2700 katas, but 1800 * 3 + 900 * 2 != 36000("score" required to have 1 dan badge)
(you would be just 2 kyu).
BTW, rather than being tangential about the main issue, you should focus on how to read things.
Typical, 52 languages trained... 2-5katas for language xD. You want to showoff or smth XD? I am not sure if you noticed that you are at "8kyu" level.
Langauges are not the same! If you are in Python do katas in Python instead of doing it for every language. That's my opinion.
Writting descriptions isn't your good site as well.
2,100 kata completed xDDD =/= 1dan. xD
I am confused by this solution, I thought the whole point was to not use initialize?
Loading more items...