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.
TypeScript translation
Good catch. With
there are no "tricky" edge casesin the description, this test should just be removed, and the description should actually just specify greediness.Had to hack a solution for test:
minimumBillCount(1010, [50, 1, 20]).Min result is 22, but test requires 30.
50 * 19 === 950
20 * 3 === 60
19+3 === 22 & 950 + 60 === 1010
Maybe update the test to find 22 instead :)
done
Haskell translation
spec added
Probably been done by now. Without specifics not a very useful suggestion anyway.
Does "contiguous" do any work in the first line of the description? Is that actually a requirement somehow?
I would love for more clarity here as you say it can accept duplicates in python but i had to make sure they werent added to actually pass your tests.
Lua translation!
C++ Translation.
Hello Lekha Peparthy,
Perhaps the best way to start with Codewars is to do a course in basic Python which is one to the easier languages to learn. Get a feel for how to do things then have a go at very simple problems and build up gradually. Don't be in rush. Despite what others may tell you it takes time to learn how to problem solve. More accurately breaking a problem down into small parts that you can solve and start joining the parts together to form a solution to a problem.
One big advantage of Codewars is being able to see others solutions which I find are nearly always better than mine! But that's a good thing because then you learn a little each day...
Best of luck
Try some easier problems; 8kyu problems will help you better understand the basics.
Other resources to consider:
With some practise, you'll be able to understand and solve this problem with ease.
Good luck! :)
i am just beginner and i don't know basics so how can i know about this
Approved
Loading more items...