Data structures & algorithms
Every algorithm you need, explained from zero in plain words: an everyday example, the steps, a picture you can step through, the JavaScript, and where frontend code uses it. Then practice each one with problems you solve right in your browser, in JavaScript, TypeScript, Python, Java, C++, Go, or C#, and earn XP, levels, and badges as you go.
Level 1 · Newcomer
0 XP · 50 XP to level 2
- Solved
- 0 / 751
- Easy
- 0 / 249
- Medium
- 0 / 350
- Hard
- 0 / 152
- Streak
- 0 days
Badges 0 of 14
- First solve0 / 1: Pass every test of any problem.
- Warmed up0 / 10: Solve 10 problems.
- Half century0 / 50: Solve 50 problems.
- Century0 / 100: Solve 100 problems.
- Hard hitter0 / 1: Solve a hard problem.
- Heavy lifter0 / 10: Solve 10 hard problems.
- On my own0 / 10: Solve 10 problems without hints or the solution.
- Three in a row0 / 3: Solve something 3 days in a row.
- Week streak0 / 7: Solve something 7 days in a row.
- Unstoppable0 / 30: Solve something 30 days in a row.
- Daily habit0 / 5: Finish 5 daily challenges.
- Well rounded0 / 19: Solve a problem in every section of the algorithm map.
- Gold medal0 / 1: Solve every problem of one algorithm.
- Curious mind0 / 10: Read 10 algorithm pages.
How to practice here
- Learn the ideaOpen an algorithm on the map. Each page starts with an everyday example and builds up to the code.
- Watch it runStep through the picture: see each pointer move and each value change, with the line of code that did it.
- Solve its problemsEach page lists its problem numbers. Solve them in the playground, with Tuto beside you for hints.
- Level upEarn XP for each solve, keep a daily streak, take the daily challenge, and collect a medal for every algorithm.
The algorithm map
180 algorithms in 19 sectionsEvery algorithm and technique, in learning order. Click a name to learn how it works, or a number to solve one of its problems. Medals show how many of its problems you’ve solved.
Foundations
How to measure an algorithm's speed and memory, and the basic ways to attack any problem.
- Big O notationNot started
A short way to say how the work an algorithm does grows as its input gets bigger.
- RecursionNot started
A function solves a problem by calling itself on a smaller piece of the same problem.
- Brute forceNot started
Try every possible answer, check each one, and keep the best.
- Amortized analysisNot started
Measure the average cost of each operation over a long run, so a rare expensive step is shared by many cheap ones.
- SimulationNot started
Follow the rules of a process step by step, exactly as described, and report the final state.
Arrays & hashing
Count, remember, and add up values in one pass with hash maps and running totals.
- Counting with a hash mapNot started
Count how many times each value appears in one pass, by keeping a running tally per value in a
Map. - Hash set lookupNot started
Remember the values you've seen in a
Set, so checking "have I seen this before?" takes constant time. - Complement lookupNot started
To find two values that combine into a target, store what you've seen and look up the missing partner of each new value.
- Grouping by keyNot started
Put items into buckets by computing a key for each one, so items that share a key end up together.
- Prefix sumsNot started
Store running totals once, so the sum of any range of an array takes one subtraction.
- Prefix sums with a hash mapNot started
Count or find subarrays with a given sum in one pass, by looking up earlier running totals in a hash map.
- 2D prefix sumsNot started
Store the total of every top-left rectangle of a grid, so the sum of any rectangle takes four lookups.
- Difference arrayNot started
Apply many "add this amount to a range" updates in constant time each, then rebuild the final values in one pass.
- Kadane's algorithmNot started
Find the largest sum of any run of neighboring numbers in one pass, by deciding at each number whether to extend the current run or start fresh.
- Boyer-Moore majority voteNot started
Find the value that appears more than half the time using one pass and two variables, by letting different values cancel each other out.
- Cyclic sortNot started
When the values are 1 to n, swap each value straight into its own slot, then any slot holding the wrong value reveals a missing or repeated number.
- Matrix traversalNot started
Visit the cells of a grid in a planned order, such as row by row, column by column, along diagonals, or in a spiral.
- Array rotationNot started
Shift every item in an array by
kplaces, wrapping around the end, in place with three reversals. - Fisher-Yates shuffleNot started
Shuffle an array fairly in one pass by swapping each position, from the back, with a random position at or before it.
- Reservoir samplingNot started
Pick
kitems at random from a stream of unknown length, keeping onlykitems in memory, so every item has the same chance of being picked. - Coordinate compressionNot started
Replace big or spread-out values with their rank among the distinct values, so they can be used as small array indexes.
Two pointers
Walk two positions through the data at once to skip work a nested loop would repeat.
- Two pointers from opposite endsNot started
Put one index at the start and one at the end of a list, and move them toward each other to check pairs without a nested loop.
- Read and write pointersNot started
Walk a list with a
readindex while a slowerwriteindex copies only the items you keep, so the list is cleaned in place. - Merging two sorted listsNot started
Combine two sorted lists into one sorted list by always taking the smaller of the two front items.
Find groups of three or more items that add up to a target by fixing items one at a time and solving the last pair with two pointers.
- Dutch national flag (three-way partition)Not started
Sort a list that holds only three kinds of values in one pass by swapping each item into a low, middle, or high zone.
Sliding window
Keep a moving range over a list and update it as it slides instead of starting over.
- Fixed-size sliding windowNot started
Look at every run of
kneighboring items by sliding a window one step at a time, adding the item that enters and removing the one that leaves. - Variable-size sliding windowNot started
Grow a window to the right and shrink it from the left whenever it breaks a rule, to find the longest or shortest run of items that follows the rule.
- Sliding window with a frequency mapNot started
Keep a map of how many times each value appears inside a sliding window, updating it as items enter and leave, to answer questions about the window's contents.
Searching & binary search
Find a value, a boundary, or the best answer by throwing away half the options at a time.
- Binary searchNot started
Find a value in a sorted list by checking the middle and throwing away the half that can't hold it.
- Linear searchNot started
Check the items one by one, from the first to the last, until you find the one you want.
- Lower and upper boundNot started
Use binary search to find the first position where a value could go in a sorted list, before or after any equal values.
- Binary search in a rotated listNot started
Binary search a sorted list that was cut in two and swapped around, by checking which half is still in order.
- Binary search on the answerNot started
When the answer is a number and you can check whether a guess works, binary search over the possible answers.
- Staircase search in a sorted gridNot started
Search a grid whose rows and columns are both sorted by starting at the top-right corner and stepping left or down.
- Ternary searchNot started
Find the peak (or the lowest point) of a list or function that goes up and then down by comparing two inner points.
- Exponential searchNot started
Find a range that holds the target by doubling a bound (1, 2, 4, 8...), then binary search inside that range.
- Interpolation searchNot started
Search a sorted list of evenly spread numbers by guessing where the target should be from its value, like opening a phone book near the right letter.
Sorting
Put values in order, and use that order to make other problems easy.
- Bubble sortNot started
Sort a list by walking through it again and again, swapping any two neighbors that are in the wrong order.
- Selection sortNot started
Sort a list by finding the smallest remaining item and moving it to the front, one position at a time.
- Insertion sortNot started
Sort a list by taking items one at a time and sliding each one left into its place among the items already sorted.
- Merge sortNot started
Split the list in half, sort each half, then merge the two sorted halves into one sorted list.
- Quick sortNot started
Pick one item as a pivot, move smaller items before it and the rest after it, then sort each side the same way.
- Heap sortNot started
Arrange the list into a max-heap, then repeatedly move the biggest item from the top of the heap to the end.
- Counting sortNot started
Sort small whole numbers by counting how many times each value appears, then writing the values back in order.
- Radix sortNot started
Sort numbers digit by digit, starting from the last digit, using a stable bucket pass for each digit.
- Bucket sortNot started
Spread the values into a few ranges (buckets), sort each small bucket, then join the buckets in order.
- Shell sortNot started
Run insertion sort on items far apart first, then on closer and closer items, ending with a normal insertion sort.
- TimSortNot started
Find the already sorted stretches (runs) in the list, extend short runs with insertion sort, then merge the runs.
- QuickselectNot started
Find the k-th smallest item without sorting everything, by partitioning around a pivot and keeping only the side that holds position k.
- Sorting with comparatorsNot started
Tell JavaScript's
sorthow to order items with a compare function that returns a negative, zero, or positive number. - Counting inversionsNot started
Count the pairs of items that are in the wrong order, in O(n log n), by counting during merge sort's merge step.
Linked lists
Chains of nodes that point to the next one: rewire, reverse, and race through them.
- Linked list basicsNot started
Store items as a chain of nodes where each node holds a value and a link to the next node.
- Fast and slow pointersNot started
Walk two pointers through a list at different speeds, so where one is tells you something about where the other is.
- Floyd's cycle detectionNot started
Find out whether following links ever loops back, and where the loop starts, using a fast and a slow pointer and no extra memory.
- Linked list reversalNot started
Turn every
nextlink around, one node at a time, so the list runs backwards using no extra memory. - Merging sorted linked listsNot started
Combine two sorted linked lists into one sorted list by repeatedly taking the smaller front node.
- Doubly linked listNot started
A linked list whose nodes link both to the next node and the previous one, so any node you hold can be removed in one step.
Stacks & queues
Last-in-first-out and first-in-first-out lists that remember exactly what you need next.
- StackNot started
A list where you only add and remove at the top, so the last item in is the first one out.
- QueueNot started
A list where items join at the back and leave from the front, so the first item in is the first one out.
- Monotonic stackNot started
Keep a stack whose values only go down (or only go up), so each new item instantly finds the items it beats.
- Monotonic dequeNot started
Find the maximum (or minimum) of every sliding window in one pass by keeping only the items that could still win.
- Min stackNot started
A stack that can also tell you its smallest item in
O(1), by remembering the minimum at every height. - Queue from two stacksNot started
Build a first-in-first-out queue from two last-in-first-out stacks by pouring one into the other only when needed.
- Expression evaluationNot started
Compute a math formula like
3 + 4 * 2with two stacks, one for numbers and one for operators, respecting precedence and parentheses. - Ring bufferNot started
A fixed-size queue stored in an array whose end wraps around to the start, so no item ever has to move.
Recursion & backtracking
Solve a problem with smaller copies of itself, and explore choices then undo them.
- BacktrackingNot started
Build an answer one choice at a time, and undo the last choice when it leads nowhere so you can try the next one.
- Generating subsetsNot started
List every group you can make by keeping or leaving out each item, from the empty group to the full one.
- Generating permutationsNot started
List every order in which a set of items can be arranged by choosing an unused item for each position.
- Generating combinationsNot started
List every way to choose exactly
kitems from a list, where the order of the chosen items doesn't matter. - Backtracking with constraintsNot started
Fill slots one at a time while keeping quick lookups of which choices are still allowed, so broken partial answers are cut off at once.
- Backtracking on a gridNot started
Explore paths through a grid cell by cell, marking cells as used while you stand on them and clearing the mark when you step back.
- Divide and conquerNot started
Split a problem into smaller halves, solve each half the same way, and combine the two answers into the answer for the whole.
Trees & tries
Parent-child structures, like the DOM: walk them, search them, and combine answers from children.
- Binary tree depth-first searchNot started
Visit every node of a tree by going as deep as possible down one branch before coming back to try the next one.
- Level-order traversal (tree BFS)Not started
Visit a tree one level at a time, from the root down, using a queue of the nodes waiting to be visited.
- Iterative tree traversal with a stackNot started
Walk a tree depth-first with a loop and your own stack, instead of a function that calls itself.
- Morris traversalNot started
Walk a binary tree in order using no stack at all, by adding temporary links back up the tree and removing them afterwards.
- Binary search tree operationsNot started
Keep values in a tree where everything on the left is smaller and everything on the right is bigger, so each search or insert follows one path down.
- Lowest common ancestorNot started
Find the deepest node that has both of two given nodes below it (or is one of them).
- Tree dynamic programmingNot started
Solve a tree problem by computing an answer for each subtree from its children's answers, bottom up.
- Root-to-leaf pathsNot started
Walk down a tree while keeping the path from the root to the current node, and act on it whenever you reach a leaf.
- Building a tree from traversalsNot started
Rebuild a binary tree from its preorder and inorder lists by taking each root from preorder and splitting inorder around it.
- Tree serializationNot started
Turn a tree into a flat string, with markers for missing children, so it can be saved and rebuilt exactly.
- Trie (prefix tree)Not started
Store words letter by letter in a tree so that all words sharing a start share the same path, which makes prefix lookups fast.
- Binary liftingNot started
Precompute each node's ancestors 1, 2, 4, 8, ... steps up, so you can jump any number of steps up a tree in about log n hops.
- AVL tree (self-balancing search tree)Not started
A binary search tree that rotates nodes after each insert so the two sides of every node differ in height by at most one, keeping operations O(log n).
Heaps & priority queues
Always get the smallest or largest item fast, even while items keep arriving.
- Binary heap (priority queue)Not started
Keep items in an array shaped like a tree where every parent is smaller than its children, so the smallest item is always at the front.
- Top K elements with a heapNot started
Find the k largest items by keeping a small min-heap of size k and throwing out its smallest item whenever it grows too big.
- K-way mergeNot started
Merge several sorted lists into one by keeping the current front item of each list in a min-heap and always taking the smallest.
- Two heaps (running median)Not started
Split numbers into a lower half kept in a max-heap and an upper half kept in a min-heap, so the middle values are always at the two tops.
- Scheduling with a heapNot started
Simulate time moving forward and use a heap to pick the most urgent job among those that are ready.
Graphs
Things connected to other things: explore them, order them, and find the cheapest paths.
- Graph representationNot started
Turn a list of connections into an adjacency list, so you can ask "who is next to this node?" in one step.
- Breadth-first search (BFS)Not started
Explore a graph in rings around the start, all nodes 1 step away, then 2 steps, and so on, which gives the fewest steps to every node.
- Depth-first search (DFS)Not started
Explore a graph by following one path as deep as it goes, then backing up to try the next unexplored branch.
- Flood fillNot started
Starting from one cell of a grid, spread to every touching cell of the same color, like the paint bucket in a drawing app.
- Multi-source BFSNot started
Run one BFS from many start points at once to find each cell's distance to its nearest start.
- BFS on an implicit graphNot started
Find the fewest moves between two states when the graph is never written down, only a rule for which moves are allowed.
- Bidirectional BFSNot started
Search from the start and from the goal at the same time and stop where the two searches meet, which explores far fewer states.
- 0-1 BFSNot started
Find cheapest paths when every edge costs either 0 or 1, using a double-ended queue instead of a heap.
- Topological sort (Kahn's algorithm)Not started
Put tasks in an order where every task comes after the tasks it depends on, by repeatedly taking a task that has nothing left to wait for.
- Topological sort (DFS)Not started
Order tasks so each comes after its requirements by running DFS and listing each task only after everything it leads to is finished.
- Cycle detectionNot started
Find out whether a graph has a loop, a path that leads back to where it started, using DFS with three colors.
- Bipartite check (two-coloring)Not started
Check whether the nodes can be split into two groups so that every edge connects the two groups, by coloring neighbors opposite colors.
- Union-find (disjoint set union)Not started
Keep track of which items are in the same group while groups keep merging, answering "same group?" almost instantly.
- Dijkstra's algorithmNot started
Find the cheapest path from one start to every node when edges have non-negative costs, always growing from the closest unfinished node.
- Bellman-FordNot started
Find cheapest paths from one start even when some edges have negative costs, by relaxing every edge again and again, and detect loops that keep getting cheaper.
- Floyd-WarshallNot started
Find the cheapest path between every pair of nodes at once, by letting each node in turn act as a possible stop in the middle.
- A* searchNot started
Find a shortest path to one goal faster than Dijkstra by also using a guess of how far each node still is from the goal.
- Prim's algorithm (minimum spanning tree)Not started
Connect every node with the lowest total edge cost by growing one tree outward, always adding the cheapest edge that reaches a new node.
- Kruskal's algorithm (minimum spanning tree)Not started
Connect every node with the lowest total cost by taking edges from cheapest to most expensive and skipping any edge that would close a loop.
- Strongly connected componentsNot started
Split a directed graph into groups where every node can reach every other node in the same group, using two DFS passes.
- Bridges and articulation pointsNot started
Find the edges and nodes whose removal would split an undirected network into pieces, in one DFS using discovery times and low-links.
- Eulerian path (Hierholzer's algorithm)Not started
Find a route that uses every edge exactly once, like drawing a figure without lifting the pen, by walking until stuck and splicing in detours.
- Maximum flow (Edmonds-Karp)Not started
Find the most that can flow from a source to a sink through edges with capacity limits, by repeatedly pushing flow along the shortest path that still has room.
Dynamic programming
Break a problem into overlapping smaller problems and save each answer so it's solved once.
- Dynamic programmingNot started
Solve a big question by answering smaller versions of it once, saving each answer, and building on the saved answers.
- Memoization (top-down DP)Not started
Write the natural recursive solution, then save each call's answer in a cache so no question is answered twice.
- Tabulation (bottom-up DP)Not started
Fill a table of answers with a loop, smallest questions first, so every answer you need is already there.
- Linear DPNot started
Walk along a list once, and at each position work out the best answer so far from the answers at the few positions before it.
- Grid DPNot started
Fill a table shaped like a grid, where each cell's answer comes from the cells above it and to its left.
- 0/1 knapsackNot started
Choose which items to take, each at most once, to get the most value without going over a capacity.
- Unbounded knapsackNot started
Build a total from pieces you may reuse as many times as you like, such as the fewest coins that make an amount.
- Longest increasing subsequenceNot started
Find the longest list of items you can pick, in their original order, where each picked item is bigger than the one before.
- Longest common subsequenceNot started
Find the longest list of items that appears, in the same order, inside both of two sequences.
- Edit distanceNot started
Count the fewest single-character inserts, deletes, and replacements that turn one string into another.
- Interval DPNot started
Solve a question about every stretch of a sequence, short stretches first, by trying every place to split each stretch in two.
- String partition DPNot started
Cut a string or sequence into pieces that follow a rule, by deciding for each position whether the text up to it can end a piece.
- State machine DPNot started
Track the best result for each possible situation you could be in, and update all of them as you move through a sequence one step at a time.
- Bitmask DPNot started
Use the bits of a number to record which items of a small set are already used, and keep a DP answer for every such set.
- Digit DPNot started
Count the numbers up to a limit that follow a digit rule by choosing their digits one at a time, from left to right.
- DP space optimizationNot started
Keep only the rows or cells of a DP table that later cells still read, so memory shrinks from a whole table to one row or a few variables.
Greedy & intervals
Make the best-looking choice at each step, and order and merge ranges of time or space.
- Greedy choiceNot started
Build the answer one step at a time by always taking the option that looks best right now, when you can prove that never hurts later.
- Interval scheduling (earliest end first)Not started
Pick the most time ranges that don't overlap by always taking the one that ends first.
- Merging overlapping intervalsNot started
Sort ranges by their start, then join each one into the previous range when they overlap, giving a short list of ranges that don't overlap.
- Sweep lineNot started
Turn ranges into start and end events, sort the events by time, and walk through them in order while keeping a running count.
- Farthest-reach greedyNot started
Walk a line of positions while tracking the farthest position you can reach so far, to decide if (or how quickly) you can get to the end.
- Two-pass greedyNot started
Meet rules that look at both neighbors by sweeping once from the left for the left-side rule and once from the right for the right-side rule, then combining.
- Huffman codingNot started
Build the shortest possible prefix code for a text by repeatedly joining the two least frequent symbols into one group.
String algorithms
Find patterns, palindromes, and repeats in text faster than checking every position.
- Building strings piece by pieceNot started
Make a new string by collecting small pieces in an array and joining them once at the end.
- Expand around the centerNot started
Find palindromes by starting at every middle point and growing outward while both sides match.
- Manacher's algorithmNot started
Find the longest palindrome around every center in linear time by reusing mirror images inside a palindrome already found.
- KMP pattern searchNot started
Find every place a pattern appears in a text without ever moving backward in the text, using a table of the pattern's own repeats.
- Rabin-Karp rolling hashNot started
Compare a window of text with a pattern by comparing one number, and update that number in constant time as the window slides.
- Z-algorithmNot started
For every position in a string, find how many characters starting there match the start of the string, all in linear time.
- Run-length encodingNot started
Shrink repeated characters by writing each run once with its count, like
aaabccbecominga3b1c2. - Tokenizing textNot started
Turn a string into a list of meaningful pieces, called tokens, by scanning it once and grouping characters by kind.
- Suffix arrayNot started
List the start positions of all suffixes of a string in sorted order, so repeated pieces end up next to each other.
Math & geometry
Number tricks and shapes: divisors, primes, powers, counting, and overlapping boxes.
- Euclid's greatest common divisorNot started
Find the largest number that divides two numbers by repeatedly replacing the pair with the smaller number and the remainder.
- Sieve of EratosthenesNot started
Find every prime number up to
nby crossing out the multiples of each prime, starting from 2. - Fast exponentiationNot started
Compute
baseto the powerexponentin aboutlog exponentmultiplications by squaring the base and using the exponent's binary digits. - Modular arithmeticNot started
Do math on remainders, so numbers wrap around a fixed size and huge answers stay small enough to compute exactly.
- Prime factorizationNot started
Break a number into the primes that multiply to it by dividing out each divisor from 2 up to the square root.
- Counting with combinationsNot started
Count the ways to choose or arrange things with formulas like
C(n, k)instead of listing every way. - Converting between number basesNot started
Write a number in another base by taking remainders, and read it back by multiplying and adding digit by digit.
- Working with digitsNot started
Read, reverse, or sum a number's digits with
% 10andMath.floor(n / 10), without turning it into a string. - Matrix exponentiationNot started
Jump a step-by-step rule forward
nsteps inlog ntime by raising its matrix to then-th power with repeated squaring. - Rectangle overlap and hit testingNot started
Find where two boxes overlap, or whether a point lies in a box, by comparing their edges with
Math.maxandMath.min. - Convex hullNot started
Find the smallest convex outline around a set of points, as if stretching a rubber band around pins on a board.
Bit manipulation
Treat numbers as rows of on/off switches to store flags and answer questions in one step.
- Bitwise operatorsNot started
Read, set, clear, and flip single bits of a number with
&,|,^,~, and shifts, keeping in mind that JavaScript does this on 32-bit integers. - XOR tricksNot started
Use the facts that
x ^ x = 0andx ^ 0 = xto cancel out pairs and find the value that is left over. - Enumerating subsets with bitmasksNot started
Go through every subset of
nitems by counting from0to2^n - 1and reading each number's bits as "in" or "out". - Counting set bitsNot started
Count how many bits are 1 in a number by clearing the lowest set bit until nothing is left, or build counts for every number from smaller ones.
- Bit flagsNot started
Store many on/off options in one number, one bit per option, and grant, revoke, toggle, or check them with single bitwise operations.
Advanced data structures
Purpose-built structures for fast range questions, caches, and membership checks.
- Segment treeNot started
A tree over an array where each node stores the sum (or min, or max) of a range, so range questions and single-item updates both take
O(log n). - Fenwick treeNot started
A compact array that keeps running totals so you can add to one item and get any prefix sum in
O(log n). - Sparse tableNot started
Precompute the minimum of every range whose length is a power of two, then answer any range-minimum question in
O(1)with two overlapping lookups. - LRU cacheNot started
A fixed-size cache that, when full, throws out the item that was used least recently, with every operation in
O(1). - Bloom filterNot started
A tiny bit array that answers "have I seen this before?" with "definitely not" or "maybe", using a few hash functions and far less memory than a set.
Algorithms in frontend work
The algorithms inside the tools you use every day: DOM walks, diffing, fuzzy search, and more.
- Walking the DOM treeNot started
Visit every element of a page in document order by going deep first, using a stack of elements still to visit.
- Event propagation pathNot started
Work out which event listeners run, and in what order, by building the path from the root to the target and walking it down and back up.
- Virtual DOM diffingNot started
Compare the old and new trees of elements node by node and list the smallest set of changes to apply to the real page.
- Line-by-line text diffNot started
Show how one text became another by keeping the longest run of shared lines and marking the rest as deleted or added.
- Fuzzy matchingNot started
Check whether the letters of a short query appear in order inside a longer name, and score how good the match looks.
- Debounce and throttleNot started
Limit how often a function runs during a burst of events: debounce waits for a quiet moment, throttle runs at most once per time window.
- Virtualized list windowNot started
Render only the rows that are on screen by finding, from the row heights and the scroll position, the first and last visible row.
- Masonry layoutNot started
Place cards of different heights into columns by always putting the next card in the shortest column.
- Undo and redo with two stacksNot started
Keep past states on an undo stack and undone states on a redo stack, so undo and redo each move one state between them.
- Route matchingNot started
Decide whether a URL path fits a route pattern like
/users/:id, and pull out the named parts, by comparing them segment by segment. - Deep clone and deep equalNot started
Copy or compare nested objects and arrays by walking into every level, remembering objects already seen so loops don't run forever.
- Flattening nested dataNot started
Turn nested arrays or objects into a single flat level, going only as deep as you ask.
- Running tasks with a concurrency limitNot started
Run many async tasks with at most
limitin flight at once, starting the next task as soon as one finishes.