Please don't pollute your LinkedList with compare related functions. PlaceintCompare() and strCompare() in their respective module, say, IntCompare and StrCompare. This will make your code more modular and if I want to add new compare, say comparing 2 objects, I will create a new module. And when I want to use, I'll can pick and choose.
Please don't pollute your LinkedList with compare related functions. Place
intCompare()
andstrCompare()
in their respective module, say,IntCompare
andStrCompare
. This will make your code more modular and if I want to add new compare, say comparing 2 objects, I will create a new module. And when I want to use, I'll can pick and choose.