Part 2 - Golden rules for solving a Coding problem in an interview #coding #interview @itsdineshvaryani
Part 2 - Golden rules for solving a Coding problem in an interview #coding #interview  @itsdineshvaryani
Uploaded June 2023 | Updated November 2026, 2 days ago
Part 2 - Golden rules for solving a Coding problem in an interview #coding #interview
👉 If the coding problem is around a Singly Linked List, and you are stuck in traversals logic, then try to use either Two Pointers or Slow/Fast Pointers.

👉 If the coding problem has a recursive solution but it's hard to visualize/code, try using a Stack data structure with a loop.

👉 If the coding problem revolves around iterating an array, and takes O(N2) time complexity, O(1) space complexity than try to use a HashMap/HashSet. It makes the algorithm faster with O(N) time complexity but takes more space with O(N) space complexity.

👉 If the coding problem has input in the form of a Graph like connections, links etc, then most of the time it can be solved by applying Graph traversals algorithms like Breadth First Search (BFS) and Depth First Search (DFS).

👉 If the coding problem requires optimization around the recursive the solution, there could be a possibility that dynamic programming can be used.

👉 If the coding problem has a group of strings or some manipulation/find/storing needs to be done around the substring, there is a high possibility that either Tries or HashMap can be used.
Part 2 - Golden rules for solving a Coding problem in an interview #coding #interviewCracking The Google, Apple, Meta, Amazon, Microsoft Technical Interviews BookInsert a Node in the beginning of a Singly Linked List in Java | Animation | Linked List in DSARepresent a Singly Linked List and Node - Linked List in DSAJUnit 5 - Demo - Dynamic Tests using StreamsRemove Even Integers from an Array | Implementation | Coding Interview QuestionThings you should DO in a Coding Interview #coding #interviewLeetCode #101: Symmetric Tree | Animation | Amazon Interview Question150 Days Roadmap to MAANG (Day 78-84) #coding #designRecursive Depth First Search (DFS) traversal of an Undirected Graph | ImplementationLeetCode #1: Two Sum II Animation | Facebook Coding Interview | LeetCode Two Sum JavaInsert Interval | Leetcode 57 | Animation | Coding Interview Problem
Dinesh Varyani |

Part 2 - Golden rules for solving a Coding problem in an interview #coding #interview

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER