Found 39 total tags.
1 item with this tag.
1 item with this tag.
INFO
A linear data structure used to store multiple values in a single variable. Arrays are foundational in programming and support indexed access, making them ideal for iteration, sorting, and manipulation.
0arr[2] → third item)arr[1] = 42)arr.append(5) or arr.push(5))arr.insert(2, "x"))del arr[0], arr.remove("x"))arr[1:4])len(arr) or arr.length)arr.sort())1 item with this tag.
INFO
a specialized form of binary tree that maintains a sorted hierarchical structure
Each node satisfies the following properties:
3 items with this tag.
INFO
A hierarchical data structure in which each node has at most two children, referred to as the left and right child. Unlike BinarySearchTree, Binary Trees do not enforce any ordering constraints between node values.
1 item with this tag.
INFO
A traversal algorithm that explores all neighbors at the current depth before moving to the next level. Breadth First Search (BFS) is widely used in graph traversal, shortest path algorithms, and level-order tree traversal.
More Details here: Breadth First Search (BFS)
4 items with this tag.
1 item with this tag.
1 item with this tag.
2 items with this tag.
2 items with this tag.
6 items with this tag.
1 item with this tag.
INFO
A traversal algorithm that explores as deep as possible along each branch before backtracking. Depth-First Search (DFS) is widely used in graph traversal, tree algorithms, cycle detection, and topological sorting.
INFO
These problems require you to design and implement classes that model real-world systems, behaviors, or constraints. They often involve encapsulation, state management, and method orchestration, and are common in low-level design (LLD) interviews.
3 items with this tag.
INFO
A Greedy Algorithm builds a solution step-by-step by choosing the locally optimal option at each stage, aiming for a global optimum. It’s efficient and often surprisingly effective, especially in problems with greedy-choice property and optimal substructure.
2 items with this tag.
2 items with this tag.
2 items with this tag.
INFO
Programming math refers to the use of mathematical concepts and operations within code to solve problems, model systems, and perform computations. It is foundational to fields like data science, graphics, machine learning, and simulation.
+, -, *, /, %)
3 + 5 → 8, 10 % 3 → 12 ** 3 → 8)round(3.1415, 2) → 3.14, int(3.9) → 3)abs(-7) → 7)x > y, x == y) for logical branchingmath.sqrt(16) → 4, math.sin(π/2) → 1)float(5) → 5.0, int("42") → 42)2 items with this tag.
1 item with this tag.
2 items with this tag.
2 items with this tag.
2 items with this tag.
2 items with this tag.
INFO
A linear data structure that follows the First-In, First-Out (FIFO) principle. Elements are added at the rear and removed from the front. Queues are widely used in scheduling, buffering, and breadth-first traversal algorithms.
queue.append(x))queue.pop(0))3 items with this tag.
2 items with this tag.
1 item with this tag.
INFO
A linear data structure that follows the Last In, First Out (LIFO) principle. The most recently added element is the first to be removed. It’s conceptually similar to a stack of plates: you add to the top and remove from the top.
4 items with this tag.
1 item with this tag.
INFO
A sequence of characters used to represent text. It is one of the most fundamental data types in programming and is typically enclosed in quotes.
"Hello" + "World" → "HelloWorld")"Hello"[1:4] → "ell")"apple".find("p") → 1)"cat".replace("c", "b") → "bat")len("hello") → 5)1 item with this tag.
INFO
A hierarchical data structure composed of nodes connected by edges, where each node may have child nodes but only one parent (except the root). Trees are used to model relationships, organize data, and support efficient traversal and search operations.
INFO
A technique that uses two indices to traverse a data structure—often in opposite directions or at different speeds—to solve problems more efficiently. It’s commonly used in arrays, strings, and linked lists to reduce time complexity from O(n²) to O(n).
left and right, or slow and fast)left + right)arr[left], arr[right] = arr[right], arr[left])