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.
fixed
No chromosome is written like this, X comes first then Y.
nah using global inside function is more confusing than just using uppercase for constants and you can use them without declaring global in all functions.
time is not scary only to the Egyptian pyramids)))
The aim is to have the most cards at the end. Not take the most of them each turn.
Sometimes it's better to just take one.
This comment is hidden because it contains spoiler information about the solution
It doesn't really matter what's the name of the dictionary to return, you just need to return it.
Clever move
It's a Python 2 solution.
least larger
Least means smallest; larger means bigger.
Description is not great, but let me try
you will get an array of numbers and an index, you have to return the index of least larger number than the number at given index, for example
( [4, 1, 3, 5, 6], 0 )
4 is the number at given index which is 0
so what numbers are greater than 4 (5 and 6)
but the least largest is 5 (so return the index of 5 which is 3)
if you don't have any numbers greater than the number at the given index return -1
In this Kata, you will be given a string that may have mixed uppercase and lowercase letters and your task is to convert that string to either
lowercase only
oruppercase only
based on:If needed I could edit the description to like that. To make it more clearly.
Why don't you propose "better" instructions then? As I said, they look clear to me and I don't see what's confusing there.
Completely right, the instructions could be better. Chrono79 is answering with a 1kyu level.
Not a kata issue. The description is written for multiple languages, some of which don't have tuples, so you have to check sample tests to see which exact type you're expected to return.
Loading more items...