array
Second Largest Element
Given an array of integers, return the second largest element.
Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
Find the Missing Number
Given an array of integers, return the missing number.
Reverse Array
Given an array of integers, return the array in reverse order.
Remove Duplicates
Given an array of integers, return the array without any duplicates.
Peak Element
Find a peak element which is not smaller than its neighbours
Elevator Stops
Mohan lives in a building with an elevator that only stops on specific floors following a special sequence. Starting from floors 1 and 2, each subsequent stop is the sum of the previous two. Given N floors, help Mohan identify which floors he can reach with this elevator's limited stops.
linked_list
Linked List Cycle
Given a singly linked list, determine if it contains a cycle (loop). A cycle occurs when a node's next pointer points back to a previous node in the list, causing an infinite loop in traversal.