asghar

0 Reputation

2 Badges

13 years, 97 days

MaplePrimes Activity


These are questions asked by asghar

I need to make a procdeure which checks whether a list L is a palindrome or not. Any help would be appreciated.

Okay so my proff wrote the following procedures to sort a list and they obviosuly work. Now I want to write a procedure that can merge two sorted lists (using SelectSort). I am trying to write merge as a procedure but to no avail. Can anyone help me out?

getListSize := proc (L)

local vv; vv := Vector(L);

return LinearAlgebra[Dimension](vv)

end proc

 

swap := proc (L, i, j)

local temp, vv;

vv := Vector(L);

Page 1 of 1