You did not initialize a container to perform the accumulation within. The reduce function basically does nothing, you should instead compute the total frequencies using an Object / Map.
Hi Xenophis, thanks for spending your time on this kata. I hope it will be a learnfull experience.
If you have your shape classes implemented (all with the correct area calculations) the aim is to implement a customized 'sort' on your classes by overriding the standard 'sort'. Example of 'sort' in C#: myShapeCollection.Sort(). In Java: Collections.sort(myShapeCollection).
Your customized 'sort' should be on area size. You can find on the internet how to override the default sort method on a collection in the language of preferrence.
I don't know JS, but don't forget to mark your comment next time as "spoiler" and put your code in a code block (between ```s) to make it more readable.
You did not initialize a container to perform the accumulation within. The
reduce
function basically does nothing, you should instead compute the total frequencies using an Object / Map.Hi Xenophis, thanks for spending your time on this kata. I hope it will be a learnfull experience.
If you have your shape classes implemented (all with the correct area calculations) the aim is to implement a customized 'sort' on your classes by overriding the standard 'sort'. Example of 'sort' in C#: myShapeCollection.Sort(). In Java: Collections.sort(myShapeCollection).
Your customized 'sort' should be on area size. You can find on the internet how to override the default sort method on a collection in the language of preferrence.
Hi,
I actually don't understand what this kata wants. From what I understand, I have to implement the shapes classes.
After that, I have no idea how my code should proceed.
I appreciate if you all can answer my question.
Thank you for your patience in answering my questions.
No random tests in JS (see ruby or python)
Thanks!
I don't know JS, but don't forget to mark your comment next time as "spoiler" and put your code in a code block (between
```
s) to make it more readable.This comment is hidden because it contains spoiler information about the solution
Way too long.
Thanks!
You can't compare strings in Java with
==
and!=
. Usestring1.equals(string2)
.This comment is hidden because it contains spoiler information about the solution