Skip to main content

New answers tagged

2 votes

Inserting an element into a linked list

Three functions is not wrong, but you have the wrong set of functions, in my opinion. You should, as otherwise noted, have a separate list type that holds both a head and tail node. You should have a ...
Chris's user avatar
  • 4,684
3 votes

Pascal Bubble Sort Implementation

As noted, there are opportunities here to break this problem down. In order to bubble sort, you need to be able to swap. So let's make that a procedure. Once we can make a swap, we need to make a pass ...
Chris's user avatar
  • 4,684

Top 50 recent answers are included