DEV Community

Akhil profile picture

Akhil

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

Location Bangalore Joined Joined onΒ  Email address akhilpokle96@gmail.com github website twitter website

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...

loading...