blog.iamvarshith.devDutch National Flag problemProblem Statement Given an array containing 0s, 1s and 2s, sort the array in place. You should treat numbers of the array as objects, hence, we can’t count 0s, 1s, and 2s to recreate the array. The flag of the Netherlands consists of three colours: ...Feb 5, 2022·2 min read
blog.iamvarshith.devHow to find the number of islands in a matrixWe all know that for any interview point of view the graph data structures are very much important. Because in most of the cases we end up having graph-based data structures in real-life problems. Social Graph APIs such as Facebook's Graph API, Recom...Oct 18, 2021·5 min read
blog.iamvarshith.devHow to enable Multi-Factor Authentication (MFA) for S3 buckets?The security of any company should be a key priority with so many different services accessible in the cloud. The preservation of data should indeed be at the core of every business avoiding unintended deletion. By configuring buckets to delete with ...Sep 5, 2021·5 min read
blog.iamvarshith.devHow to Deploy the static website to S3 using GitHub actions.Every one of us, at some point, would need to deploy a static website. It might be because the page is just a portfolio or a single-page JavaScript application that would not need heavy frameworks. So most of us have to host a static website, It migh...Aug 28, 2021·6 min read
blog.iamvarshith.devHow to find the length of the longest substring in it with no more than K distinct characters ?Today we shall a sliding window pattern question. How to the length of the longest substring in it with no more than K distinct characters ? The first and foremost step to solve the problem is to understand the question and figure what is given and...Aug 22, 2021·2 min read