ShahOJ

Welcome to ShahOJ!

Explore competitive programming problems

61
Public Problems
95
Total Problems
231
Users

Public Problems

50 of 61
Status Problem Title Difficulty Tags Author Published Views Submissions
Multiplicative Persistence #multiplicative-persistence Medium Accenture-Elite-2026 ISM Ad-hoc Math Number Theory
Shahnawaz Hussain Shahnawaz Hussain
Oct 31, 2026
23
4
The Traveler's Journey #the-travelers-journey Medium dp dynamic-programming
Shahnawaz Hussain Shahnawaz Hussain
Nov 25, 2025
155
9
High-Capacity Knapsack #high-capacity-knapsack Medium Knapsack
Shahnawaz Hussain Shahnawaz Hussain
Nov 25, 2025
156
2
Optimal Pair Selection Score #optimal-pair-selection-score Medium Hilabs
Shahnawaz Hussain Shahnawaz Hussain
Nov 14, 2025
161
10
count Good Subset #count-good-subset Medium array de-shaw
Ritik Raj Ritik Raj
Nov 06, 2025
197
3
equal roles #equal-roles Medium array de-shaw
Ritik Raj Ritik Raj
Nov 06, 2025
160
4
Ancestor Difference on a Tree (Maximum) #ancestor-difference-on-a-tree-maximum Medium Tree
Shahnawaz Hussain Shahnawaz Hussain
Oct 27, 2025
158
14
Minimum Ancestor Difference on a Tree #minimum-ancestor-difference-on-a-tree Medium Tree
Shahnawaz Hussain Shahnawaz Hussain
Oct 27, 2025
149
3
Sum of Distances #sum-of-distances Medium Tree
Shahnawaz Hussain Shahnawaz Hussain
Oct 27, 2025
151
4
Min Edge Weight #min-edge-weight Medium Tree
Shahnawaz Hussain Shahnawaz Hussain
Oct 27, 2025
157
3
Coin Query #coin-query Medium Meesho
Md Zeeshan Alam Md Zeeshan Alam
Oct 30, 2025
172
5
Divisor Power in a Rooted Tree #divisor-power-in-a-rooted-tree Medium No tags
Shahnawaz Hussain Shahnawaz Hussain
Oct 27, 2025
137
2
Center of Tree #center-of-tree Medium Tree
Shahnawaz Hussain Shahnawaz Hussain
Oct 27, 2025
146
6
Shortest path in DAG #shortest-path-in-dag Medium No tags
Shahnawaz Hussain Shahnawaz Hussain
Oct 26, 2025
149
10
Cheapest Flights Within K Stops #cheapest-flights-within-k-stops Medium Leetcode
Shahnawaz Hussain Shahnawaz Hussain
Oct 26, 2025
107
2
Burn them All #burn-them-all Medium AZ
Shahnawaz Hussain Shahnawaz Hussain
Oct 26, 2025
139
1
Server Cluster Size #server-cluster-size Medium Graph NK Security
Shahnawaz Hussain Shahnawaz Hussain
Oct 25, 2025
130
1
Make Array Equal #make-array-equal Medium Meesho Array
Shahnawaz Hussain Shahnawaz Hussain
Oct 23, 2025
154
4
Xor Sum Queries #xor-sum-queries Medium Xor Space Binary Search
Shahnawaz Hussain Shahnawaz Hussain
Oct 20, 2025
133
2
Age of Lumberjacks #age-of-lumberjacks Medium Binary Search SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 07, 2025
353
42
Password Validation #password-validation Medium Strings SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 07, 2025
378
34
2533. Number of Good Binary Strings #2533-number-of-good-binary-strings Medium Leetcode 2533 Premium SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 05, 2025
526
23
Minimize Sum by reductions #minimize-sum-by-reductions Medium data structure SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 05, 2025
415
26
K-Capable Model Selection #k-capable-model-selection Medium Greedy Brute Force SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 05, 2025
794
43
Store Price Adjustment #store-price-adjustment Medium Offline Queries SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 05, 2025
864
32
Count of Good Binary Strings #count-of-good-binary-strings Medium Math SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 04, 2025
565
42
Max Decreasing Subarray #max-decreasing-subarray Medium dp dynamic-programming SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 04, 2025
554
38
Maximum of minimum difference #maximum-of-minimum-difference Medium binary search SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 04, 2025
647
34
SQUAREPOINT 2025 Collections 📚 #squarepoint-2025-collections Medium SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 04, 2025
3262
3
Consistent Logs #consistent-logs Medium Two Pointer Hashmap SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 05, 2025
889
30
Reach 1 with Minimal Operations #reach-1-with-minimal-operations Medium Brute Force Wex Fintech
Shahnawaz Hussain Shahnawaz Hussain
Oct 07, 2025
200
8
Throughput Scaling Optimization #throughput-scaling-optimization Medium Binary Search SQUAREPOINT-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 05, 2025
715
76
Prime Jumps #prime-jumps Medium dynamic programming dp SquarePoint-2025
Shahnawaz Hussain Shahnawaz Hussain
Oct 10, 2025
196
1
Microorganism Simulation and Dominant Family Detection #microorganism-simulation-and-dominant-family-detection Medium Samsara
Shahnawaz Hussain Shahnawaz Hussain
Oct 16, 2025
133
5
Count Distinct Directed Walks #count-distinct-directed-walks Medium Samsara
Shahnawaz Hussain Shahnawaz Hussain
Oct 16, 2025
151
2
Non-Overlapping Pattern Matching in Event Stream #non-overlapping-pattern-matching-in-event-stream Medium Samsara
Shahnawaz Hussain Shahnawaz Hussain
Oct 16, 2025
142
11
Segment Tree Collections 🗃️ #segment-tree-collections Medium Segment Tree
Shahnawaz Hussain Shahnawaz Hussain
Oct 09, 2025
299
0
Longest Subsequence with Bounded Differences #longest-subsequence-with-bounded-differences Medium dynamic programming dp Range Queries
Shahnawaz Hussain Shahnawaz Hussain
Oct 09, 2025
143
3
Minimum Window Subsequence #minimum-window-subsequence Medium Two Pointer
Shahnawaz Hussain Shahnawaz Hussain
Oct 06, 2025
120
1
Fun in the Party #fun-in-the-party Hard Tree DFS DP
Shahnawaz Hussain Shahnawaz Hussain
Oct 06, 2025
143
2
Distinct Subsequence #distinct-subsequence Hard dynamic programming dp
Shahnawaz Hussain Shahnawaz Hussain
Oct 01, 2025
136
1
Minimum Police for Surveillance #minimum-police-for-surveillance Hard SSC Graph
Shahnawaz Hussain Shahnawaz Hussain
Oct 01, 2025
125
1
Clinic Connectivity #clinic-connectivity Hard Graph MST
Shahnawaz Hussain Shahnawaz Hussain
Oct 01, 2025
136
1
Budget Travelling #budget-travelling Medium Graph
Shahnawaz Hussain Shahnawaz Hussain
Sep 30, 2025
168
1
The Jump Game #the-jump-game Hard Graph
Shahnawaz Hussain Shahnawaz Hussain
Sep 30, 2025
148
1
Cycles in a graph #cycles-in-a-graph Hard Graphs DFS Cycle Detection Graph Theory
Shahnawaz Hussain Shahnawaz Hussain
Sep 24, 2025
131
1
Top 10 of Stream #top-10-of-stream Hard System Design
Shahnawaz Hussain Shahnawaz Hussain
Sep 21, 2025
128
1
Distance Query in a Tree #distance-query-in-a-tree Medium LCA Tree
Shahnawaz Hussain Shahnawaz Hussain
Sep 21, 2025
146
3
Count number of set bit #count-number-of-set-bit Easy Bit
Shahnawaz Hussain Shahnawaz Hussain
Sep 21, 2025
119
1
FInd Odd Occurence Number #find-odd-occurence-number Medium array
Shahnawaz Hussain Shahnawaz Hussain
Sep 21, 2025
107
1