1. Implement a function func maxMin(arr [10]int) (max, min int) that returns the maximal and minimal numbers from the array.

  2. Implement a function func countMax(arr [10]int) (count, first uint) that calculates how many times the maximal value is present in the array (returned as a variable count) and an index of the first occurrence (returned as a variable first).

  3. Implement a function func posNegZeros(arr [10]int) (pos, neg, zeros uint) that calculates and returns the number of positive (pos), negative (neg) and zeros (zeros) in the array.

  4. Implement a function func eqArrays(a, b [10]int) (uint, uint) that checks if two arrays are equal. The first return value must be equal to 1, if the arrays are equal, and 0, otherwise. If they are not equal, the second return value must contain the first index of unequal elements.

  5. Implement a function func printInColumns(arr [10]int) that prints elements of the input array in two columns: the first column contains positive values, the second column contains other values.

    Example:

    func printInColumns([10]int{2, 3, -5, 1, -1, 0, 3}) prints
    |-----|-----|
    |  2  |     |
    |  3  |     |
    |     | -5  |
    |  1  |     |
    |     | -1  |
    |     |  0  |
    |  3  |     |
    |-----|-----|
    

    Improve the function so it prints the columns as follows:

    func printInColumns([10]int{2, 3, -5, 1, -1, 0, 3}) prints
    |-----|-----|
    |  2  | -5  |
    |  3  | -1  |
    |  1  |  0  |
    |  3  |     |
    |-----|-----|
    
  6. Implement a function func distinctNumbers(arr [10]int) uint that returns the number of distinct numbers in the array.

  7. Implement a function func isPermutation(arr [10]int) uint that returns 1 if the array is a permutation of integer numbers from 1 to N, and 0, otherwise.

  8. Implement a function func partition(arr [10]int, p uint) [10]int that returns an array consisting of the elements in arr, where all elements that are less than p come first, then all elements that are equal to p, and then all elements that are greater than p.

  9. Let a [10]int and b [10]int be arrays that represent “long” non-negative integers, Every element of the array stores a single digit in the number. E.g. [10]int{0, 0, 2, 0, 1, 9, 2, 0, 2, 0} represents a number 20192020. Implement a function func sum(a, b [10]int) [11]int that sums two “long” numbers.

  10. Let $n$ and $m$ be natural numbers, such that $0 < n < m$. Write a program that prints a fraction as a periodic decimal fraction. For example, $27/70=0.3(857142)$, $17/25 = 0.68$.