Skip to content

Reorganize the catch-all others/ and misc/ packages into thematic packages #7452

@DenizAltunkapan

Description

@DenizAltunkapan

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

File Better home
others/Dijkstra.java, others/PageRank.java datastructures/graphs/
others/Huffman.java compression/
others/CRC16.java, others/CRC32.java, others/CRCAlgorithm.java a dedicated checksums/ package
misc/TwoSumProblem.java, misc/ThreeSumProblem.java, others/TwoPointers.java a shared two-pointer/array-problems package

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions