Programming puzzles: processing lists!
|
04-27-2017, 02:11 PM
Post: #50
|
|||
|
|||
RE: Programming puzzles: processing lists!
I made TI-89 versions of some of these just to be obnoxious.
![]() Most are implemented as functions, which can return a value. Some are implemented as a program, since you can't use SortA or SortD in a function, even on local variables. Lazy compiler design, I guess. (I implemented quicksort as a function in pure Basic, but it's a lot slower than the built-in operations.) Note that I've used != in place of the "not-equals" character, <= and >= for the inequalities, and -> in place of the "STO" arrow. #1 Code: p1(x) #2 Code: p2(x) #3 Code: p3(x) #4 Code: p4(x) #5 Code: p5(x) #6 Code: p6(x) #7 Code: p7(x) #8 Code: p8(x) #10 Code: p10(x) Might attempt a few more of these later. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)