Skip to main content

YouThe code should be simplified since this is a basic example and it should be clear and simple. You have two variables that aren't actually needed:

  • newNode: when inserting smaller than the first.

  • prevTmp: when inserting after while. It can be tmpNode.

Just remove them and not bother newcomers with looking why you used those.

You have two variables that aren't actually needed:

  • newNode: when inserting smaller than the first.

  • prevTmp: when inserting after while. It can be tmpNode.

The code should be simplified since this is a basic example and it should be clear and simple. You have two variables that aren't actually needed:

  • newNode: when inserting smaller than the first.

  • prevTmp: when inserting after while. It can be tmpNode.

Just remove them and not bother newcomers with looking why you used those.

format to be in two lines
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

You have two variables that aren't actually needed.:

  • newNode:newNode: when inserting smaller than the first.

  • prevTmp:prevTmp: when inserting after while. Can It can be tmpNodetmpNode.

You have two variables that aren't actually needed.

  • newNode: when inserting smaller than first

  • prevTmp: when inserting after while. Can be tmpNode

You have two variables that aren't actually needed:

  • newNode: when inserting smaller than the first.

  • prevTmp: when inserting after while. It can be tmpNode.

You have two variables that aren't actually needed.

newNode: when inserting smaller than first prevTmp: when inserting after while. Can be tmpNode

  • newNode: when inserting smaller than first

  • prevTmp: when inserting after while. Can be tmpNode

You have two variables that aren't actually needed.

newNode: when inserting smaller than first prevTmp: when inserting after while. Can be tmpNode

You have two variables that aren't actually needed.

  • newNode: when inserting smaller than first

  • prevTmp: when inserting after while. Can be tmpNode

Source Link
Loading