Google | Onsite | Word Replacement

Anonymous User
65
Feb 10, 2025

Problem Statement:
You are given two file systems:

  1. One contains a list of sensitive words along with their replacements.
  2. The other consists of large files, potentially terabytes in size.

The goal is to write a program that efficiently replaces all occurrences of sensitive words with their corresponding replacements.

Solution:
My current approach involves splitting the large files into chunks and using FileReader to process and replace words. However, I’m looking for a more optimized solution—any suggestions?

Comments (0)