LeetCode Experience · Jan 2022 · USA

Microsoft | OA | Generate counter example.

1 upvote 848 views 2 replies

Interview Experience

I got this question in microsoft OA: The following find_min() is incorrect: def find_min(A): ans =0 for i in range(1, len(A)): if A[i] < ans: ans = A[i] return ans Given an integer N, generate a counter example...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays