Coding_Interview_Questions
# Title Summary Link
1 Top K Frequent Words HashMap + Heap + Sort
2 Fractional Stock Trading System Broker trades only integer shares; client trades fractional. Match buying/selling to minimize holdings. [Link]
3 Maximum Multiplier Path DFS solution on graph/tree
4 Leetcode 375 Variant Unclear; likely range-based DP
5 Reverse Linked List + Pairwise Reverse Reverse whole list; then reverse pairs
6 Fractional Shares Sorting Sort output properly; otherwise test cases fail [Link]
7 Microservice Dependency Topological Sort with 'ignore non-existent'; DFS-based with depth count [Link]
8 Student Course Graph DAG traversal to nd required course sequence
9 Task Scheduler (LC621) Greedy + MaxHeap
10 Buy & Sell Orders Heap-based matching of buy/sell orders [Link]
11 Referral Count DFS + memoization, sort by count & lex
12 Commit O set Two approaches: O(n) with set, O(1) with index tracking
13 Margin Call Calculate if user's equity falls below margin requirement [Link]
14 House and Street Trade Match Exact match > attribute match > o setting match [Link]
15 Candlestick Chart Bucket trade prices into 10s intervals [Link]
16 Trade Stock Greedy trading logic based on value [Link]
17 Event Window Layout Assign left/width for overlapping events
18 O set Ordering Ensure logs are applied in correct sequence [Link] set-Ordering
19 Candlestick + Service DAG Graph + price tracking combo [Link]
20 Portfolio Optimization Maximize return w/ constraints [Link]
21 Simpli ed Microservice Dependency Skip topo sort; simple DFS w/ count
22 Access Log Merge log entries, dedupe & sort [Link]
23 Course Schedule Topological sort, detect cycles [Link]
24 Badge Record Interval computation from badge events [Link]
25 Max Subtree Sum in Tree DFS w/ return value aggregation
26 Max Pro t from Tasks Greedy by deadline + pro t [Link]
27 Process String Logs String parsing + merge intervals
28 Permutation Substring Check (LC438) Sliding window + count match
29 Median of Odd-length Subsequences Heap tracking + rolling update
30 Trade Matcher Multi-stage match: exact > attr > o set
31 Stock Trade w/ Cash Constraint Sell highest value stock rst
32 Greedy Max Pro t Optimal buy/sell timing [Link]
33 Print All Paths in DAG BFS traversal + path count
34 Min/Max/First/Last per Time Window Sliding window summary
35 Candlestick w/ Empty Buckets Propagate last price to ll gaps
36 Packet Commit Simulation Marking sequence progress
37 LC1249 - Remove Min Parentheses Stack + index set
38 LC1801 - Total Share Traded Buy/Sell heap logic
1
ff
fi
fi
ff
fi
fi
fi
fi
fi
ff
ff
ff
f