Ad
  • Default User Avatar

    Hi, my code always run beyond 16sec. Here's the pseudo:

    //while last index is lt width
    //> get substring
    //> pass the substring to a method that will add spaces
    //>> (method that adds spaces): split the string
    //>> (method that adds spaces): loop to add spaces (one at a time) until length is eq to width
    //> append to output string
    

    Any suggestion on what part to improve? TIA.