Skip to content

Deduplicate - thousands separators #225

@hobovsky

Description

@hobovsky
Contributor

From #39

In all below challenges, "Formatting" means using a comma as thousands separator, unless specified otherwise.

  1. Number Format
  • 6 kyu
  • Input: positive and negative, up to ~10 digits or so.
  • Satisfaction: 88% with 3,294 solutions
  • 1 pending issue
  • 7 languages, 3 pending translations
  • Published: Nov 30, 2015
  • Author last seen: Dec 2015
  1. Grouped by commas
  • 6 kyu
  • Input: positive integers.
  • Satisfaction: 93% with 10,170 solutions
  • 4 pending issues
  • 13 languages, 2 pending translations
  • Published: Nov 2, 2013
  • Author last seen: Oct 2017
  1. Converting integer to currency format
  • 7 kyu
  • Inputs are non-negative integers.
  • Satisfaction: 91% with 4,041 solutions
  • 1 pending issue
  • 6 languages, no pending translations
  • Published: Feb 22, 2015
  • Author last seen: Aug 2016
  1. Add commas to a number
  • 6 kyu
  • input: positive and negative floating point numbers, output: rounded to 3 decimal places
  • Satisfaction: 84% with 814 solutions
  • No pending issues
  • 2 languages, 1 pending translations
  • Published: Jan 21, 2016
  • Author last seen: May 2016
  1. Display Large Numbers
  • 7 kyu
  • input: numeric strings or positive integers (not large)
  • Satisfaction: 85% with 283 solutions
  • No pending issues
  • JS only
  • Published: Oct 4, 2016
  • Author last seen: Apr 2018
  1. Formatting a number as price
  • 5 kyu
  • input: anything, output: 'NaN' for non-numerics, output: format to strictly 2 decimal places
  • Satisfaction: 85% with 2,003 solutions
  • 3 pending issues
  • JS only + 2 pending translations
  • Published: Mar 6, 2014
  • Author last seen: Dec 2021

Activity

converted this from a draft issue on Mar 4, 2025
moved this from Acknowledged to Discussing in Deduplication processon Mar 4, 2025
hobovsky

hobovsky commented on Mar 4, 2025

@hobovsky
ContributorAuthor

From 2,3, and 5, I think I would keep only 2 as the most complete. I'd retire 3 as very similar to 2 and unnecessarily distracting with the currency thing. I'd retire 5 as the least complete, with unnecessary mixed type inputs.

I do not know what to do with 1. It is very similar to 2, differs only by having negative numbers. Maybe keep it instead of 2, 3, and 5?

I am also not sure what to do with 4. I do not like it because handling of the decimal part is underspecified (rounding mode, zero-padded or not), and if it would be kept, it would have to be improved a bit.

I do not like 6 because it's quite messy. I think it could be retired.

changed the title [-]Deduplicate - Formatting numbers[/-] [+]Deduplicate - thousands separators[/+] on Mar 4, 2025
Kacarott

Kacarott commented on Mar 5, 2025

@Kacarott

I agree with retire 6, it is messy and over ranked. From 1-5 I think keep either 1 or 2, retire the rest.

monadius

monadius commented on Mar 21, 2025

@monadius

Keep 2 only. 2 has many translations and negative numbers in 1 do not add much to the task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion/deduplicateDiscussion and vote what to do with duplicate kata

    Type

    No type

    Projects

    Status

    Discussing

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @monadius@hobovsky@Kacarott

        Issue actions

          Deduplicate - thousands separators · Issue #225 · codewars/content-issues