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.

Given two strings, determine if they are anagrams of each other. Additionally, find the minimum number of character dele...

string anagram frequency-counting hash-map
80 points Solve Problem

Encrypt a string using a dynamic Caesar cipher where each character is shifted by its position index (0-based). For exam...

string caesar-cipher encryption modular-arithmetic

Given two strings, find the longest common subsequence (LCS). A subsequence is derived by deleting some characters witho...

dynamic-programming lcs subsequence string-matching

Generate the first N square-free numbers. A square-free number is a positive integer that is not divisible by any perfec...

number-theory prime-factorization sieve math

Given a positive integer, determine if it is a factorial of some integer. If yes, return that integer; if no, return -1....

math factorial number-theory division

Starting from a given number, repeatedly multiply all its digits until you get a single-digit result. Count how many mul...

math digit-manipulation simulation iteration

Given an array of positive integers, count the number of triples (i, j, k) where i < j < k and A[i] × A[j] = A[k]. These...

array triple-counting multiplication nested-loops

Find the sum of all positive integers ≤ N whose binary representation (without leading zeros) is a palindrome. A palindr...

binary palindrome bit-manipulation number-conversion

Simulate a text editor that supports three operations: TYPE (add text), UNDO (reverse last operation), and REDO (restore...

stack simulation undo-redo data-structures

Given a circular queue and a sequence of target elements, find the minimum number of rotations needed to bring each targ...

queue circular-array rotation optimization
Showing 41 to 50 of 100 results
Feedback