Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate - Case swapping #147

Open
6 of 7 tasks
hobovsky opened this issue Sep 13, 2022 · 9 comments
Open
6 of 7 tasks

Deduplicate - Case swapping #147

hobovsky opened this issue Sep 13, 2022 · 9 comments
Assignees
Labels
discussion/deduplicate Discussion and vote what to do with duplicate kata

Comments

@hobovsky
Copy link
Contributor

hobovsky commented Sep 13, 2022

From #39

  1. Case Swapping
  • 7 kyu
  • letters and digits as inputs
  • 92% with ~6.5k completions
  • No pending issues
  • 7 languages, no pending translations
  • Published Jun 2015, author active
  1. altERnaTIng cAsE <=> ALTerNAtiNG CaSe
  • 8 kyu
  • Only letters as inputs letters and digits as inputs
  • 90% with 33k+ completions
  • 3 pending issues, one about being a duplicate of 1.
  • 17 languages + 1 pending translation
  • Published Mar 2016, author active
  1. Alternate case
  • 7 kyu
  • Inputs are not only letters
  • 90% with 7.6k completions
  • 3 pending issues, one about being a duplicate of 2.
  • 10 languages + 3 pending translations
  • Published Aug 2016, author inactive
  1. Strings: swap vowels' case
  • 7 kyu
  • Only vowels are to be swapped
  • 90% with 2.4k completions
  • No pending issues
  • 8 languages, no pending translations
  • Published Oct 2016, author last active Jul 2022

Conclusion

Filling gaps

  • Move Clojure approved translation from 3. to 2.
  • Move COBOL approved translation from 3. to 2.
  • Move F# approved translation from 3., or pending F# translation from 4., to 2.
  • Move Nim pending translation from 3. to 2.
@hobovsky
Copy link
Contributor Author

All kata are very similar, 2. is the simplest (requires no filtering), kata 1., 3., and 4. require one or two additional conditions (or not).

I think that 2. would be good to keep as the most complete. I am not sure if we need to keep any of 1., 3., and 4., and if we do, which one.

@ejini6969
Copy link

ejini6969 commented Sep 13, 2022

Keep 2 only since 1. and 3. solutions can be copied to pass 2. As for 4., it's just adding an extra conditional statement or using same regex concept, so it can be retired too ! (EDIT: In JS && CS version of 2, prototyping is used which adds as an extensive feature compared to other katas)

@benjaminzwhite
Copy link

Agree with keeping 2 only; most complete, good kyu ranking, and also best explanation/examples in kata description.

@hobovsky hobovsky added the discussion/deduplicate Discussion and vote what to do with duplicate kata label Sep 13, 2022
@heroicfun
Copy link

vote for keep 2, retire any

@Kacarott
Copy link

Keep 2

@error256
Copy link

  1. is the simplest (requires no filtering)

2 has digits as well.

@hobovsky
Copy link
Contributor Author

  1. is the simplest (requires no filtering)

2 has digits as well.

... and how did I miss this? :|

@EloiseRosen
Copy link

vote for keep 2, retire the others

@kazk kazk removed their assignment Sep 21, 2022
@Chrono79
Copy link

Chrono79 commented Sep 28, 2022

What I don't like from 2, it's some languages use String.Prototype or Class methods and some others don't, making the shared rank of 8 kyu unfair.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion/deduplicate Discussion and vote what to do with duplicate kata
Projects
Status: Waiting for admin actions
Development

No branches or pull requests

10 participants