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 ...
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 ...
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 ...
Community wiki
1
vote
AVL Tree in C++
In rebalance(), establishing the height before potentially rebalancing looks wrong.
There are two if-else statements where both ...
Community wiki
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
object-oriented × 3821java × 731
python × 728
php × 651
c++ × 489
beginner × 480
c# × 445
javascript × 393
design-patterns × 383
python-3.x × 277
game × 215
performance × 146
classes × 136
inheritance × 107
algorithm × 92
mvc × 87
vba × 85
ruby × 84
playing-cards × 84
programming-challenge × 74
tic-tac-toe × 68
array × 67
mysql × 64
pdo × 62
unit-testing × 60