REPLACE EMAIL WITH "NOBODY" - PART 1 | SMALL FILE | c++

  Рет қаралды 131

Nikash Kumar

4 жыл бұрын

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".
kzbin.info/www/bejne/emPco4VuZd10isU
Part 2 - File size is LARGE, and you need to replace a particular email with "nobody".
kzbin.info/www/bejne/rYWVhWBrqpx3r6c
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 : kzbin.info/www/bejne/a5exhJmHatx_mNk
Do Like, Share and Subscribe here: kzbin.info
Keep learning everyday
Thank you for watching. :)

Пікірлер
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 41 МЛН
DID A VAMPIRE BECOME A DOG FOR A HUMAN? 😳😳😳
00:56
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 7 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 41 МЛН