We're a place where coders share, stay up-to-date and grow their careers.

Hi, I am Akhil. I write about Design, Tech, and algorithms.

All private interactions must abide by the code of conduct.

Currently learning

React

Skills/Languages

Javascript

Available for

UI/UX Design

my bad

Jan 16 '21

well, that's why I am writing it as a blog so that I can unde...

First time contributing for hacktober fest !!Excited :)

Sep 25 '20

Thanks for reading :)

Jul 18 '20

Jul 15 '20

That's awesome! Thanks for reading :)

Jul 9 '20

Thanks for sharing! Updated!

Yea, it depends on various factors like how many time regex i...

Jul 8 '20

I am not sure about its speed in python, maybe StackOverflow ...

Jul 7 '20

Thanks for pointing out :) Code updated!

This algorithm works well if the alphabet is reasonably big, ...

Worst case is still O(mn). Read this : cs.cornell.edu/course...

OMG ! thanks for sharing :). I read on StackOverflow that so...

Jul 6 '20

OMG !! Thanks for reading πππ

Thanks alot for reading :)

Yep, that's the beauty of the algorithm since we will store t...

Jul 5 '20

Thanks for sharing :)

Jul 4 '20

Test it here: leetcode.com/problems/valid-parent... As far a...

Jun 28 '20

This tool : dai-shi.github.io/excalidraw-claym...

Awesome work man ! keep up !

True that.

Jun 27 '20

For :"{[]}" it returns false. Try solving it here : leetcod...

My bad, it was meant to be #tutorial. Thanks a lot for read...

I wrote this way for code readability :)

Thanks for reading! :)

Jun 22 '20

hmm, then making a boolean array of length 26 makes more sens...

For the length > 10^9 maybe using something like HashSet o...

Jun 21 '20

Thanks !

This question was asked for a generalist SWE interviews. If a...

my bad, thanks for pointing out :)

Jun 14 '20

Yep, it one of the solutions, you're in right direction now c...

Thanks for pointing out and reading my article :), I made a m...

Jun 13 '20

This is so awesome, I am searching for a job and sharing what...

Jun 11 '20

Thanks for reading my article :)

Jun 9 '20

Thanks for reading the article :), and updated my mistake.

Jun 8 '20

Omg, thanks for pointing out! Code updated :)

Omg thanks for pointing out, the graph is of another problem ...

Interesting catch. Need to dig deeper regarding this. Thanks ...

Jun 7 '20

Share it to reach the 256 goal :P

Thanks for reading the article :)

There's an interesting happening in the background. If you ...

Noted :)

Awesome man ! Smart that you applied only to the home screen.

Thanks for reading the article :), I like to write about how ...

Thanks man ! :)

Color spaces are usually used so that what photographers/prin...

Jun 6 '20

Yea. This issue used to appear rarely on Reddit and it's appa...

Thanks alot !!

Yea, and to make it even worse errors like these occur very r...

Hi mayank, there's no harm in asking for help :) I used : ...

Jun 2 '20

Thanks alot !! :)

Jun 1 '20

Thanks alot karthik ! :)

May 31 '20

Yeah, typo. My bad. Thanks for pointing out :)

May 21 '20

Thanks for pointing out : )

May 17 '20

Spot on! I will add your solution too so that people like yo...

May 14 '20

It works, but your algorithm works in O(n^2). The solution in...

Yea, that's why I am solving as many questions as possible. I...

yea, I had to spend like 30 mins figuring out which data stru...

Wow! This is so efficient! Thanks for sharing it !!

May 7 '20

Hi ! thanks for your solution. Could you explain the flow of ...

Thanks you ! glad you liked it !

May 6 '20

Holy shit !! awesome man!

May 5 '20

True that, infact Netflix is handling all it's video content ...

May 4 '20

oh yeah, that else part is a really bad bug from my side it s...

May 3 '20

Nope, it would be the same since here I have modified the que...

I think you made a small typo in for loop, for( i = 1;i<=n...

May 2 '20

Ohh my that's a blunder mistake! Thanks for pointing that out...

Apr 27 '20

Nice catch !! just fixed it. Thanks a lot for pointing that o...

Yep, the function can only take string with characters as a i...

Apr 26 '20

Yep, we could compare if the "compressed" version is indeed s...

True that ! this question is meant for testing string manipul...

Thanks for pointing out the bug!

Apr 25 '20

Yep, it's efficient when a string contains multiple repeated ...

Thank you :)

Apr 23 '20

check this : youtube.com/watch?v=nmaI2RC7SWU at 14:00 mark.

Apr 22 '20

Thanks for your inputs !! Rotation count is the first part ...

Apr 19 '20

Thanks for pointing out, it's a typo. My bad. I have update...

Apr 18 '20

O(n) time and O(1) space: Kadane's algorithm var maxProfi...

Apr 17 '20

Thanks for this comprehensive list. If someone wants to und...

Mar 31 '20

## All 91 comments

## Serialize and Deserialize binary tree, Apple interview

my bad

## Serialize and Deserialize binary tree, Apple interview

well, that's why I am writing it as a blog so that I can unde...

## Who's participating in Hacktoberfest 2020?

First time contributing for hacktober fest !!Excited :)

## The algorithm behind Ctrl + F.

Thanks for reading :)

## The algorithm behind Ctrl + F.

Thanks for reading :)

## The algorithm behind Ctrl + F.

That's awesome! Thanks for reading :)

## The algorithm behind Ctrl + F.

Thanks for reading :)

## The algorithm behind Ctrl + F.

Thanks for sharing! Updated!

## The algorithm behind Ctrl + F.

Yea, it depends on various factors like how many time regex i...

## The algorithm behind Ctrl + F.

I am not sure about its speed in python, maybe StackOverflow ...

## The algorithm behind Ctrl + F.

Thanks for pointing out :) Code updated!

## The algorithm behind Ctrl + F.

This algorithm works well if the alphabet is reasonably big, ...

## The algorithm behind Ctrl + F.

Worst case is still O(mn). Read this : cs.cornell.edu/course...

## The algorithm behind Ctrl + F.

Thanks for reading :)

## The algorithm behind Ctrl + F.

OMG ! thanks for sharing :). I read on StackOverflow that so...

## The algorithm behind Ctrl + F.

OMG !! Thanks for reading πππ

## The algorithm behind Ctrl + F.

Thanks alot for reading :)

## The algorithm behind Ctrl + F.

Thanks for reading :)

## The algorithm behind Ctrl + F.

Yep, that's the beauty of the algorithm since we will store t...

## The algorithm behind Ctrl + F.

Thanks for reading :)

## The algorithm behind Ctrl + F.

Thanks for reading :)

## The algorithm behind Ctrl + F.

Thanks for reading :)

## The algorithm behind Ctrl + F.

Thanks for reading :)

## The algorithm behind Ctrl + F.

Thanks for reading :)

## Kth Smallest Element in a BST, solving Netflix Interview question.

Thanks for sharing :)

## Valid parentheses, solving a Facebook interview question.

Test it here: leetcode.com/problems/valid-parent... As far a...

## Sum root to leaf numbers, solving an Amazon interview question

This tool : dai-shi.github.io/excalidraw-claym...

## Valid parentheses, solving a Facebook interview question.

Awesome work man ! keep up !

## Valid parentheses, solving a Facebook interview question.

True that.

## Valid parentheses, solving a Facebook interview question.

For :"{[]}" it returns false. Try solving it here : leetcod...

## Valid parentheses, solving a Facebook interview question.

My bad, it was meant to be #tutorial. Thanks a lot for read...

## Valid parentheses, solving a Facebook interview question.

I wrote this way for code readability :)

## Longest substring without repeating characters, solving Google interview question.

Thanks for reading! :)

## Longest substring without repeating characters, solving Google interview question.

hmm, then making a boolean array of length 26 makes more sens...

## Longest substring without repeating characters, solving Google interview question.

For the length > 10^9 maybe using something like HashSet o...

## Longest substring without repeating characters, solving Google interview question.

Thanks !

## Longest substring without repeating characters, solving Google interview question.

This question was asked for a generalist SWE interviews. If a...

## Power of 2, solving a google interview question. Playing with bits.

my bad, thanks for pointing out :)

## Power of 2, solving a google interview question. Playing with bits.

Yep, it one of the solutions, you're in right direction now c...

## Power of 2, solving a google interview question. Playing with bits.

Thanks for pointing out and reading my article :), I made a m...

## You can now web-monetize your DEV posts! (But don't get your hopes up too quickly)

This is so awesome, I am searching for a job and sharing what...

## How did this image brick Android phones?

Thanks for reading my article :)

## Topological sort, Solving Google Interview Question

Thanks for reading the article :), and updated my mistake.

## Topological sort, Solving Google Interview Question

Omg, thanks for pointing out! Code updated :)

## How did this image brick Android phones?

Thanks alot for reading :)

## Topological sort, Solving Google Interview Question

Omg thanks for pointing out, the graph is of another problem ...

## How did this image brick Android phones?

Interesting catch. Need to dig deeper regarding this. Thanks ...

## How did this image brick Android phones?

Share it to reach the 256 goal :P

## How did this image brick Android phones?

Thanks for reading the article :)

## How did this image brick Android phones?

There's an interesting happening in the background. If you ...

## Topological sort, Solving Google Interview Question

Noted :)

## How did this image brick Android phones?

Awesome man ! Smart that you applied only to the home screen.

## How did this image brick Android phones?

Thanks for reading the article :), I like to write about how ...

## How did this image brick Android phones?

Thanks for reading :)

## How did this image brick Android phones?

Thanks man ! :)

## How did this image brick Android phones?

Color spaces are usually used so that what photographers/prin...

## How did this image brick Android phones?

Yea. This issue used to appear rarely on Reddit and it's appa...

## How did this image brick Android phones?

Thanks alot !!

## How did this image brick Android phones?

Yea, and to make it even worse errors like these occur very r...

## Design Trie. Solving an Uber Interview Question

Hi mayank, there's no harm in asking for help :) I used : ...

## Design Trie. Solving an Uber Interview Question

Thanks alot !! :)

## Design Trie. Solving an Uber Interview Question

Thanks alot karthik ! :)

## Design Trie. Solving an Uber Interview Question

Thanks !

## Serialize and Deserialize binary tree, Apple interview

Yeah, typo. My bad. Thanks for pointing out :)

## Quickselect. Quicksort on Steroids + solving Facebook interview question.

Thanks for pointing out : )

## Product of array except self, a mind-boggling Google Interview question

Spot on! I will add your solution too so that people like yo...

## Product of array except self, a mind-boggling Google Interview question

It works, but your algorithm works in O(n^2). The solution in...

## Product of array except self, a mind-boggling Google Interview question

Yea, that's why I am solving as many questions as possible. I...

## Product of array except self, a mind-boggling Google Interview question

yea, I had to spend like 30 mins figuring out which data stru...

## Minimum Number of Platforms Required for a Railway Station, Bloomberg Interview question. πππ

Wow! This is so efficient! Thanks for sharing it !!

## Minimum Number of Platforms Required for a Railway Station, Bloomberg Interview question. πππ

Hi ! thanks for your solution. Could you explain the flow of ...

## What is CDN and how do they work.

Thanks you ! glad you liked it !

## What is CDN and how do they work.

Holy shit !! awesome man!

## What is CDN and how do they work.

True that, infact Netflix is handling all it's video content ...

## FizzBuzz JavaScript

oh yeah, that else part is a really bad bug from my side it s...

## FizzBuzz JavaScript

Nope, it would be the same since here I have modified the que...

## FizzBuzz JavaScript

I think you made a small typo in for loop, for( i = 1;i<=n...

## Let's build Spotify's Recent Search functionality with LRU caching mechanism. Microsoft Interview question.

Ohh my that's a blunder mistake! Thanks for pointing that out...

## String Compression. Facebook interview question.

Nice catch !! just fixed it. Thanks a lot for pointing that o...

## String Compression. Facebook interview question.

Yep, the function can only take string with characters as a i...

## String Compression. Facebook interview question.

Yep, we could compare if the "compressed" version is indeed s...

## String Compression. Facebook interview question.

True that ! this question is meant for testing string manipul...

## String Compression. Facebook interview question.

Thanks for pointing out the bug!

## String Compression. Facebook interview question.

Yep, it's efficient when a string contains multiple repeated ...

## Leftmost Column with at Least a One. Facebook interview question. Thought process from brute force to binary search.

Thank you :)

## Leftmost Column with at Least a One. Facebook interview question. Thought process from brute force to binary search.

check this : youtube.com/watch?v=nmaI2RC7SWU at 14:00 mark.

## Search in a rotated sorted array, understanding how to apply binary search in weird conditionsπ€ π€¨

Thanks for your inputs !! Rotation count is the first part ...

## Daily Challenge #228 - Best Profit in Single Sale

Thanks for pointing out, it's a typo. My bad. I have update...

## Daily Challenge #228 - Best Profit in Single Sale

O(n) time and O(1) space: Kadane's algorithm var maxProfi...

## Technical Interview Preparation Checklist

Thanks for this comprehensive list. If someone wants to und...