JAVAAID
731 subscribers
15 photos
1 file
100 links
It helps students and working professionals in interview preparation
Download Telegram
Forwarded from HackerRank Solutions
How many of you thought that I have solved the problem in an interview but still did not ๐—ด๐—ฒ๐˜ ๐˜๐—ต๐—ฒ ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฟ or did not get what I expected?

If this has happened to you then this tutorial will be going to an eye-opener for you.

Generally, the candidate solves the problem with a brute force approach but ignore the optimize solution.
If you know this technique you can ๐—ฑ๐—ฟ๐—ฎ๐˜€๐˜๐—ถ๐—ฐ๐—ฎ๐—น๐—น๐˜† ๐—ฟ๐—ฒ๐—ฑ๐˜‚๐—ฐ๐—ฒ ๐˜๐—ต๐—ฒ ๐˜๐—ถ๐—บ๐—ฒ ๐—ฐ๐—ผ๐—บ๐—ฝ๐—น๐—ฒ๐˜…๐—ถ๐˜๐˜† ๐—ผ๐—ณ ๐˜†๐—ผ๐˜‚๐—ฟ ๐˜€๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป ๐—ณ๐—ฟ๐—ผ๐—บ ๐—ข(๐—ปยฒ) ๐˜๐—ผ ๐—ข(๐—ป) and you can get a slight advantage in your interview.


And this technique is known as ๐—ฆ๐—น๐—ถ๐—ฑ๐—ถ๐—ป๐—ด ๐—ช๐—ถ๐—ป๐—ฑ๐—ผ๐˜„ ๐—ง๐—ฒ๐—ฐ๐—ต๐—ป๐—ถ๐—พ๐˜‚๐—ฒ which is useful for solving problems related to ๐—ฎ๐—ฟ๐—ฟ๐—ฎ๐˜†๐˜€ ๐—ผ๐—ฟ ๐˜€๐˜๐—ฟ๐—ถ๐—ป๐—ด๐˜€.

https://youtu.be/__guhvzO540

๐—ก๐—ผ๐˜๐—ฒ: if you find it useful, please do not forget to like and share your feedback in comments.

#slidingwindow #technique #algorithms #code #programming #coding #slidingwindowalgorithm