• Custom User Avatar

    Usually people use JSPerf: http://jsperf.com

    Note that the site had been out of maintenance for quite some time though (you can't fork a test anymore because it's broken), but I guess it's still the only shop in the town, so yeah.

  • Custom User Avatar

    Of course ;-) Why not? Please feel free to do it.
    I'm curious that how do you make it easier.
    In addition, making good random testcases is another challenge^_^

  • Custom User Avatar

    thanks for your test, solve, voting and ranking ;-)

  • Custom User Avatar

    I can't give you more. I can only give you a electric saw or a gun.
    You can feel free to kill me by using any weapon ;-)

  • Custom User Avatar

    I need some 40 more :D

  • Custom User Avatar

    I've reset the limit to 62 ;-)

  • Custom User Avatar

    Known bug for TS at CW. You write it right and it is saved wrong. I reported the bug many times.
    Fixed once more. Hope it will work.
    Thanks for your post

  • Custom User Avatar

    Well, I did wrote:

    The bars of the graph have to be sorted by number of occurrencies (from biggest to lowest, before getting scaled)

    That is indeed a behviour you'd expect from an old terminal.

  • Custom User Avatar

    Unlikely.
    Bars of the same length might still have different number of occurrencies, that you can't see because they have been scaled to the same length.

    Imagine for example 2 letters a and b having 7 and 8 occurrencies and been scaled to 60 characters max width, while c has 300 occurrencies.
    Both a and b will be approximated to 1 unit, but b still has more than a.

    Try to print the occurrencies' numbers in your solution and you'll see.

    p.s.: great javascript solution, btw.

  • Custom User Avatar

    Thank you. I'm glad you enjoyed the kata. About the difficulty I can not change it but I guess that by solving it will allow you to rank the kata. Great solution by the way.