We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge 9 - Quick sort
#11
(10-28-2024, 06:38 PM)jrmrhrb00 Wrote: AB, L-S,

I went back to basically the same code.

JR

Is this code your last code?
Code:
'small basic array
For i = 1 To 10
  name[i]=math.GetRandomNumber(10)
EndFor

'creates ldArray from indices
status=LDArray.CreateFromIndices(name)
TextWindow.WriteLine(status)

'loads ldarray with random numbers
For i = 1 To 10
  status[i]=Math.GetRandomNumber(10)
EndFor

'why does the below fail
result=LDArray.Sort(status)
TextWindow.WriteLine(result)

'would give a listing of sorted numbers, but just shows them in their random order
For i = 1 To 10
  TextWindow.WriteLine(status[i])
  endfor
Reply


Messages In This Thread
Challenge 9 - Quick sort - by litdev - 10-28-2024, 08:41 AM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 12:39 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 04:22 PM
RE: Challenge 9 - Quick sort - by z-s - 10-28-2024, 05:04 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 05:33 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 06:38 PM
RE: Challenge 9 - Quick sort - by AbsoluteBeginner - 10-28-2024, 06:46 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 07:06 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 07:27 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 07:45 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 08:36 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 09:22 PM
RE: Challenge 9 - Quick sort - by Scout - 10-28-2024, 09:50 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-28-2024, 10:31 PM
RE: Challenge 9 - Quick sort - by z-s - 10-29-2024, 08:37 AM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 10-29-2024, 11:22 AM
RE: Challenge 9 - Quick sort - by litdev - 10-29-2024, 01:03 PM
RE: Challenge 9 - Quick sort - by z-s - 10-29-2024, 01:19 PM
RE: Challenge 9 - Quick sort - by Scout - 10-29-2024, 05:08 PM
RE: Challenge 9 - Quick sort - by Scout - 10-30-2024, 08:43 PM
RE: Challenge 9 - Quick sort - by litdev - 10-30-2024, 10:47 PM
RE: Challenge 9 - Quick sort - by Scout - 10-31-2024, 09:21 PM
RE: Challenge 9 - Quick sort - by litdev - 11-05-2024, 03:14 PM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 11-18-2024, 12:29 AM
RE: Challenge 9 - Quick sort - by jrmrhrb00 - 11-18-2024, 12:54 PM

Forum Jump:


Users browsing this thread: 12 Guest(s)