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!
Loading collection data...
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!