Array blogs and articles
An array is a linear data structure that stores multiple elements of the same type in contiguous memory locations. It allows fast access using index positions, making operations like retrieval efficient. Arrays are widely used for organizing data, implementing algorithms and building other data structures. However, their size is fixed, making resizing difficult compared to dynamic collections.
Array blogs
Longest Playlist With No Repeated Songs : Brute Force to Optimal
Find the longest playlist with no repeated songs using brute force, HashSet, and HashMap sliding window techniques, with Java code and dry runs.
BlogRead blogAmerican Express (AMEX) Online Assessment Experience (2026) | 3 Coding Questions
Read my American Express Online Assessment 2026 experience with 3 coding questions, C# solutions, approaches, difficulty analysis and preparation tips.
BlogRead blogMaximum Productivity After Employee Rearrangement | Dynamic Programming Assignment Problem
Maximize team productivity after employee rearrangement using Dynamic Programming. Learn the key observation, DP state design, transitions, and O(N²) solution.
BlogRead blogMinimum Cost to Sort an Array by Sorting Subarrays
Minimum Cost to Sort Array problem explained with brute force, optimal approach, chunks, DSA intuition, Java/C++/Python/C# solutions.
BlogRead blogFind the repeating and missing numbers
Find the repeating and missing numbers in an array from 1..n using brute force, hashmap, math and XOR, step-by-step explained with real-world use cases.
BlogRead blog4 Sum | Find Quads that add up to a target value
BlogRead blogIntersection of Two Sorted Arrays
BlogRead blogSort an Array of 0s and 1s
BlogRead blogMove all Zeros to the end of the array
BlogRead blogRemove Duplicates from Sorted Array (In-Place)
BlogRead blog
Array articles
Sliding Window Algorithm : Beginners to Advanced Engineers
Sliding Window Algorithm, What is the Sliding Window Approach?, Why Use Sliding Window? Where to Use Sliding Window, How Sliding Window Works with Examples
ArticleRead articleWhat is Two Pointer Approach?
The two-pointer technique is a foundational pattern for solving array, string, and linked-list problems in linear (or near-linear) time with constant extra space
ArticleRead article2 Sum - Pair Sum Closest to 0
2 Sum - Pair Sum Closest to 0 , Sum of two elements whose sum is closest to zero , array DSA problem, coding problem , DSA coding problem , DSA interview coding problem
ArticleRead article2 Sum – Count Pairs with given Sum in Sorted Array
2 Sum – Count Pairs with given Sum in Sorted Array, two sum , Count pairs with given sum , 2 sum problem , array DSA problem, coding problem , DSA interview coding problem
ArticleRead article2 Sum Count pairs with given sum
2 Sum – Count pairs with given sum, two sum , Count pairs with given sum , 2 sum problem , array DSA problem, coding problem , DSA interview coding problem
ArticleRead articleTwo Sum - Pair with given Sum
Two Sum – Pair with given Sum , 2 sum problem , array DSA problem, coding problem , DSA coding problem , DSA interview coding problem
ArticleRead articleContainer With Most Water
Container With Most Water | You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]). Find two lines that together with the x-axis form a container such that the container contains the most water.
ArticleRead articleMaximum Product of Three Numbers
Maximum product of a triplet (subsequence of size 3) in array | Maximum Product of Three Numbers | Given an integer array arr, find three numbers whose product is maximum and return the maximum product.
ArticleRead article3 Sum : Find triplets that add up to a target value
3 Sum : Find triplets that add up to a target value, 3 sum problem , Triplet Sum in Array , Given an integer array nums, return all the triplets that add up to a target value
ArticleRead articleMaximum Product Subarray
Maximum Product Subarray, Find Maximum Product Subarray in an Array, Given an integer array arr, find a subarray that has the largest product,
ArticleRead article
Array: frequently asked questions
Quick answers about learning Array on DevBrainiac.
What is Array?
An array is a linear data structure that stores multiple elements of the same type in contiguous memory locations. It allows fast access using index positions, making operations like retrieval efficient. Arrays are widely used for organizing data, implementing algorithms and building other data structures. However, their size is fixed, making resizing difficult compared to dynamic collections.
Where can I learn Array on DevBrainiac?
DevBrainiac has 20 articles and 10 blogs about Array. A good place to start is "Sliding Window Algorithm : Beginners to Advanced Engineers" and "What is Two Pointer Approach?".
Where can I ask Array questions?
Ask your Array question in the DevBrainiac Q&A community, where developers answer each other's questions.
What other topics can I learn on DevBrainiac?
Popular topics on DevBrainiac include Method, Distributed System, Interview Preparation Tips, Technical Interview and Interview Experience.
Popular topics
- MethodA method is a block of code that performs a task.Explore Method
- Distributed SystemA distributed system is a network of independent computers that work together to achieve a common goal. These systems share resources, process tasks in parallel and ensure fault tolerance. Used in cloud computing, databases and large-scale applications. They improve scalability, reliability and performance by distributing workloads across multiple nodes efficiently.Explore Distributed System
- Interview Preparation TipsInterview preparation tips focus on researching the company, understanding the job role, practicing common HR and technical questions, refining communication skills and presenting yourself confidently to make a strong and professional impression during the interview.Explore Interview Preparation Tips
- Technical InterviewTechnical Interview is a structured assessment where employers evaluate a candidate’s technical skills, problem-solving ability and practical knowledge related to a specific role. It typically includes coding challenges, system design questions, debugging tasks and discussions about past projects. The goal of a technical interview is to measure how effectively a candidate can apply their technical expertise to solve real-world problems.Explore Technical Interview
- Interview ExperienceAn interview experience is a detailed account of the interview process for a specific role, covering rounds, questions asked, difficulty level, preparation tips and personal insights to help future candidates understand what to expect and how to prepare effectively.Explore Interview Experience
- InterviewA structured conversation where one participant asks questions and the other provides answers of those questions.Explore Interview
- Application DesignApplication design is the process of planning and structuring an application’s architecture, user interface, data flow and functionality to meet user and business requirements. It involves decisions on technology stack, design patterns, scalability and security. Good application design ensures performance, maintainability and a seamless user experience across platforms and devices.Explore Application Design
- Coding ProblemsCoding problems are exercises designed to test a programmer’s ability to write logic, solve challenges and apply algorithms or data structures. They help improve problem-solving skills, logical thinking and coding efficiency. Common in interviews and competitive programming, coding problems range from simple tasks to complex algorithmic challenges, preparing developers for real-world software development scenarios.Explore Coding Problems
- DatabaseA database is an organized collection of data. It is the collection of schemas, tables, queries, reports, views, and other objects. The data are typically organized to model aspects of reality in a way that supports processes requiring information. Use this tag if you have questions about designing a database.Explore Database
- Interview PreparationInterview Preparation is the process of getting ready to perform confidently and effectively in a job interview. It includes researching the company, understanding the job role, practicing common interview questions, improving communication skills and reviewing technical or domain knowledge. Proper interview preparation increases confidence, reduces anxiety, and improves your chances of securing the job.Explore Interview Preparation
Keep practising Array
Test yourself with a quiz, run code in the online compiler or ask the community.