About counting sort

si why we are using dynamic array here as the work of this frequeny array completes in that loop only.

hello @avverma11057 i didn’t understand your question about which code you are talking about could you please share your code and elaborate your question so that i can help you in the better way .