Articles in this series
๐ฒ Data Structure Overview What is ADT? ADT stands for Abstract Data Type. It is a mathematical model that defines the shape of a data structure and...
04/14/23 ยท Contains Duplicate var containsDuplicate = function(nums) { let originalLen = nums.length; let newNumsLen = [...new...
Blind 75 Array 2 ยท 121. Best Time to Buy and Sell Stock My Solution Firstly, I used the two-pointer approach again. (Maybe I got obsessed with this...
Blind 75 Array 1 ยท Leetcode 1. Two Sum Problem My Answer var twoSum = function(nums, target) { let [start_pntr, end_pntr, maxIdx] = [0, 1,...
Hash Table ADT Data Structure Mapping keys with values Most of the operations are O(1) => good performance Hash function Mapping the...
Stack class Node: def __init__(self, item, next): self.item = item self.next = next class Stack: def __init__(self): ...