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.
.
you are training on a long-outdated version of the sample tests.
(
python
)The sample tests require a function named
pareto
and the expected output is a list of listThe submissions tests (also in the description) require a function named
pareto_front
whereas the expected output is a set of tuples.Th domination criteria is not explicit Wiki:
An allocation
{x_{1},\dots ,x_{n}}
, wherex_{i} in R^{k}
for alli
, is Pareto-optimal if there is no other feasible allocation{x_{1}',... ,x_{n}'}
where, for utility functionu_{i}
for each agenti
,u_{i}(x_{i}') >= u_{i}(x_{i})
for alli in {1, ... ,n}
withu_{i}(x_{i}') > u_{i}(x_{i})
for somei
approved. author is inactive.
JS translation
this translation modifies the description
Approved
Haskell translation
Haskell translation
Great practical kata, yet easy and simple.
Oh I see where we fucked up the random tests. No idea how mauros solution was timing out though, works fine for us if we fix the issue.
.
None
. Fork this to address it. (Using Voile's solution; mauro-1's solution somehow timed out every time I tried it.)If anyone has any suggestions as to how to nicely generate tests for the second point then fire away.
The random tests generate keys/values as 3/4 letter uppercase strings, depending on what languages you speak some of these could be interpreted as offensive. That's all I got. I'm not changing it because, quite frankly, having a multiple thousand word list of every possible slur/whatever in the tests is infinitely more offensive than the computer choosing 4 letters at random.
As for the other point I rewrote the entire test generation but didn't change it's behaviour (beyond what was probably intended, the original code was legitimately the worst we've seen in a long while).
What are you talking about?
Loading more items...