Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Find Transaction IDs Not in Second List

EasyPython00:00
I
Practice interviewer
Your interviewer
In session
I
Interviewer

Welcome to the Python screen.

The question is on your right: Find Transaction IDs Not in Second List. Read through the requirements first.

Run and submit your code as often as you need. You also have five interviewer messages this session - want to talk through your approach, or are you ready to start coding?

You need to log in / sign up to run or submit.

Problem

Given two lists of transaction IDs, list1 and list2, return a list of transaction IDs that exist in list1 but not in list2.

Constraints

  • 1 <= list1.length, list2.length <= 10^5
  • Transaction IDs are strings with a maximum length of 100 characters

Function Signature

def find_missing_transactions(list1, list2):
Your solutionPython 3
You need to log in / sign up to run or submit.
Run your code to see test output