what is the time complexity of Huffman Coding?

what is the time complexity of Huffman Coding? Correct Answer O (NLogN)

The time complexity of the Huffman algorithm is O(nlogn). Using a heap to store the weight of each tree, each iteration requires O(logn) time to determine the cheapest weight and insert the new weight. There are O(n) iterations, one for each item.

Related Questions

In Huffman coding, data in a tree always occur?
Binary Huffman coding is a
What is the running time of the Huffman encoding algorithm?