4 ms·
yeah I agree. I think it's because they pretty much allow contributions of algorithms from various people and the code review standards are not super high. I re
by xdavidliu 4y ago
yeah I agree. I think it's because they pretty much allow contributions of algorithms from various people and the code review standards are not super high. I recall at one point the BFS algorithm in Java actually used an ArrayList (roughly equivalent to std::vector) for the queue, which is silly because popping from the front is O(N), so I had to submit a fix for that:
https://github.com/TheAlgorithms/Java/pull/3231 https://github.com/TheAlgorithms/Java/pull/3231
but I agree that basic low-hanging issues like this (and the exponential-time fibonacci that another commenter pointed out) really prevents me from taking this repo very seriously