Panda Guru LogoPanda
Guru

Amazon OA

Round 1

Questions: Specific question not provided.

Follow-up Question

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Coding Question

Question:

def count_inaccurate_processes(): n = 6 po = [4, 2, 3, 5, 1, 6] eo = [2, 3, 5, 1, 6, 4] m = {} i = 0 j = 0 ans = 0 while i < n and j < n: if m.get(po[i], 0) == 1: ans += 1 else: while po[i] != eo[j] and j < n: m[eo[j]] = 1 j += 1 ans += 1 i += 1 j += 1 print(ans) # Call the function count_inaccurate_processes()

image image image

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.