Round 1
Questions: Specific question not provided.
Follow-up Question
- There are total 15 test cases in this code, only 11 test cases passed. Please help me with the correct code.
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()
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.