Are you preparing for Wipro Elite NTH 2025? The Wipro Elite National Talent Hunt is one of the most sought-after recruitment drives, and excelling in the coding section is crucial for securing your spot. To assist you, we’ve compiled a list of Wipro coding questions from previous years, along with solutions to enhance your preparation.
The Wipro Elite NTH coding test consists of two coding questions to be solved within 60 minutes. You can code in C, C++, Java, or Python. The questions typically test:
Josh needs exactly N apples. He has two purchase options:
Josh can only buy full lots. Determine the minimum cost to purchase N apples.
19
3 10
4 15
65
Sort an array of N integers using the Bubble Sort algorithm.
6
11 15 26 38 9 10
9 10 11 15 26 38
Given N numbers, rearrange them so that all even numbers appear before odd numbers.
8
10 98 3 33 12 22 21 11
10 98 12 22 3 33 21 11
Given a binary string (0s and 1s), find the longest consecutive sequence of either 1s or 0s, excluding the start and end.
6
101000
1
Find the minimum time required for the minute value of a given 24-hour time format (HH:MM) to become a palindrome.
05:39
11
Given an N x N matrix, print its elements in spiral order.
3
1 2 3
4 5 6
7 8 9
1 2 3 6 9 8 7 4 5
You are given a string containing multiple words separated by spaces. Your task is to reverse the words while keeping the order of characters in each word unchanged.
Hello World from Wipro
Wipro from World Hello
To solve this, split the string into words, reverse their order, and join them back.
Given a string, find the first non-repeating character and print it. If all characters are repeating, print -1
.
-1
if none exists.swiss
w
Use a hash map to count occurrences and find the first character appearing only once.
Given a string S, count the frequency of each character and print them in the order they appear.
apple
a:1 p:2 l:1 e:1
Iterate through the string and maintain a dictionary to store and print frequencies.
Given an array of N-1 integers from 1 to N (one number is missing), find the missing number.
5
1 2 3 5
4
Use the formula for the sum of the first N natural numbers and subtract the given sum.
Given an N × N matrix, find the sum of its diagonals.
3
1 2 3
4 5 6
7 8 9
25
Sum up elements where row index equals column index and reverse diagonals.
These Wipro coding questions give you an insight into the type of problems that may appear in the Wipro Elite NTH coding round. Mastering these problems will significantly improve your chances of success. If you need more such questions to practice, where we offer access to a vast collection of placement-specific coding problems.