Data Structures and Algorithms
-
Quicksort algorithm – Lomuto partition scheme
There are a multifarious number of sorting algorithms have been proposed and being used nowadays. Perhaps you’re already familiar with some sorting algorithms such as Bubble Sort, Selection Sort, or […]
-
905. Sort Array By Parity – In-place Solution | LeetCode Problem
Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may return any answer array that satisfies […]
-
Understand Tree Traversal: Pre-order, In-order, and Post-order Traversal
Many of you probably have familiar with arrays or linked-lists, we know that in those data structures, elements can be traversed linearly. But what about the binary tree? As we […]
-
Binary Search Tree (BST) Concrete Implementation In Java
Binary Search Tree is a fundamental data structure that stores items in the memory. In this article, we will learn what is a binary search tree (BST for short) and […]
-
Reverse Linked List (LeetCode) – Iterative and recursive implementation
Happy new year, everyone! On the very first day of 2020, let’s jump to a problem that has been asked all the time during the interview – Reverse A Linked […]
-
Top 150 best practice LeetCode’s problems sorted by difficulties
If you want to sharpen your problem-solving and coding skills, indeed Leetcode is one of the best places that helps you do that. This platform helps programmers solidify their skills […]
-
The Algorithm Design Manual – 2nd Edition (free download)
Besides Introduction to Algorithms, The Algorithm Design Manual is another great book in the Competitive Programming community. The Algorithm Design Manual provides straightforward access to combinatorial algorithms technology, stressing design over-analysis. This […]
-
A Quick Introduction of the Top Data Structures for Your Programming Career & Next Coding Interview
Niklaus Wirth, a Swiss computer scientist, wrote a book in 1976 titled Algorithms + Data Structures = Programs. 40+ years later, that equation still holds true. That’s why software engineering candidates […]
-
What is Graph and its representation
Graph Description In this article, we will learn about what is a Graph and also its representation in computer science. After reading this article, you’ll be able to understand what […]