Description
The others/ (35 files) and misc/ (15 files) packages have grown into dumping grounds: they hold unrelated algorithms that already have a natural home elsewhere in the project. This makes algorithms hard to discover and encourages duplicates (e.g. a graph algorithm landing in others/ instead of next to the other graph algorithms).
Examples of misplaced files
Proposed change
Move the files into the packages they belong to (updating package declarations, imports and test locations) and, ideally, retire others/ and misc/ entirely so there is no longer an "everything else" bucket.
This is purely a reorganization — no algorithm behavior changes.
Description
The
others/(35 files) andmisc/(15 files) packages have grown into dumping grounds: they hold unrelated algorithms that already have a natural home elsewhere in the project. This makes algorithms hard to discover and encourages duplicates (e.g. a graph algorithm landing inothers/instead of next to the other graph algorithms).Examples of misplaced files
others/Dijkstra.java,others/PageRank.javadatastructures/graphs/others/Huffman.javacompression/others/CRC16.java,others/CRC32.java,others/CRCAlgorithm.javachecksums/packagemisc/TwoSumProblem.java,misc/ThreeSumProblem.java,others/TwoPointers.javaProposed change
Move the files into the packages they belong to (updating package declarations, imports and test locations) and, ideally, retire
others/andmisc/entirely so there is no longer an "everything else" bucket.This is purely a reorganization — no algorithm behavior changes.