IFS Content

  1. Introduction - Introduction to agentic architectures & frameworks
  2. MCP, RAG & Tool Calls - Explanation and differentiation between each function
  3. Agentic Frameworks - Mastra, Langraph, CrewAI, etc
  4. FINAL INTERVIEW PREP

Leetcode

  1. Find the Celebrity
  2. Find the town Judge
  3. Gas Station Problem
  4. Find the Majority Element I
  5. Find the Majority Element II
  6. Keys and Rooms
  7. Container with most water
  8. Trapping Rain Water
  9. Maximum Subarray
  10. Find center of star graph
  11. Maximum Star Sum of a Graph
  12. Jump Game
  13. Two Sum
  14. Three Sum
  15. Three Sum Smaller

Leetcode Notes

Problem Brute Force Time Brute Force Space Optimal Time Optimal Space Optimal Strategy Used
Find the Celebrity O(n²) O(1) O(n) O(1) Greedy Candidate Elimination
Find the Town Judge O(n²) O(n²) O(n + e) O(n) Degree Tallying (1D Array)
Gas Station O(n²) O(1) O(n) O(1) Greedy Single-Pass
Majority Element I O(n²) O(1) O(n) O(1) Boyer-Moore Voting
Majority Element II O(n²) O(1) O(n) O(1) Modified Boyer-Moore
Keys and Rooms N/A* N/A* O(n + e) O(n) Graph Traversal (DFS/BFS)
Container With Most Water O(n²) O(1) O(n) O(1) Two Pointers (Shrinking)
Trapping Rain Water O(n²) O(1) O(n) O(1) Two Pointers (Dynamic Max)
Maximum Subarray O(n2) O(1) O(n) O(1) Two Pointers (Dynamic Max)
Find the center of the star graph O(n2) O(1) O(1) O(1) Graph Topology and traversal
Find the sum of star graphs O(V2d) (Worst Case) or O(Vdk) O(V+E) O(ElogV) or O(E+Vdlogd) O(V+E) Greedy filtering and sorting
Jump Game O(n2) O(1) O(n) O(1) Greedy Dynamic Programming
Two Sum O(n2) O(1) O(n) O(n) Hashmap, Greedy
Three sum O(n3) O(n) O(n2) O(1) Two Pointer, Sorting, Greedy
Three sum smaller O(n3) O(1) O(n2) O(1) Two Pointer, Sorting

Important Context Notes