InterviewDB
Question
String Diff: Compute and Display Line-Level Diffs Between Two Text Files
phone
Question Details
Problem Implement a line-level diff tool similar to Unix diff. Given two lists of strings (lines of text), compute the minimal edit script (insertions and deletions) to transform one into the other. Output in unified diff format. Example Follow-ups What algorithm computes the minimum edit distance efficiently? What is its time and space complexity? How does the Myers diff algorithm improve on naive LCS-based approaches? How would you extend this to word-level or character-level diffs within chan…
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 phone round.
It covers the following topics: Strings, Dynamic Programming, Phone, Coding, Onsite .
Topics
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