Ad
  • Custom User Avatar

    You can use console.log to print the data to stdout.

  • Custom User Avatar

    Hello.. I need help, bcos after my stupidly simple and naive solution with normal sort, which closely didnt make it through timeout,
    I came up with another algo, which passes fine first suits of tests (in about 200ms for second part with timeout). Everything looking great, but when performing attempt,
    it fails on random tests but I cant see why and what set of data were used.. Im getting wrong counts of gems, weird...