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.
The hardest things in this kata is knowing how sorting works differently depending on data type. After that it is fairly simple with a bit of string and array knowledge.
I never thought a 7 kyu problem will be this hard.
no,
abs()
is indeed in<stdlib.h>
, it'sfabs()
that is in<math.h>
you mean <math.h>?
The hardest things in this kata is knowing how sorting works differently depending on data type. After that it is fairly simple with a bit of string and array knowledge.
This was way harded than a 7 kya
As long as he code works, and is easy to maintain, it is fine.
This comment is hidden because it contains spoiler information about the solution
It is a very common mistake people make in this kata. You now have to learn the difference between sorting a list of strings and sorting a list of numbers. Have fun!
Here is a full comparison as an example:
can someone help me!
the test in Python always gives '8 -1' not '42 -9'
even though (1) I used the min() and max() function
(2) passing the list in sort method to return the first item and last item
Then they just want to see if you know how to make a
foreach
loop. All I know about interview programmer tests, is that they want to see if you are familiar with basic functions and when to use them, for example:Also, they have to be very clear about which "built-in" things they don't want then.
That was great way, but most interviewers request NOT to use in-built methods.
I really feel like Im flying higher in coding hh
Every time I do simple kata a learn new think from std.math. Thanks ;)
I feel like I'm learning ;)
Loading more items...