- Some basic coding problems solved using JS.
- Some of those problems are solved using multiple approaches.
- Some approaches are fast in terms of time complexity while some are compact ( less line of code ) & solved using JS native functions.
-
-
_bulkRunner => Takes an array of object ( { dataset, func }[] )
- dataset: array of arguments to be fed to executing function
- func: function that needs to be invoked
-
_bulkAlternator => Takes following parameters as arguments.
- count: No. of times each passed function needs to be executed.
- endWithStartingFunc: Whether to execute first function again after all passed functions are executed.
- funcs ( rest parameter ): Functions that need to be executed.
-
_bulkAlternatorPlus => Takes following parameters as arguments.
- count: No. of times each passed function needs to be executed.
- endWithStartingFunc: Whether to execute first function again after all passed functions are executed.
- values ( rest parameter ): Objects of type = ( { dataset, func }[] )
-
-
Contain functions of all JS snippets in the repository with prefilled datasets.
-
Takes following parameters as arguments =>
- dataset: Dataset to be fed to passed functions whose runtime needs to be compared.
- funcs ( rest parameter ): Functions to be compared.
-
Takes following parameters as arguments =>
- func: Function that needs to be executed
- args: Array of different argument whose outputs needs to be consoled.
-
Takes following parameters as arguments =>
- dataset: Dataset to be fed to passed functions.
- shouldLog: Whether to only log output of first passed functions or compare runtime of all passed functions on the basis of given dataset.
- funcs: Functions who needs to executed or compared.