This is one of the best collection of codes to refresh mind. Thanks.
I want to say some point which I think should be applied to increase performance.
1st one frequency check
Check for length of string first
5th removing duplicate
You are checking if element is there in set. Instead do set.add(c) based on tru false push it to constant
6th deep freeze.
I don't know what is deep freeze. But when I clicked on run. I got erro "RangeError: Maximum call stack size exceeded
at Function.hasOwnProperty in core — line 0
"
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is one of the best collection of codes to refresh mind. Thanks.
I want to say some point which I think should be applied to increase performance.
1st one frequency check
Check for length of string first
5th removing duplicate
You are checking if element is there in set. Instead do set.add(c) based on tru false push it to constant
6th deep freeze.
I don't know what is deep freeze. But when I clicked on run. I got erro "RangeError: Maximum call stack size exceeded
at Function.hasOwnProperty in core — line 0
"