Hack 1

Hack 2

A. 2 x 6 x 8 is a mathematical expression that evaluates to 96, but it is not an algorithm.

B. 4^5 is a mathematical expression that evaluates to 1024, but it is not an algorithm.

C. (3 x 8)^2 is a mathematical expression that evaluates to 144, but it is not an algorithm.

Hack 3

Hack 4

if name == ‘main’: data = [9, 1, 7, 6, 2, 8, 5, 3, 4, 0] sorted_data = merge_sort(data) print(sorted_data)

Merge sort is a divide and conquer algorithm that works by repeatedly dividing the input list in half until each sublist contains only one element, and then merging the sublists back together in a sorted manner.

Hack 5

if name == ‘main’: data = [1, 2, 3] heap_permutation(data, len(data))