Interview preparation topics with detailed solutions, examples, and complexity analysis
Find two numbers in array that add up to target
Find maximum sum subarray using dynamic programming
Find container that holds the most water using two pointers
Calculate how much water can be trapped after raining
Find length of longest consecutive sequence in unsorted array
Find the longest substring without repeating characters
Find maximum profit from buying and selling stock once
Rotate array elements by k positions to the right using the elegant 3-step reversal technique
Find second largest element in array efficiently
Remove duplicate elements from array efficiently
Flatten nested arrays to specified depth or completely
Check if string of brackets is valid using stack data structure
Find maximum element in each sliding window of size k
Check if two strings are anagrams using character frequency counting
Classic recursion problems: factorial, fibonacci, string reversal, and subsets generation using backtracking. Covers advanced concepts like memoization and call stack mechanics.
Limit function execution frequency for performance optimization
Control function execution rate to limit calls per time period
Transform function to accept arguments one at a time
Cache function results to optimize performance
Create deep copy of objects and arrays recursively
Simple implementations of array methods map, filter, reduce
Understanding Promise.all, allSettled, race, and any methods
Combine multiple functions to create new functionality
Handle events efficiently using event bubbling and delegation
Flatten nested objects into single-level objects with dot notation
Custom implementations of call, apply, and bind methods
Understanding 'this' context and implementing method chaining
Function types, IIFE patterns, and function expressions
Accurate type detection for all JavaScript data types
String manipulation using split and join methods with practical examples
JavaScript classes with constructor and method chaining
Convert objects to arrays using Object.keys, Object.values, and Object.entries
JavaScript Set operations: union, intersection, difference, and duplicates removal
Learn how to create objects using constructor functions and understand the differences between constructor functions and ES6 classes.
Learn how to execute promises sequentially, ensuring each promise completes before the next one starts. Essential for handling dependent async operations.
Master Promise chains, .finally() behavior, Promise constructor rules, and value passing through complex scenarios.
Learn how to create triangles using CSS borders without images or SVG. Master the technique of using transparent borders to create different triangle directions.
Master the `this` keyword in JavaScript - understand all cases from common to rare, including arrow functions. A frequently asked Meta interview question.
Master JavaScript closures - understand lexical scoping, closure creation, and practical applications. Essential for React hooks and functional programming.
Simple guide to var, let, and const differences with clear legal/illegal examples. Master scope, hoisting, and redeclaration rules.
Master the difference between == (loose equality) and === (strict equality) in JavaScript. Understand type coercion, comparison rules, and best practices.