Feb 19 · 7 min read · Day 16 into my DSA journey, and today was the first day I sat with Hash Tables. I didn't finish it feeling confident. Every topic before this — linked lists, stacks, queues, BST — had one thing in common. Nodes. I could draw them. I could visualize t...
Join discussion
Feb 13 · 1 min read · https://leetcode.com/problems/two-sum/description/ Core Idea While iterating: For each number n Calculate diff = target - n If diff already seen → answer found Else store current number in dictionary Code class Solution(object): def twoSu...
Join discussionDec 29, 2025 · 4 min read · Using the Two Sum exercise from LeetCode we can study how a problem can be solved with less complexity. The description of the problem is very simple: Given an array of integers nums and an integer target, return indices of the two numbers such that...
Join discussionOct 22, 2025 · 7 min read · 1. Hashing: The Core Concept Hashing is a technique used to convert a large key into a small integer value that serves as an index in an array. This array is called a Hash Table. The primary goal is to achieve near-O(1) (constant time) complexity for...
Join discussionAug 20, 2025 · 1 min read · 🧠 Problem Roman to Integer Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, 2 is written as II in Roman numeral, just two one's added together. 12 is written as XII, which is simply X + II. The numb...
Join discussionAug 20, 2025 · 1 min read · 🧠 Problem Integer to Roman Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, 2 is written as II in Roman numeral, just two one's added together. 12 is written as XII, which is simply X + II. The numb...
Join discussionAug 1, 2025 · 1 min read · 🧠 Problem Longest Substring Without Repeating Characters $('TopicExtraction').first().json.dataforblog['Question Text'] 🏷️ Tags hash table, string, sliding window 📊 Difficulty Medium ✅ Success Rate: 33%📥 Submissions: 9,621,884📈 Accepted: 3,175,...
Join discussionAug 1, 2025 · 1 min read · 🧠 Problem Longest Substring Without Repeating Characters 🏷️ Tags hash table, string, sliding window 📊 Difficulty Medium ✅ Success Rate: 33%📥 Submissions: 9,621,884📈 Accepted: 3,175,843 ❤️ Reactions 👍 Likes: 22941👎 Dislikes: 1027 💡 Hints ...
Join discussion