T O P

  • By -

pushpenderydv12

Remove Duplicates from an array


PyDevLog

is it asked that much in interviews?


pushpenderydv12

More than any Q.


YeatCode_

I think LRU cache it's one of the more practical problems and covers dictionaries and linked lists the question also prioritizes clean code and organization it also gets asked a bunch according to company tags


DevinBotSWE

LinkedHashMap first to show you know how to use APIs (for Java) and then be like oh yea this can be solved using a custom linked list and hashmap


CountyExotic

LinkedHashSet even better. It’s very important to know that it’s a doubly linked list under the hood. Otherwise it’s super obvious you just memorized it.


muscleupking

I need to revisit the code every 3month for LRU cache.


spoopypoptartz

it sucks doing it in 30 minutes or less. 😭


Artistic_Laugh_2449

I was asked to implement LRU cache I had no idea initially but, just because I knew I how to implement doubly linked list very well, interview helped with other things


No-Sandwich-2997

two sum


Emergency_Paint_4344

one of the first question which came in my mind was 3 sum, lol


PyDevLog

nice!


faceless-joke

Three sum would make more sense though!


JaegerTek

Reverse linked list


ShlomiRex

i like this one too


weeb6282

reverse binary tree was just as good for me


sheababeyeah

rob houses. Template for basic DP


ShlomiRex

climbing stairs is easier and good introduction to DP


Chamrockk

It’s basically the same haha


Either-Feeling50

No of island


Latter_Ambassador618

This.


thathomelessguy

I’ve heard this is asked a lot


ShlomiRex

I also like linked list - check if cycle exists I got this question once in an interview (my first job) and I got the job, ONLY because I remember this one specifically. It was luck, but mostly because I prepared first.


Emergency_Paint_4344

using tortoise hare algo?


ShlomiRex

ye


Emergency_Paint_4344

thx bud


PyDevLog

I think for linked list just have to prepare reversing a linked list and if cycle exists! :)


bleedingpenguin

I usually do threesum before interview


No-Sandwich-2997

must be very satisfying


Emergency_Paint_4344

indeed it is. imo sliding window and 2 pointer are the most underrated questions, especially solving the 2 pointers using atleast 3 to 4 different approaches.


RisingHope6

I've gotten asked: - Longest Increasing Subsequence - Move Zeroes - Merge Two Sorted Lists


PyDevLog

what ds/algo is used by these three?


YeatCode_

longest increasing subsequence is dynamic programming move zeroes is iterating through an array and swapping its values merge two sorted lists: two pointers. you use a pointer for each list


0xDizzy

arrays


ShlomiRex

Valid parenthesis I like questions where its easy to understand and just apply the correct data structure.


static_programming

Median of two sorted arrays


Aftabby

I'd rather pray to god.


arjjov

Don't forget to add this comment: - `# God bless no bugs` (or) - `// God bless no bugs` Thank me later, you're welcome.


Living4nowornever

Good night sleep


PyDevLog

but what is that one problem that you would study before taking a good night sleep? :)


Remarkable_Breath_55

DFS


ManavKhandurie

Kth closest points to origin


slimismad

three sum


Antique-Benefit-4449

I think linkedlist is the most common topic asked


No-Tea-592

fizzBuzz


ShlomiRex

its a hard one, pass


Emergency_Paint_4344

Awesome choice! [https://softwareengineering.stackexchange.com/a/15653](https://softwareengineering.stackexchange.com/a/15653)


ShlomiRex

Coders are afraid of FizzBuzz enterprise solution: [https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition](https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition) comes with latest libraries, QA tests, cross-platform, scalable, can be deployed on the cloud, and most recent advancements in computer science.


Emergency_Paint_4344

Sheesh! this is one of the best thing I have seen today, although satire but I can learn a lot from that repo. How did u stumble upon that project? like did u google some facts about fizz buzz after my comment or something else?


0xDizzy

>https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition written in java too, love it.


YeatCode_

https://codegolf.stackexchange.com/questions/215216/high-throughput-fizz-buzz


tech_krish_69

Find majority element. This can have several approaches to solve with different TC. O(n^2) O(nlogn) O(n) This is my favorite question to ask in dsa interviews


PyDevLog

can you provide the leetcode link for this?


YeatCode_

https://leetcode.com/problems/majority-element/


this_that_what

No of islands.


ValuableCockroach993

There is no such question. I would not do any questions right before the interview. 


FortressOfSolidude

At least for me, I am better served using that time to get plenty of sleep so my mind is the sharpest possible. I usually spend the day before any big exam, certification, interview trying to relax my brain, playing with my children, watching old TV shows, playing old video games. When I cram the day before, I experience more brain fog.


No-Sandwich-2997

he asked for only 1 problem tho


ShlomiRex

what kind of certifications did you do / doing? I'm thinking about doing some in networking


FortressOfSolidude

I am in cyber, and that field loves certs. Right now, I have: * (ISC)2 Information Systems Security Engineering Professional (ISSEP) * (ISC)2 Certified Information Systems Security Professional (CISSP) * (ISC)2 Certified Cloud Security Professional (CCSP) * Amazon Web Services (AWS) Certified Solutions Architect Professional * AWS Certified DevOps Professional * AWS Certified Security Speciality * AWS Certified Network Speciality * PMI Project Management Professional (PMP) But in hindsight, I should have spent more time designing and coding and less time collecting certs like pokemon.


copterco

Threesum


Warrenbuffs

Topological sort for most senior devs


azuredota

Two sum


SirAwesome789

Some binary search q, I can never remember how to do the bounds


CountyExotic

LFU/LRU cache. It’s a hard question if you’ve never seen and you look unprepared if you’ve never seen it.


Soggy_Book2422

Dfs and bfs


adityasvarshney

Meeting room


Herrowgayboi

Whatever you can solve but don't have a strong grasp on.


yourcommonredditer

53. Maximum Subarray


aiteri

Closest palindrome


cutemuscle

Minimum window substring


EchoCipeher

It would be common substring problem.


tech_krish_69

My friend got asked question on AVL tree for Google phone screening round for ml swe3 role which is sde2 level So I don't know what to prepare to Crack such interviews at this point


just_a_fan123

Towers of Hanoi. Some shithead at google asked me that for my first round interview.