what if the frequency is greater that 2 ?
ex–
2^3^4^3^2^4^2^6 ?
What if the frequency is greater that 2?
hello @mehulbhandari358
the technique u learnt in this video will work only when following conditions meet
a) there should be only one element with frequency 1
b) all other elemnts should occur even number of times.