You are viewing a single comment's thread. Return to all comments →
One way to increase the performace is to store the length of the string in a variable
int length = s.length(); for (int i = 0; i < length; i++)
Because in your code you are running the method length() n times * m the length of the array. Is a small comment...
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Huffman Decoding
You are viewing a single comment's thread. Return to all comments →
One way to increase the performace is to store the length of the string in a variable
Because in your code you are running the method length() n times * m the length of the array. Is a small comment...