• I like your solution, just use strings.Builder instead concatenaning strings

  • Solving the task on typescript, I had the same problem, but I solved it.
    The problem concerns the test that follows the test that you are looking at, with the data
    a1 = [3,4];
    a2 = [0.25];

    revise your solution algorithm, and deal with the output of debug information


  • Date: Feb 5 2020
    One of the test is wrong!
    Go v1.12


    INPUT:
    [11, 19, 19, 19, 121, 144, 144, 161]
    [121, 361, 361, 14641, 20736, 20736, 25921, 36100]
    r: false ;

    Expected: true
    to equal: false