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.
I agree, this is a 6 kyu, for C at least.
Perhaps you should review your learning ability first? ;-)
That's not the worst yet :)
Read the instructions, ONLY follow those instructions - Do NOTHING else. Spent a good hour on this one getting compilation errors because I was doing more than it was asking of me.
This comment is hidden because it contains spoiler information about the solution
In my opinion the easiest approach is to write a somewhat complicated expression out on paper and solve it by hand, keeping track of exactly what you do and why.
Then just implement exactly what you did in code. You will run into unexpected problems but once you have a reasonable algorithm it shouldnt be hard to spot-fix.
Hi!
What helped me a lot is a glance at process of building a binary syntax tree, which i read in "You don't know JavaScript" series of books (dont remember which exactly).
You might also want to solve an easier version of this kata - "Calculator" by obrock, after which solving current one is pretty straightforward.
Introduction to development of compilers.
Code grammars.
that's because the kata as been put to draft again.
Hey! Short question. I saw you are 2 kyu. Did you get a job with python?
Thanks!
[-1, 10, 2, 0] -> [-1, 0, 2, 10] (middle items of SORTED list)
Average of 0 and 2 = 1
the estimation of "duplicate" or not for the present kind of kata is pretty user dependent. Most power users will actually considere yours as duplicate because it is pretty close to many other tasks. Just saying. ;)
thing is, in some months you'll realize that yu can do this kind of thing hundreds of times in white level. Then you'll understand why I said this.
Don't be surprised if some other user raise an issue about duplicates/lack of novelty.
Try searching among yellows, at least one kata asking you to do exactly that is ranked as
5 kyu
(or6 kyu
, I'm not really sure).No, the sorting key would be trivial, altough in this case you wouldn't need to sort anything at all.
Loading more items...