How pratikyadav-dev/private works
This repository is a collection of standalone Python solutions to coding problems, not a single application. Its principal use is to select a problem’s file, provide the expected inputs to its class or function, and receive a computed answer. The tree and README organize exercises around prefix sums, sliding windows, and two pointers, alongside daily questions, random problems, and contest problems. Each solution implements its own algorithm; the available evidence shows no shared runtime, storage, or calls between solutions.
Components 34
Prefix Sum
- Running Sum
Arrays/Prefix sum/1480. Running Sum of 1d Array.py - Split Array Ways
Arrays/Prefix sum/2270. Number of Ways to Split Array.py - Product Except Self
Arrays/Prefix sum/238. Product of Array Except Self.py - Left Right Differences
Arrays/Prefix sum/2574. Left and Right Sum Differences.py - Range Sum Query
Arrays/Prefix sum/303. Range Sum Query - Immutable.py - Subarray Sum K
Arrays/Prefix sum/560. Subarray Sum Equals K.py - Pivot Index
Arrays/Prefix sum/724. Find Pivot Index.py
Sliding Window
- Max Consecutive Ones III
Arrays/sliding window/1004. Max Consecutive Ones III.py - Subarray Average Threshold
Arrays/sliding window/1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold.py - Card Points
Arrays/sliding window/1423. Maximum Points You Can Obtain from Cards.py - Max Vowels
Arrays/sliding window/1456. Maximum Number of Vowels in a Substring of Given Length.py - Minimum Size Subarray
Arrays/sliding window/209. Minimum Size Subarray Sum.py - Duplicate Within Distance
Arrays/sliding window/219. Contains Duplicate II.py - Sliding Window Maximum
Arrays/sliding window/239. Sliding Window Maximum.py - Distinct Subarray Sum
Arrays/sliding window/2461. Maximum Sum of Distinct Subarrays With Length K.py - Longest Unique Substring
Arrays/sliding window/3. Longest Substring Without Repeating Characters.py - Find Anagrams
Arrays/sliding window/438. Find All Anagrams in a String.py - Max Consecutive Ones
Arrays/sliding window/485. Max Consecutive Ones.py - String Permutation
Arrays/sliding window/567. Permutation in String.py - Maximum Average
Arrays/sliding window/643. Maximum Average Subarray I.py - Subarray Product Limit
Arrays/sliding window/713. Subarray Product Less Than K.py - Fruit Baskets
Arrays/sliding window/904. Fruit Into Baskets.py
Two Pointer
- Reverse Words
Arrays/two pointer/151. Reverse Words in a String.py - 4Sum
Arrays/two pointer/18 4Sum.py - Longest Dictionary Word
Arrays/two pointer/524. Longest Word in Dictionary through Deleting.py - Valid Triangle Count
Arrays/two pointer/611 Valid Triangle Number.py - Remove Sorted Duplicates
Arrays/two pointer/80. Remove Duplicates from Sorted Array II.py - Sort by Parity
Arrays/two pointer/905. Sort Array By Parity.py - Sort by Parity II
Arrays/two pointer/922. Sort Array By Parity II.py
Daily Questions
- Digit Sum String
Daily Question/2243. Calculate Digit Sum of a String.py - Monotonic Subarray
Daily Question/3105. Longest Strictly Increasing or Strictly Decreasing Subarray.py - Minimum Positive Sum
Daily Question/3364. Minimum Positive Sum Subarray .py
Other Exercises
- Distance Value
Random/1385. Find the Distance Value Between Two Arrays.py - Rotated Array Minimum
Random/154. Find Minimum in Rotated Sorted Array II.py