LoginSignup
0
0

More than 1 year has passed since last update.

Codility Lesson4 MissingInteger

Posted at
def solution(A):
    len_A = len(A)
    A = sorted(A)
    min_A = 1   #無駄な負の値は考えないようにする工夫
    i = 0 
    while i < len_A:
        if A[i] == min_A:
            min_A +=1
        i +=1
        return min_A
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0