For today’s problems, start by devising an algorithm and writing it in pseudocode. Do not rely on any built-in functions or methods that are specific to Python. Question 0 and its answer is given to you as an example of what pseudocode for an answer might look like.
Write an algorithm to return the index of the first occurrence of a value v in a list L.
Pseudocode:
find(v, L):
for each element in L:
if the element is equal to v:
return the index of v
return -1
Write an algorithm that takes a list L and sorts its contents in place; this means the contents of the given list are rearranged without being copied into a new list.