Skip to content
python hub, python-hub.com, pythonhub
  • Home
  • Basics
  • Intermediate
  • OOP
  • Advanced
  • Projects
  • Quizes
  • CTk GUI
  • About Us
  • Toggle website search
Press Escape to close the search panel.
Menu Close
  • Home
  • Basics
  • Intermediate
  • OOP
  • Advanced
  • Projects
  • Quizes
  • CTk GUI
  • About Us
  • Toggle website search

.

Let's Face DSA

13. Roman to Integer – Solution [Brute to Optimal]

Here’s the question link on Leetcode 13. Roman to Integer: https://leetcode.com/problems/roman-to-integer/description Brute Force: Handle All Subtraction CasesOptimal: Compare With the Next Character Brute Force: Handle All Subtraction Cases The straightforward…

0 Comments
November 25, 2026
Let's Face DSA

Longest Repeating Subsequence – Solution [Recursion to DP]

Here’s the question link on GFG: Longest Repeating Subsequence: https://www.geeksforgeeks.org/problems/longest-repeating-subsequence2004/1 Brute Force: RecursionOptimal: Dynamic Programming (LCS) — O(n²)Step 1: Create a DP tableStep 2: Fill the DP table Brute Force:…

0 Comments
November 24, 2026
Let's Face DSA

567. Permutation in String – Solution [Brute-Force to Best]

Here’s the question link on LeetCode 567. Permutation in String:- https://leetcode.com/problems/permutation-in-string/description Brute Force: Generate and Check Every SubstringOptimal: Sliding Window + Frequency ArrayHow does the window work? Brute Force: Generate…

0 Comments
November 23, 2026
Let's Face DSA

796. Rotate String – Solution [Brute-Force to Best]

Here’s the question link on LeetCode 796. Rotate String:- https://leetcode.com/problems/rotate-string/description Optimal: Simulate Every Rotation Optimal: Simulate Every Rotation We can simply try every possible rotation of the string and check…

0 Comments
November 22, 2026
Let's Face DSA

8. String to Integer (atoi) – Solution [Brute-Force to Best]

8. String to Integer (atoi) 8. String to Integer (atoi) 8. String to Integer (atoi) 8. String to Integer (atoi) Here’s the question link on LeetCode 8. String to Integer…

0 Comments
November 21, 2026
  • Go to the previous page
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 64
  • Go to the next page
Press Escape to close the search panel.

Categories

Recent Posts

  • 1347. Minimum Number of Steps to Make Two Strings Anagram – Solution [Brute-Force to Best]
  • 38. Count and Say – Solution [Brute-Force to Best]
  • 242. Valid Anagram – Solution [Brute-Force to Best]
  • 459. Repeated Substring Pattern – Solution [Brute-Force to Best]
  • Home – python-hub
  • Contact Us
  • Privacy Policy
  • About Us
  • Projects
  • Basics
  • Quick Ref
  • CTk
  • Intermediate
  • Python GUI
  • OOP
  • Quizes
  • Advanced
  • Challenges
  • CodeCraft
  • Flutter
  • Tech Tool Spotlight
Copyright © - python-hub.com All Rights Reserved