Ad
  • Custom User Avatar

    nope, nothing automatic. But you can build the benchmark yourself using the fork panel of some solutions.

  • Default User Avatar

    Hi All,
    about the filter callbacks, it is much more readable (a best practice) to use arrow function, and spare the closures, 'function', 'return' words.
    Also why use filter, when we look for a position/index and there are array methods for that in JS.
    Also return result (number.indexOf(...)) will perform a 3rd operation over the array. Not that the first 2 loops (filter) are necessary..
    There should be better solutions in terms of best practices and cleverness IMO.
    Sorry to spoil the pleasure of your findings

  • Default User Avatar

    Hello All,
    I'm new to the platform.
    Is there a way to benchmark or compare the solutions by time/space complexity?
    Thank you