Algorithms – Easy

Easy level algorithm and data structure challenges.

Contains Duplicate
Challenge: Given an array of integers, find if the array contains any duplicates.
Topics Covered: Array, Hash Table

Intersection of Two Arrays
Challenge: Given two arrays, write a function to compute their intersection.
Topics Covered: Arrays, Sort

Maximum Depth of Binary Tree
Challenge: Given a binary tree, find its maximum depth.
Topics Covered: Tree, Depth First Search

Merge Two Sorted Lists
Challenge: Merge two sorted linked lists and return it as a new sorted list. The new list should be made by splicing together the nodes of the first two lists.
Topics Covered: Linked List

Missing Number
Challenge: Given an array containing n distinct numbers taken from 0, 1, 2, …, n, find the one that is missing from the array.
Topics Covered: Array, Math

Reverse Linked List
Challenge: Reverse a singly linked list.
Topics Covered: Linked List

Valid Anagram
Challenge: Given two strings s and , write a function to determine if t is an anagram of s.
Topics Covered: Hash Table, Sort