DEV Community


Discussion on: Bubble Sort In JavaScript

micrajesh profile image
Mic • Edited

Didn't run/test yet but has the doubt in Concept 2 Code: what about arr[index + 1] when at the last item is coming in the iteration.. will it be array index out bounds ?

Forem Open with the Forem app