Skip to main content

Practice ยท 2 of 3

Clean Resolver

Write resolveConflictFile(text, chosen) where chosen is "mine" or "theirs": return the file with the conflict block replaced by the chosen side's lines โ€” markers removed, surrounding context preserved exactly.

Difficulty: intermediate

Back to lesson: Practice: Conflict Resolution โ€” Practice