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.
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^_^
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
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.
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.
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.
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
^_^
thanks for your test, solve, voting and ranking ;-)
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 ;-)
I need some 40 more :D
I've reset the limit to
62
;-)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
Well, I did wrote:
That is indeed a behviour you'd expect from an old terminal.
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
andb
having 7 and 8 occurrencies and been scaled to 60 characters max width, whilec
has 300 occurrencies.Both
a
andb
will be approximated to 1 unit, butb
still has more thana
.Try to print the occurrencies' numbers in your solution and you'll see.
p.s.: great javascript solution, btw.
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.