SprintCode.pro

Algorithmic problem preparation

Super

Algorithmic problems

💪 Prepare for technical interviews by solving practical problems 🚀

Difficulty
Task lists
Categories

Contains Duplicate

Arrays & Hashing
Easy

Find if the array contains any duplicates. The function should return true if any value appears at least twice, and false if every element is distinct.

#Arrays#Hash Tables
Fundamental AlgorithmsStartups & FintechUniversal Set
15 min

Valid Anagram

Arrays & Hashing
Easy

Determine if string t is an anagram of string s. An anagram is a word formed by rearranging the letters of another word.

#Strings#Sorting#Hash Tables
Fundamental AlgorithmsStandard InterviewsUniversal Set
15 min

Two Sum

Arrays & Hashing
Easy

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.

#Arrays#Hash Tables#Two Pointers
Fundamental AlgorithmsStandard InterviewsProduct CompaniesUniversal Set
15 min

Group Anagrams

Arrays & Hashing
Medium

Given an array of strings strs, group all anagrams together in sub-lists. An anagram is a string that contains the same characters as another string, but in a different order.

#Arrays#Hash Tables
Standard InterviewsProduct CompaniesIntensive Preparation
20 min

Top K Frequent Elements

Arrays & Hashing
Medium

Given an integer array nums and an integer k, return the k most frequent elements. The order of elements in the answer does not matter.

#Arrays#Hash Tables
Product CompaniesModern ProblemsIntensive Preparation
20 min

Product of Array Except Self

Arrays & Hashing
Medium

Given an array nums, return an array output where output[i] is equal to the product of all elements of nums except nums[i].

#Arrays
Algorithmic ContestsIntensive PreparationModern Problems
30 min

Longest Consecutive Sequence

Arrays & Hashing
Medium

Find the length of the longest consecutive sequence of numbers in the array. A consecutive sequence is a sequence where each element is 1 greater than the previous.

#Arrays#Hash Tables#Sorting
Algorithmic ContestsProduct CompaniesIntensive Preparation
30 min

Valid Palindrome

Two Pointers
Easy

Determine if a string is a palindrome, considering only alphanumeric characters and ignoring case.

#Strings#Two Pointers
Fundamental AlgorithmsStartups & FintechUniversal Set
15 min

3Sum

Two Pointers
Medium

Find all unique triplets in the array that sum to zero. The function should return an array of triplets where each triplet contains three distinct elements that sum to zero.

#Arrays#Sorting#Two Pointers
Algorithmic ContestsProduct CompaniesIntensive PreparationModern Problems
30 min