Posts: 136
Threads: 10
Likes Received:
37 in 31 posts
Likes Given: 29
Joined: Oct 2023
Reputation:
3
10-28-2024, 10:31 PM
(This post was last modified: 10-28-2024, 10:32 PM by jrmrhrb00.
Edit Reason: Edit
)
Scout,
This failed too. Variable Name is used, but value is not assigned. First error.
Name [ 1 ] :7
Name [ 2 ] :6
Name [ 3 ] :6
Name [ 4 ] :9
Name [ 5 ] :7
Name [ 6 ] :1
Name [ 7 ] :3
Name [ 8 ] :9
Name [ 9 ] :6
Name [ 10 ] :9
Result Sort: FAILED
Name [ 1 ] :FAILED
Name [ 2 ] :FAILED
Name [ 3 ] :FAILED
Name [ 4 ] :FAILED
Name [ 5 ] :FAILED
Name [ 6 ] :FAILED
Name [ 7 ] :FAILED
Name [ 8 ] :FAILED
Name [ 9 ] :FAILED
Name [ 10 ] :FAILED
Press any key to continue...
The rest of them. Notice that the sort did fail.
Posts: 316
Threads: 36
Likes Received:
108 in 85 posts
Likes Given: 214
Joined: Dec 2023
Reputation:
7
10-29-2024, 08:37 AM
(This post was last modified: 10-29-2024, 08:45 AM by z-s.)
Hii JR
On desktop i fixed your code no error in extension.
JXNC572.000-0
a more simpler version: MVHG984.000
ChatGPT's Solution Without third party library :
LBBP129.000
ZS
The following 1 user Likes z-s's post:1 user Likes z-s's post
• Scout
Posts: 136
Threads: 10
Likes Received:
37 in 31 posts
Likes Given: 29
Joined: Oct 2023
Reputation:
3
10-29-2024, 11:22 AM
(This post was last modified: 10-29-2024, 11:30 AM by jrmrhrb00.
Edit Reason: Edit
)
Z-S,
Great job. I was sure I was doing something wrong but couldn't figure out what. Basically, I wasn't getting or setting the values for a LDArray. The amazing thing is there is no guidance any where on how to use those arrays. Used to be in the old small basic forum, but that is gone. Maybe, this is something that LitDev would write an article on.
Thanks,
JR
Posts: 451
Threads: 34
Likes Received:
359 in 246 posts
Likes Given: 178
Joined: Aug 2023
Reputation:
17
10-29-2024, 01:03 PM
(This post was last modified: 10-29-2024, 01:27 PM by litdev.)
Well done all,
LBBP129.000 is bubblesort not quicksort (bubblesort very slow for large lists compared to quicksort), also only 5 not random elements
LDArray is good for multi-dimensional arrays, where the max number of elements in each dimension is fixed initially
LDList is good for 1D arrays, where the number of elements can grow dynamically