Skip to content

Arrays

Members Public

Array Length vs. Capacity

Array capacity is how many items an array can hold, and array length is how many items an array currently has.

Members Public

How To Search For An Element In An Array?

In this lesson, you will learn two popular searching algorithms developers use all the time to search for an element in an array.

Members Public

Array In-Place Algorithm: Reverse Array

In this lesson, you will learn how to modify the input array to save some space.

Members Public

What Are Dynamic Arrays? How Do They Differ From Traditional Arrays?

This article is a continuation of the "Introduction to array data structure" and contains sketches, memory diagrams, strengths and weaknesses with examples.

Members Public

How To Convert Array To Dynamic Array?

In this lesson, you will learn how to resize a static array. Most of the advanced and complex data structures are built on arrays.

Members Public

Introduction To Array Data Structure

This article is an introductory lesson on array data structure with sketches, memory diagrams, strengths, and weaknesses with examples.

Introduction To Array Data Structure
Members Public

How To Construct An Array-Like Data Structure?

You will learn to implement a custom array-like data structure and basic array operations.

Implement An Array-Like Data Structure
Members Public

Array Deletions and Shifting Algorithms

In this lesson, you will learn about an array of deletion and shifting algorithms with illustrations and code examples.

Members Public

Two Sum Problem (Solutions in Java, JS, and TS)

In this two-sum problem, we use various approaches to solve the problem from brute force to an optimized approach. We also discuss the take-offs and talk about complexity analysis.

Members Public

Solution Review: Missing Number

We solved the problem using lookup (hashtable), using the mathematical formula. Let's solve this more efficiently using bit-level operations with XOR and then optimize the solution.