Hi, I programmed a program to calculate the entropy. So far I have done reading test.txt from the command line. But now I do not know how to save words from test.txt to the binary tree and compare them. I thought this but I do not know how to take the floor and put it into a tree. Someone help me? thank you
1 2 3 4 5 6
if (str1 < str2)
// left
elseif (str1 > str2)
// right
else
// are the same