[SOLVED] CS ; A list is a 1-D array of numbers.

$25

File Name: CS_;_A_list_is_a_1-D_array_of_numbers..zip
File Size: 357.96 KB

5/5 - (1 vote)

; A list is a 1-D array of numbers.
; A matrix is a 2-D array of numbers, stored in row-major order.

; If needed, you may define helper functions here.

; AreAdjacent returns true iff a and b are adjacent in lst.
(defun are-adjacent (lst a b)
;; TODO: Incomplete function
(list incomplete)
)

; Transpose returns the transpose of the 2D matrix mat.
(defun transpose (matrix)
;; TODO: Incomplete function
(list incomplete)
)

; AreNeighbors returns true iff a and b are neighbors in the 2D
; matrix mat.
(defun are-neighbors (matrix a b)
;; TODO: Incomplete function
(list incomplete)
)

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS ; A list is a 1-D array of numbers.
$25