Coding Problems

Practice algorithmic problems and improve your coding skills

Guest Access: You can view 1 problem. Register to solve problems and track your progress.

Find the minimum number of single-character edit operations (insert, delete, or replace) required to transform one strin...

dynamic-programming string edit-distance levenshtein
150 points Solve Problem

Count the number of islands in a binary matrix where 1 represents land and 0 represents water. Unlike the classic versio...

dfs bfs graph matrix 8-directional

Given a list of words sorted according to an alien language, determine the order of characters in that alien alphabet. T...

topological-sort graph dfs alien-language

Find the smallest substring that contains all unique characters present in the input string. This is a variation of the...

string sliding-window hash-map two-pointers

In a grid representing a city, 0 represents humans and 1 represents zombies. Each hour, zombies infect all adjacent huma...

bfs graph matrix multi-source

Generate the nth term of the "look-and-say" sequence. The sequence starts with "1" and each subsequent term describes th...

string simulation pattern iteration

Given an array of stock prices, find the maximum profit you can achieve by buying and selling stocks multiple times. Aft...

dynamic-programming array state-machine

Given a string, determine if its characters can be rearranged to form a palindrome. A palindrome reads the same forwards...

string hash-map palindrome frequency

Given a string containing some letters of the English alphabet, find all the missing letters from the complete alphabet...

string set alphabet

Given a string, sort its characters by their frequency in descending order (most frequent first). If two characters have...

string frequency sorting hash-map
Showing 61 to 70 of 100 results
Feedback