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.
hello, you can set the size of the array by doing .length. Since the array is "list", then it would be list.length, so no matter how long the array, it will grow and shrink.
Hey @benjaminzwhite, thank you (and Maroder as well!).
That's good to know, I will try that and check out the discord. :)
Hi @_ChriZ - first of all, welcome to Codewars!
It seems like you're working in Java, so I'm afraid I don't know that language specifically; if you mean how do you "read in" input in Codewars in general, then just use the name of the argument that appears in the kata when you open the Codewars IDE - so here for example if the function is setup as
minimum(arr_xyz)
then in your code you just work witharr_xyz
however you do that in your language.In general, I can recommend you join the Codewars discord (link in sidebar on the left) - there is a "beginners" channel for such Codewars related questions, and a dedicated "Java" channel where more experienced users will be of more use than me ;)
This comment is hidden because it contains spoiler information about the solution
for x in arr ? something like these?
Hello Guys!
Sorry Maroder123, I can't see the comment as long it is flagged as a "spoiler".
But thanks your help!
Btw. my question above was more like, how do you know, how we should read the values here. In general I know how to set the size of an array. :)
Haha, find the fail in my comments inside the code! :)))
Hey guys,
I don't understand, how these numbers should be read - how do you set the size of the array?
I can either declare the array with a certain number of values, or I can read a number, which sets the value then.
Is anyone there who can help me out?
Sorry for this stupid question, if you are more advanced than me.
Thank you.