There are many types of trees: - binary trees - binary search trees - B+ trees - red-black trees - AVL trees - suffix trees - and much more.... Each have different rules for adding a new element,...
Yes, they can be used interchangeably, but they usually mean separate things. A type of data is something like an integer, or string. While a data structure usually refers to a linked list or tree of...
It depends on what kind of data. If you want to store integer numbers use short, int, long. If you have numbers with decimal point use float, and double. If you want to store characters use char. And...