decimal values when given in the sorting algorithm are truncated
this means 1.9 is converted into 1
Reproduction
shown below are snaps from quicksort simulation but similar failure can be seen in the simulations of all the sorting algorithms
Select simulation in sorting using arrays experiment and in any of the simulations give decimal inputs like shown below
Output
this leads to error in the sorting presented by the simulation
Issue
decimal values when given in the sorting algorithm are truncated this means 1.9 is converted into 1
Reproduction
shown below are snaps from quicksort simulation but similar failure can be seen in the simulations of all the sorting algorithms Select simulation in sorting using arrays experiment and in any of the simulations give decimal inputs like shown below
Output
this leads to error in the sorting presented by the simulation