Skip to main content
3 votes

Object oriented programming deque implementation (another second thought)

(Please see effectiviology on what to avoid in investing in implementation efficiency.) I see a lot of undocumented code that I feel I have seen somewhere else in the file - take the ...
greybeard's user avatar
  • 7,819
2 votes

AVL Tree in C++

Example use cases There are a few opportunities here. Don't use magic numbers. 100 and 99 are used with respect to the ...
Chris's user avatar
  • 6,126
2 votes

Object oriented programming deque implementation (another second thought)

I can see reasons to come up with alternatives to java.util.ArrayList<E>: some of its implementations of ...
1 vote

AVL Tree in C++

In rebalance(), establishing the height before potentially rebalancing looks wrong. There are two if-else statements where both ...
1 vote

Banking system using polymorphism

I would strongly suggest using more modern C++ idioms, and instead of raw pointers, use smart pointers, which still allow you to leverage polymorphism, but simplify the writing of rule of 3/5/0 ...
Chris's user avatar
  • 6,126

Only top scored, non community-wiki answers of a minimum length are eligible