Рет қаралды 163
Hi Everyone,
This problem is frequently asked in #FACEBOOK #PRODUCTION #ENGINEER #INTERVIEW.
This video is a bit different from the videos i have been posting. This video contains solution for a problem related to FILE I/O. We need to think in terms of system resources and system calls when solving this problem. I have divided the problem in two different parts.
Part 1 - File size is SMALL, and you need to replace a particular email with "nobody".
• REPLACE EMAIL WITH "NO...
Part 2 - File size is LARGE, and you need to replace a particular email with "nobody".
• REPLACE EMAIL WITH "NO...
Part 2 contains my own chunking algorithm, which might not be the most optimized solution. But if you know any better solution, please do let me know in the comments section below.
Use case: In your day to day life as an engineer, you will be dealing with many logs. In case of customer facing logs, you might want to hide many things, example email, password.
So this logic can be applied to any info you want to hide.
Follow this playlist for all solutions : • NEVER STOP LEARNING !!...
Do Like, Share and Subscribe here: / nikashratanchandashokk...
Keep learning everyday
Thank you for watching. :)