InterviewDB
Question
Merge Diff: Implement a Three-Way Merge Algorithm for Text Files
Onsite
Question Details
Problem Implement a three-way merge: given a base version and two branches (ours and theirs), produce a merged result. If both branches changed the same lines differently, mark as a conflict. Changes to non-overlapping lines are merged automatically. Example Follow-ups What diff algorithm do you use as the foundation (LCS, Myers diff)? How do you handle moves (a block deleted in one place and inserted elsewhere)? How does this extend to structured formats like JSON or XML where line-level diffs…
Full Details
🔒
Unlock all Jane Street questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a reported interview question from a jane street interview during the onsite round.
More Jane Street Interview Questions
1p3a
jane street software engineer tech phone screen interview experience
1p3a
Jane Street ML Performance Engineer Interview Experience
InterviewDB
Arbitrage System: Detect Arbitrage Opportunities in a Currency Exchange Graph
InterviewDB
Arithmetic Encoding: Implement Arithmetic Coding for Lossless Data Compression
1p3a
Jane Street SRE Technical Phone Screen Featuring Rate Limiting Algorithm