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.
sqr
->sqr_as_str
gen_digits
)for juniors, to get known about new syntaxes and thoughts.
for seniors, to warm up and recap their knowledge at the start of the day.
for me, i used OOP method. im junior tho, but want to get used on OOP.
great answer. thank you
Because it wants you to return the first greatest word.
Use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
All programs have constraints on input. In this case, there can only be two distinct values in the array. We can certainly program a solution to return an array of any number of unique values; but that's a different problem and the solution to that problem will be less efficient when applied to this problem.
this is python 2 code.
n/2
->n//2