Infosys Coding Problems
Practice Infosys coding problems with our interactive code editor. Write, run, and submit solutions.
Showing 10 problems
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 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