January 20, 202488. Merge Sorted ArrayLeetcode 88 Merge two sorted array solution with Python 3 —Description You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the…1 min read
December 24, 2023Singly Linked List with PythonImplement Singly Linked List with Python —What is Singly Linked List? A singly linked list is a linear data structure in which the elements are not stored in contiguous memory…3 min read
November 29, 2023Linked Lists vs. ArraysLet's put the two data structures against each other to find out which is more efficient. —Linked List vs. Arrays Memory Allocation Arrays: takes all space even if it doesn't contain any element yet Linked List: only takes the…1 min read
September 26, 2023Data Structures & Algorithms I ArraysAll basic Array data structures —Arrays Arrays are the simplest data structures that uses to store a list of items. Lookup by index: O(1) Lookup by value: O(n) Insert: O(n…1 min read