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.

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

Challenge: Reverse a singly 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