Coding Problems
Solve coding problems with our interactive code editor. Write code, run tests, and submit solutions with real test case evaluation.
Filter by Company
Showing 40 problems
Write a program to count vowels and consonants in a string.
Write a program to find the missing number in an array of size n-1 containing numbers from 1 to n.
Write a program to check if a string is a palindrome (ignoring spaces, punctuation, and case).
Write a program to check whether a string is a palindrome.
Find the sum of even numbers in an array.
Check whether a number is prime.
Write a program to reverse a given string.
Write a program to find the factorial of a given number.
Write a program to count the number of vowels in a given string.
Find the factorial of a number using recursion.
Write a program to count the number of vowels and consonants in a given string.
Write a program to check if a number is prime.
Write a program to print a pyramid pattern of stars with n rows.
Write a program to reverse a string without using built-in functions.
Check if a given string is a palindrome.
Print the Fibonacci series up to N terms.
Count the frequency of each character in a string.
Check if a number is prime.
Find the sum of all elements in an array.
Find the missing number in an array containing n-1 integers from 1 to n.
Print a pyramid pattern of stars with N rows.
Write a program to print the Fibonacci series up to N terms.
Reverse a string without using a built-in reverse function.
Find the largest element in an array.
Write a program to check if a given number is prime.
Write a program to check if a given string is a palindrome.
Write a program to calculate the factorial of a number N.
Write a program to find the sum of digits of a given number.
Move all zeroes in an array to the end while maintaining the order of non-zero elements.
Write a program to find all pairs in an integer array whose sum equals a given target value.
Write a program to merge two sorted arrays into a single sorted array.
Write a program to find the second largest number in an array.
Check whether two strings are anagrams of each other.
Write a program to reverse an array without using extra space.
Write a recursive function to compute the nth Fibonacci number.
Write a program to find the first non-repeating character in a string.
Write a program to merge two sorted arrays into one sorted array.
Find the second largest element in an array.
Find if two strings are anagrams of each other.
Remove duplicate characters from a string.