DEV Community

Shahrouz Nikseresht profile picture

Shahrouz Nikseresht

Python beginner | Learning out loud & building in public | Exploring Git, clean code, and real-world projects | Sharing my journey on YouTube & Twitter

Pronouns

he/him

Day 80: Python Search in Rotated Sorted rArray - Final Challenge O(log n) Binary Search Mastery (LeetCode #33 Vibes)

Day 80: Python Search in Rotated Sorted rArray - Final Challenge O(log n) Binary Search Mastery (LeetCode #33 Vibes)

Comments
3 min read

Want to connect with Shahrouz Nikseresht?

Create an account to connect with Shahrouz Nikseresht. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
Day 79: Python Deep Copy Graph – HashMap-Based Cloning for Cycles and Shared Nodes (LeetCode #133 Style)

Day 79: Python Deep Copy Graph – HashMap-Based Cloning for Cycles and Shared Nodes (LeetCode #133 Style)

Comments
3 min read
Day 78: Python Move Zeros to End – O(n) In-Place Two-Pointer Technique for Array Reordering (LeetCode #283 Guide)

Day 78: Python Move Zeros to End – O(n) In-Place Two-Pointer Technique for Array Reordering (LeetCode #283 Guide)

Comments
2 min read
Day 77: Python Trailing Zeros in Factorial – Genius Number Theory Trick to Count Zeros in n! Without Computing the Huge Number

Day 77: Python Trailing Zeros in Factorial – Genius Number Theory Trick to Count Zeros in n! Without Computing the Huge Number

Comments
2 min read
Day 76: Python Binary Exponentiation – O(log n) Fast Power Calculation Without Built-Ins

Day 76: Python Binary Exponentiation – O(log n) Fast Power Calculation Without Built-Ins

Comments
2 min read
Day 75: Python Counting Sort by Zeros – Stable O(n) Custom Key Sort for Digit Counts (Algo Mastery)

Day 75: Python Counting Sort by Zeros – Stable O(n) Custom Key Sort for Digit Counts (Algo Mastery)

Comments
2 min read
Day 74: Python Validate IPv4 Address – String Parsing Mastery for Perfect IP Check (No Libraries Needed)

Day 74: Python Validate IPv4 Address – String Parsing Mastery for Perfect IP Check (No Libraries Needed)

Comments 2
2 min read
Day 73: Python Longest Palindromic Substring – Expand-Around-Center O(n^2) Technique for Max Palindrome (LeetCode #5 Guide)

Day 73: Python Longest Palindromic Substring – Expand-Around-Center O(n^2) Technique for Max Palindrome (LeetCode #5 Guide)

Comments
2 min read
Day 72: Python Sliding Window Maximum - Deque O(n) Solution for Efficient Max Tracking (LeetCode #239 Guide)

Day 72: Python Sliding Window Maximum - Deque O(n) Solution for Efficient Max Tracking (LeetCode #239 Guide)

Comments
2 min read
Day 71: Python Three Sum – Two-Pointer O(n^2) Solution for Unique Zero-Sum Triplets (LeetCode #15 Vibes)

Day 71: Python Three Sum – Two-Pointer O(n^2) Solution for Unique Zero-Sum Triplets (LeetCode #15 Vibes)

Comments
3 min read
Day 70: Python Wildcard Matching – DP Solution for '?' and '*' Patterns in O(n*m) (LeetCode #44 Mastery)

Day 70: Python Wildcard Matching – DP Solution for '?' and '*' Patterns in O(n*m) (LeetCode #44 Mastery)

1
Comments
2 min read
Day 69: Python Conway's Game of Life - Simulate One Step of Cellular Automata with Neighbor Scanning Magic

Day 69: Python Conway's Game of Life - Simulate One Step of Cellular Automata with Neighbor Scanning Magic

1
Comments
3 min read
Day 68: Python Unique Paths in Grid - O(m*n) DP Solution for Robot Paths (LeetCode #62 Vibes)

Day 68: Python Unique Paths in Grid - O(m*n) DP Solution for Robot Paths (LeetCode #62 Vibes)

1
Comments
3 min read
Day 67: Python Shortest Path in Unweighted Graph - BFS Queue Magic for O(V+E) Routing Mastery (LeetCode Vibes)

Day 67: Python Shortest Path in Unweighted Graph - BFS Queue Magic for O(V+E) Routing Mastery (LeetCode Vibes)

1
Comments
3 min read
Day 66: Python Invert Binary Tree, Recursive Mirror Swap for Perfect Tree Symmetry (LeetCode #226 Style)

Day 66: Python Invert Binary Tree, Recursive Mirror Swap for Perfect Tree Symmetry (LeetCode #226 Style)

1
Comments
2 min read
Day 65: Python Breadth-First Search (BFS) on Tree, Queue-Based Level-Order Traversal for Shortest Path and Layer Exploration

Day 65: Python Breadth-First Search (BFS) on Tree, Queue-Based Level-Order Traversal for Shortest Path and Layer Exploration

1
Comments
2 min read
Day 64: Python Depth-First Search (DFS) on Tree, Stack-Based Iterative Traversal for Deep Exploration Without Recursion

Day 64: Python Depth-First Search (DFS) on Tree, Stack-Based Iterative Traversal for Deep Exploration Without Recursion

1
Comments
2 min read
Day 63: Python Merge K Sorted Lists - O(n log k) Min-Heap Guide (LeetCode #23 Vibes)

Day 63: Python Merge K Sorted Lists - O(n log k) Min-Heap Guide (LeetCode #23 Vibes)

1
Comments
3 min read
Day 62: Python Longest Subarray with Target Sum - O(n) Prefix Sum & HashMap Guide (LeetCode Vibes)

Day 62: Python Longest Subarray with Target Sum - O(n) Prefix Sum & HashMap Guide (LeetCode Vibes)

1
Comments
3 min read
Day 61: Python Queue Using Two Stacks, Amortized O(1) Unbiased FIFO with Brilliant Double-Stack Flip Trick (No Deque Cheats!)

Day 61: Python Queue Using Two Stacks, Amortized O(1) Unbiased FIFO with Brilliant Double-Stack Flip Trick (No Deque Cheats!)

7
Comments 2
3 min read
Day 60: Python Remove Nth Node From End of Linked List, Two-Pointer Magic to Delete in One Pass (LeetCode #19 Style)

Day 60: Python Remove Nth Node From End of Linked List, Two-Pointer Magic to Delete in One Pass (LeetCode #19 Style)

1
Comments
3 min read
Day 59: Python Reverse Singly Linked List, Master the Iterative Pointer Flip Technique for O(n) Reversal

Day 59: Python Reverse Singly Linked List, Master the Iterative Pointer Flip Technique for O(n) Reversal

Comments
3 min read
Day 58: Python Run-Length Encoding (RLE) – Compress Strings Like a Pro with This Ultra-Simple O(n) Trick

Day 58: Python Run-Length Encoding (RLE) – Compress Strings Like a Pro with This Ultra-Simple O(n) Trick

Comments
2 min read
Day 57: Python GCD & LCM with Euclidean Algorithm, Lightning-Fast Divisor Math That's 2000+ Years Old (And Still Unbeatable)

Day 57: Python GCD & LCM with Euclidean Algorithm, Lightning-Fast Divisor Math That's 2000+ Years Old (And Still Unbeatable)

Comments
3 min read
Day 56: Python Fibonacci nth Term – Blazing Fast O(n) Iterative Solution with O(1) Space (No Recursion!)

Day 56: Python Fibonacci nth Term – Blazing Fast O(n) Iterative Solution with O(1) Space (No Recursion!)

Comments
2 min read
Day 55: Python Calculate Mean & Median Manually – No Statistics Module, Just Pure Python Power

Day 55: Python Calculate Mean & Median Manually – No Statistics Module, Just Pure Python Power

Comments
3 min read
Day 54: Python Summary Ranges – Compress Sorted Unique Integers into Minimal "a->b" Strings Like LeetCode Pros

Day 54: Python Summary Ranges – Compress Sorted Unique Integers into Minimal "a->b" Strings Like LeetCode Pros

Comments
3 min read
Day 53: Python Count Overlapping Substrings – The Hidden Limitation of str.count() and the Perfect Sliding Window Fix

Day 53: Python Count Overlapping Substrings – The Hidden Limitation of str.count() and the Perfect Sliding Window Fix

Comments
3 min read
Day 52: Python Longest Continuous Increasing Subarray – Find the Maximum Length of Strictly Increasing Adjacent Elements in O(n)

Day 52: Python Longest Continuous Increasing Subarray – Find the Maximum Length of Strictly Increasing Adjacent Elements in O(n)

1
Comments
3 min read
Day 51: Python First Unique Character – Find the First Non-Repeating Char in String with Hash Map Magic

Day 51: Python First Unique Character – Find the First Non-Repeating Char in String with Hash Map Magic

1
Comments
2 min read
Day 50: Python Group Anagrams – The Cleanest O(n * m log m) Way to Cluster Words by Letter Signature

Day 50: Python Group Anagrams – The Cleanest O(n * m log m) Way to Cluster Words by Letter Signature

1
Comments
2 min read
Day 49: Python Playlist Shuffler – True Unbiased Random Shuffle with Fisher-Yates Algorithm

Day 49: Python Playlist Shuffler – True Unbiased Random Shuffle with Fisher-Yates Algorithm

1
Comments
3 min read
Day 48: Python Merge Two Sorted Lists - Master the Two-Pointer Technique in Pure O(n)

Day 48: Python Merge Two Sorted Lists - Master the Two-Pointer Technique in Pure O(n)

1
Comments
3 min read
Day 47: Python Rotate Array to Right by K Steps – Master the Elegant Slicing Trick in One Line

Day 47: Python Rotate Array to Right by K Steps – Master the Elegant Slicing Trick in One Line

1
Comments
3 min read
Day 46: Python Moving Average Calculator, Optimized Sliding Window for Simple Moving Average Computation

Day 46: Python Moving Average Calculator, Optimized Sliding Window for Simple Moving Average Computation

1
Comments
2 min read
Day 45: Python Majority Element Finder, Boyer-Moore Voting Algorithm for Efficient Detection in Arrays

Day 45: Python Majority Element Finder, Boyer-Moore Voting Algorithm for Efficient Detection in Arrays

1
Comments
2 min read
Day 44: Python Longest Substring Finder, Sliding Window Technique for Non-Repeating Characters Length

Day 44: Python Longest Substring Finder, Sliding Window Technique for Non-Repeating Characters Length

5
Comments
2 min read
Day 43: Python Valid Parentheses Checker, Stack-Based Bracket Validation with Mapping and Loop Scanning

Day 43: Python Valid Parentheses Checker, Stack-Based Bracket Validation with Mapping and Loop Scanning

1
Comments
2 min read
Day 42: Python Roman Numeral Converter, Bidirectional Conversion Between Roman and Integers with Mapping and Loops

Day 42: Python Roman Numeral Converter, Bidirectional Conversion Between Roman and Integers with Mapping and Loops

1
Comments
3 min read
Day 41: Python Happy Number Checker, Detect Numbers Leading to 1 Through Digit Square Sums with Cycle Detection

Day 41: Python Happy Number Checker, Detect Numbers Leading to 1 Through Digit Square Sums with Cycle Detection

1
Comments
3 min read
Day 40: Python Armstrong Numbers Finder, Detect Narcissistic Numbers in a Range with Digit Power Sum

Day 40: Python Armstrong Numbers Finder, Detect Narcissistic Numbers in a Range with Digit Power Sum

1
Comments 2
3 min read
Day 39: Python Word Counter, Count Words in Text with Whitespace Handling

Day 39: Python Word Counter, Count Words in Text with Whitespace Handling

1
Comments
2 min read
Day 38: Python Domain Extractor, Pull Unique Domains from Emails with Validation and Order Preservation

Day 38: Python Domain Extractor, Pull Unique Domains from Emails with Validation and Order Preservation

1
Comments
3 min read
Demystifying Python's if name == 'main': Easy Guide for Beginners

Demystifying Python's if name == 'main': Easy Guide for Beginners

1
Comments
3 min read
Day 37: Python Image Search, Case-Insensitive Filter for Matching Terms in Lists

Day 37: Python Image Search, Case-Insensitive Filter for Matching Terms in Lists

1
Comments
2 min read
Day 36: Python Integer Sequence Generator, Efficiently Concatenate Numbers from 1 to n with Interactive Input

Day 36: Python Integer Sequence Generator, Efficiently Concatenate Numbers from 1 to n with Interactive Input

1
Comments
5 min read
Day 35: Python Morse Code Generator, Convert English Text to Morse with Full A-Z Mapping and Interactive Input

Day 35: Python Morse Code Generator, Convert English Text to Morse with Full A-Z Mapping and Interactive Input

1
Comments
4 min read
Day 34: Python Balanced Numbers Filter, Identify Numbers with Equal Even and Odd Digits Using Modular Checks

Day 34: Python Balanced Numbers Filter, Identify Numbers with Equal Even and Odd Digits Using Modular Checks

Comments
4 min read
Building a Simple Personal Library with Python: My Experience from Zero to Execution

Building a Simple Personal Library with Python: My Experience from Zero to Execution

5
Comments 2
20 min read
Day 33: Python Sort by Vowels, Custom Sorting Fruits by Vowel Count with Keys

Day 33: Python Sort by Vowels, Custom Sorting Fruits by Vowel Count with Keys

1
Comments
3 min read
Day 32: Python Temperature Converter, Switch Between Fahrenheit and Celsius with Inputs

Day 32: Python Temperature Converter, Switch Between Fahrenheit and Celsius with Inputs

1
Comments
2 min read
Day 31: Python List Rotator, Shift Elements Right by One with Manual Indexing

Day 31: Python List Rotator, Shift Elements Right by One with Manual Indexing

1
Comments
3 min read
Day 30: Python List Merger, Combine Two Lists Manually with Loops

Day 30: Python List Merger, Combine Two Lists Manually with Loops

Comments
2 min read
Day 29: Python Strong Password Generator, Create Secure Passwords with Random and Constraints

Day 29: Python Strong Password Generator, Create Secure Passwords with Random and Constraints

1
Comments
3 min read
Day 28: Python Bubble Sort, Implement a Simple Sorting Algorithm with Nested Loops

Day 28: Python Bubble Sort, Implement a Simple Sorting Algorithm with Nested Loops

Comments
3 min read
Day 27: Python Mode Finder, Find the Most Frequent Element in a List Using Dicts

Day 27: Python Mode Finder, Find the Most Frequent Element in a List Using Dicts

Comments
2 min read
80 Days of Python Challenges: How I Turned Consistency into Progress

80 Days of Python Challenges: How I Turned Consistency into Progress

3
Comments 1
4 min read
Day 26: Python Book Sorter, Sort a Library by Page Count with Lambda Keys

Day 26: Python Book Sorter, Sort a Library by Page Count with Lambda Keys

Comments
3 min read
Day 25: Python Coin Flip Game, Simple Interactive Guessing with Random

Day 25: Python Coin Flip Game, Simple Interactive Guessing with Random

Comments 1
3 min read
Day 24: Python Countdown with Boom – Reverse Loop Printing "Boom" on Multiples of 3

Day 24: Python Countdown with Boom – Reverse Loop Printing "Boom" on Multiples of 3

Comments
3 min read
loading...