Python Counter: Learn the Easiest Way of Counting Objects in Python

Learn the Easiest Way of Counting Objects in Python. I will try to explain how to use Counter class with easy to understand examples for beginners. Counter takes an iterable (such as a string, a list, or a dict object) and gives the object counts as long as the objects are hashable.

JavaScript Algorithms: Number of Islands (LeetCode)

JavaScript Algorithms: Number of Islands. Given an m x n 2d grid map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.

Using Queues in Python

Helps new Python programmers know how to use the queue data structure

Binary Search Tree Traversal (in-order, pre-order and post-order) in Go

A binary tree is a data structure where every node has at most two child nodes. Below is a sample binary tree. The top most node is the…

Data Structures And Algorithms - Basic Concepts of Algorithmic Analysis

In this video I am going to provide an Introduction to Algorithm Complexity Analysis (Time and Space Complexity). We will see Examples of Basic Operations, Average, Best, and Worst Cases.

Python NamedTuples: How They Help You to Write Readable Code

With easy to follow examples for beginners .Python NamedTuples: How They Help You to Write Readable Code

Stacks in Python

An introductory article to introduce new Python lovers to the Stack Data Structure

A Template Tree Class in C++

A Template Tree Class in C++, In C++ you can create a templated class for generic trees that work with arbitrary data types. Trees are a common data structure in computer science, but there is no tree container in the C++ standard library.

Introduction to Priority Queues in JavaScript

In this JavaScript Data Structure tutorial, we will be taking a look at priority queues and building one using JavaScript. A priority queue is an abstract data type similar to a regular queue or stack data structure in which each element additionally has a “priority” associated with it. What does this mean? Basically, each element in a data structure will have a priority set to it, and the element with the highest priority is served first.

How To Create A Binary Heap In JavaScript

Part 7 of the Data Structure series with JavaScript .How To Create A Binary Heap In JavaScript

How to Solve Two-Sum Algorithm in JavaScript

Two-Sum Algorithm is sort of a classic data structure challenge. Learn how to solve two-sum algorithm in JavaScript. I’d like to share two approaches to solving it: A so-called “brute force” method, and the second one represents a more elegant solution

Tree Traversal with JavaScript

In this Data Structures with JavaScript tutorial, we will be introduced to tree traversal. Tree traversal is visiting every node once in a tree. Compared to a list, array, stack, or queue where there is only one linear path to visit all nodes, a tree does not have a specific order in which you can accomplish this.

How to Check for Palindromes in JavaScript

Learn how to check for Palindromes in JavaScript. Solving a Palindrome algorithm is one of the most common data structure tasks during a technical interview. In this blog, I’m going to break down one of those algorithms and share with you my method of solving it. It might be not the smartest and the most efficient way, so feel free to come up with any other!

Binary Search Trees with JavaScript

In this Data Structure with JavaScript tutorial, we will be introduced to Binary Search Trees with JavaScript. Trees, Binary Trees, and Binary Search Trees. A tree is a data structure that consists of nodes with a parent and child relationship. Every tree can have only one root node (which is the uppermost node). Each node can have any number of child nodes. Keep in mind however that each node can only have one parent node (except for the root node which will not have a parent node).

A Better Way to Understand Heap Data Structure

We introduce a new way to understand Heap with its shift up and shift down functions. A heap is represented by an array. A heap has its basic operations like add(), delete(), size() etc.

JavaScript Algorithms: Find All Duplicates in an Array

JavaScript Algorithms: Find All Duplicates in an Array. Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.

Beginner’s Guide to the Linked List Data Structure in Node.js

Before you learn about the why, how, and when to use a linked list data structure for your project it is crucial to conceptualize how a linked list works. Beginner’s Guide to the Linked List Data Structure in Nodejs

Implement Merge Sort Algorithm in JavaScript.

Merge sort is one of the efficient sorting algorithm that applies the principle or uses divide and conquer pattern.

5 Sorting Algorithms Every Programmer Should Know

5 Sorting Algorithms Every Programmer Should Know: Insertion Sort, Selection Sort, Bubble Sort, Merge Sort and Quick Sort. A sorting algorithm is used to rearrange a given array or list of elements as per the comparison operator on the element. Mainly there are five basic algorithms used and you can derive multiple algorithms using these basic algorithms. Each of these algorithms has some pros and cons and can be chosen effectively depending on the size of data to be handled.

The Many Ways to Traverse a Tree

The Many Ways to Traverse a Tree. I’m writing an introductory article to explore the different ways to traverse trees, and covering a few different types.