array

Second Largest Element

Given an array of integers, return the second largest element.

1
0
Share

Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

5
0
Share

Find the Missing Number

Given an array of integers, return the missing number.

0
1
Share

Reverse Array

Given an array of integers, return the array in reverse order.

0
0
Share

Remove Duplicates

Given an array of integers, return the array without any duplicates.

0
0
Share

Peak Element

Find a peak element which is not smaller than its neighbours

1
0
Share

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.

0
0
Share

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.

0
0
Share