TARGETROOT
ToolsBlogPracticeInterview
  1. Home
  2. /Coding Problems

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

TCS (12)Infosys (10)Wipro (8)Accenture (6)Cognizant (6)

Showing 40 problems

Write a program to count vowels and consonants in a string.

General Coding Problems|
accenture
Easy

Write a program to find the missing number in an array of size n-1 containing numbers from 1 to n.

General Coding Problems|
accenture
Easy

Write a program to check if a string is a palindrome (ignoring spaces, punctuation, and case).

General Coding Problems|
accenture
Easy

Write a program to check whether a string is a palindrome.

General Coding Problems|
cognizant
Easy

Find the sum of even numbers in an array.

General Coding Problems|
cognizant
Easy

Check whether a number is prime.

General Coding Problems|
cognizant
Easy

Write a program to reverse a given string.

General Coding Problems|
cognizant
Easy

Write a program to find the factorial of a given number.

General Coding Problems|
cognizant
Easy

Write a program to count the number of vowels in a given string.

General Coding Problems|
cognizant
Easy

Find the factorial of a number using recursion.

General Coding Problems|
infosystcs
Easy

Write a program to count the number of vowels and consonants in a given string.

General Coding Problems|
infosys
Easy

Write a program to check if a number is prime.

General Coding Problems|
infosys
Easy

Write a program to print a pyramid pattern of stars with n rows.

General Coding Problems|
infosyswipro
Easy

Write a program to reverse a string without using built-in functions.

General Coding Problems|
tcs
Easy

Check if a given string is a palindrome.

General Coding Problems|
tcs
Easy

Print the Fibonacci series up to N terms.

General Coding Problems|
tcs
Easy

Count the frequency of each character in a string.

General Coding Problems|
tcs
Easy

Check if a number is prime.

General Coding Problems|
tcs
Easy

Find the sum of all elements in an array.

General Coding Problems|
tcs
Easy

Find the missing number in an array containing n-1 integers from 1 to n.

General Coding Problems|
tcs
Easy

Print a pyramid pattern of stars with N rows.

General Coding Problems|
tcs
Easy

Write a program to print the Fibonacci series up to N terms.

General Coding Problems|
wipro
Easy

Reverse a string without using a built-in reverse function.

General Coding Problems|
wipro
Easy

Find the largest element in an array.

General Coding Problems|
wipro
Easy

Write a program to check if a given number is prime.

General Coding Problems|
wipro
Easy

Write a program to check if a given string is a palindrome.

General Coding Problems|
wipro
Easy

Write a program to calculate the factorial of a number N.

General Coding Problems|
wipro
Easy

Write a program to find the sum of digits of a given number.

General Coding Problems|
wipro
Easy

Move all zeroes in an array to the end while maintaining the order of non-zero elements.

General Coding Problems|
accenture
Medium

Write a program to find all pairs in an integer array whose sum equals a given target value.

General Coding Problems|
accenture
Medium

Write a program to merge two sorted arrays into a single sorted array.

General Coding Problems|
accenture
Medium

Write a program to find the second largest number in an array.

General Coding Problems|
infosys
Medium

Check whether two strings are anagrams of each other.

General Coding Problems|
infosys
Medium

Write a program to reverse an array without using extra space.

General Coding Problems|
infosys
Medium

Write a recursive function to compute the nth Fibonacci number.

General Coding Problems|
infosys
Medium

Write a program to find the first non-repeating character in a string.

General Coding Problems|
infosys
Medium

Write a program to merge two sorted arrays into one sorted array.

General Coding Problems|
infosys
Medium

Find the second largest element in an array.

General Coding Problems|
tcs
Medium

Find if two strings are anagrams of each other.

General Coding Problems|
tcs
Medium

Remove duplicate characters from a string.

General Coding Problems|
tcs
Medium
TARGETROOT

Learning and practice platform built for focused growth. Start lean with tools, blog content, interview prep, and JSON-driven tests.

Platform

  • Tools
  • Blog
  • Practice
  • Interview

Learn

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service

Quick Access

  • JSON Formatter
  • Image Compressor
  • JSON to XLSX
  • QR Code Generator

© 2026 TARGETROOT. All rights reserved.

Made for focused learners worldwide