DataDrivenDataDriven
LearnPracticeInterviewDiscussDailyJobs

The Only Difference

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.

Domain
Python
Difficulty
easy
Seniority
L3

Problem

A document editor lines up the original and edited version of a sentence so a reviewer can see what changed. Given the two versions as `sentence_a` and `sentence_b`, split each on whitespace and return the words present in exactly one version, with `sentence_a`'s uniques listed before `sentence_b`'s.

Summary

Two versions of the same line. Surface only what changed.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons