title: python - Search for the max of a list recursively
body: <p>Can Anyone please tell me why this code is returning <code>RuntimeError: maximum recursion depth exceeded</code>:  </p>
  
  <pre class="lang-py prettyprint-override"><code>def maximum(tab, indDeb, indFin):
      if (indDeb == indFin):
          return indDeb
      else:
          m = (indDeb + indFin) / 2
          print "m = ", m
          k1 = maximum(tab, indDeb, indFin)
          k2 = maximum(tab, m+1, indFin)
          if (tab[k1] &gt; tab[k2]):
              return k1
          else:
              return k2
  
  if __name__ == "__main__":
      maximum([1, 2, 3, 4, 5], 0, 4)
  </code></pre>