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.
Not an issue of the kata.
The problem is that the query 'join' in your code has not been fixed. The condition for joining is missing.
Perhaps this helps: https://www.postgresql.org/docs/8.3/static/tutorial-join.html
It would be nice if you included the error, but start by removing the distinct.
Which test is the one you think is wrong and what is your result for that test?
No probs :)
I cannot reproduce it, care to tell me which was the initial random price in that one? 60?
matt is right, the input array should be modified, you should not make a copy of it.
That's not an issue, you're just not modifying the original array. You may need to take another approach to solving this kata, Think simple. Good luck! :)
Which one?
EDIT: Didn't realize that this was a 6months question and that you finally got it. Sorry!