Ad
  • Custom User Avatar

    Thanks! Yes, I found O(n) solution and passed tests successfully

  • Custom User Avatar

    Clever solution. We can use result.setCharAt(index, ')'); to make less discussions about StringBuilder::replace

  • Custom User Avatar

    Hi! When I try to attempt Java17 solution I get exception "Timed Out (16000 ms)" in randomTests. My solution has O(n* n) and I optomized it with multithreading. That give me speed about 11 sec on local mashine with array of 10000000 size. Is there any better solution? Or is it problem with codewars server?