codewars / content-issues

Higher level issue tracker for the Codewars content.
15 stars 1 forks source link

Deduplicate - Calculation involving n biggest / smallest numbers #176

Open hobovsky opened 1 year ago

hobovsky commented 1 year ago

From #39

  1. Difference between biggest 2 numbers

    • 7kyu
    • sort disabled in JS, output: difference between 2 biggest numbers
    • Satisfaction 95% with 1670 completions
    • No pending issues
    • 4 languages, 1 pending translation
    • Published Aug 2015, author inactive
  2. Product of Largest Pair

    • 7kyu
    • output: product between 2 biggest numbers
    • Satisfaction 89% with 1500 completions
    • No pending issues
    • 4 languages, no pending translations
    • Published Jul 2016, author active
  3. Largest pair sum in array

    • 7kyu
    • output: sum of 2 biggest numbers
    • Satisfaction 94% with ~13k completions
    • 2 pending issues
    • 11 languages, no pending translations
    • Published May 2015, author inactive
  4. Sum of two lowest positive integers

    • 7kyu
    • output: sum of 2 smallest numbers
    • Satisfaction 88% with 162k completions
    • 4 pending issues
    • 14 languages, 4 pending translations
    • Published Jun 2015, author inactive
  5. Maximum Triplet Sum (Array Series #7)

    • 7kyu
    • output: sum of three distinct biggest numbers
    • Satisfaction 94% with 12k completions
    • 5 pending issues, one referring to Zizou'ed description
    • 25 languages, no pending translations
    • Published Mar 2018, author inactive
  6. Product Of Maximums Of Array (Array Series #2)

    • 7kyu
    • output: product of n biggest numbers
    • Satisfaction 91% with 7.5k completions
    • 3 pending issues, plus Zizou'ed description
    • 24 languages, 1 pending translations
    • Published Mar 2018, author inactive
  7. Smallest Pair Sum (beta) - unpublished

hobovsky commented 1 year ago

For kata 1.-5., I have no good idea what to pick and what to remove. They all are very similar.

Kata 1. disables sorting, but I am not sure if it is a reasonable restriction, and definitely not easy to translate. Except 1., all other kata can be solved with sorting and picking two first elements.

All kata seem to have reoccurring complaints about "things not working", what makes me think that some tests can be derailed by mutating inputs (for example, sorting in place, or removing one of values).

Kata 5. has additional obstacle of avoiding duplicates. I don't know if it makes it sufficiently different. Kata 6. is a bit more generic, so maybe it would be worth keeping. At least in some languages it's been reported to be affected by overflow of the result.

Even if it will be difficult to establish what exactly is a duplicate and what is not, still kata 2., 3., and 4. are the same kind of tasks so maybe we could at least remove two of them.

cpgny commented 1 year ago

These two Largest pair sum in array / Sum of two lowest positive integers should be removed. And this one Product of Largest Pair should stay (is it possible to combine previous ones with this one?) a.k.a Product and Sum of Largest Pair :thinking:

ejini6969 commented 1 year ago

I vote to keep 4 and 6 only since these 2 katas differ most in terms of i) sum vs product ii) 2 lowest vs n largest

Retire the rest 1 (searching for other sort-related katas, one can copy or reimplement the sorting function from scratch easily) 2 Too similar with above two and least languages and solves 3 Too similar with above two 5 avoiding duplicates is not unique enough as there is like 3-4 more Zizou katas that have such requirements

EloiseRosen commented 1 year ago

I vote to keep 6 (more generic version of task), and one out of [2, 3, 4].