Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Simplified task 5 solution

...

Code Block
languagepython
def minElement(L,n):
  if nlen(L) == 1:
    return L[0]
  else:
    min = minElement(L[1:],n-1)
    if L[0] < min:
      return L[0]
    else:
      return min

...