• + 0 comments

    approach is really good ,but why every freq. array element is incremented without condition while u assigned all elements zero first but now every element is equal to one.