WIPRO Latest Coding Questions with Solutions : 2023

Elite National Talent Hunt : Here Previously Asked Coding Questions Wipro  2023:

About Wipro :

WIPRO stands for Western India Products. It is a private limited multinational IT consulting and system integration Service Company headquartered in Bangalore India.Here we discuss some wipro coding Questions only for reference

Elite National Talent Hunt 2023 (NTH) is our freshers hiring program to attract the best of 2023 engineering graduates across the country. We’re enabling equal employment opportunities for India’s deserving engineering talent and are looking for you! Are you an enthusiastic engineering student? Don’t miss this opportunity to start your exciting journey with Wipro Here we can discuss Wipro coding Questions .

Candidates who had completed the B.E/ B.Tech/ M.E/ M.Tech/ MCA/ B.Sc/ BCA/ Any Degree can apply.

Here in this blog we can discuss some: Wipro Coding questions with Answers,wipro coding questions 2023,Wipro Online Assessment Test 2021/22/23,wipro coding questions in java,AMCAT Coding Questions for Wipro,wipro-milestone 2 coding questions ,Wipro milestones,Wipro coding question 2022 2021 2020, Wirpo coding Question with solution in java
wipro coding questions What is the exam pattern of Wipro? Do Wipro coding questions repeat?.


About Hiring Process : 

For BE/B-tech fresher there will be National Talent Hunt (NTH)

The first round of Wipro NTH is a Written-test that consists of 3 sections.

  1. Aptitude: Quantitative, Verbal, Logical
  2. Coding round that consists of 2 coding questions, you have to solve them in 45 minutes.
  3. Essay writing which is of 20 minutes.

After clearing this test the next two rounds are comparatively easy to crack.

The next round after the written test is a Technical Interview followed by an HR interview.

After clearing the HR round you will get your LOI.


Need More Questions with Solutions ping me on Instagram : codingsolution75

Note : In this article, we will be discussing some of the Wipro Coding Questions asked in the previous recruitment tests.



Wipro Latest Coding Questions with Solutions

Wipro Question  1 : Company Sales

A company has a sales record of N products for M days. The company wishes to know the maximum revenue received from a given product of the N products each day. Write an algorithm to find the highest revenue received each day.
Input
The first line of the input consists of two space separated integers- days and products, representing the days (M) and the products in the sales record (N), respectively. The next M lines consist of N space-separated Integers - sales Record, representing the grid of sales revenue (can be positive or negative) received from each product each day.
Output
Print M space-separated integers representing the maximum revenue received each day.
Example
Input:
3 4
100 198 333 323
122 232 221 111
223 565 245 764
output :
333 232 764
import java.util.*;
class Main{
   public static void maxelement(int no_of_rows, int[][] arr) {
	 int i = 0;
	 int max = 0;
	 int[] result = new int[no_of_rows];
	 while (i < no_of_rows) {
	   for (int j = 0; j < arr[i].length; j++) {
		 if (arr[i][j] > max) {
		  max = arr[i][j];
		 }
	   }
	   result[i] = max;
	   max =0;
	   i++;
	 }
	printArray(result);
 }
 private static void printArray(int[] result) {
	for (int i =0; i<result.length;i++) {
	   System.out.print(result[i]+" ");
	}
 }
 public static void main(String[] args) {
	 Scanner sc =  new Scanner(System.in);
	 int row = sc.nextInt();
         int col = sc.nextInt();
	 int[][] arr = new int[row][col];
	 for(int i=0; i<row; i++){
	   for(int j=0; j<col; j++){
		arr[i][j] = sc.nextInt();
	   }
	 }
        maxelement(row, arr);
  }
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Question 2 : Find the String Occurrences

You are the given two string containing to count the number of occurrence of the second string in the first string.(You may disregard the case of the letters.)
Input
The first line of the input consists of a string parent, representing the fist string representing the second string.
Output
Print an integer representing the number of occurrences of Sub in parent. if no occurrence of sub is found in parent then print 0.
Example
Input:
TimisplayinginithehouseofTimwiththetoysofTim.
Tim
Output:
3
Explanation:
Tim occurs 3 time in the first string So, the output is 3.
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CountString {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s1 = sc.nextLine();
    String s2 = sc.nextLine();
    Pattern p = Pattern.compile(s2);
    Matcher m = p.matcher(s1);
    int c = 0;
    while (m.find()) {
      c++;
    }
    System.out.println(c);
  }
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Question 3 : Mars Stone

Roti has gone to mars to collect some stones. The bag has is carrying can hold a maximum weight of M. There are M stones weighing from 1 to M in mars There are N stones on Mars that are similar to the ones on Earth. find the number of stones he can bring from Mars such that none of them are similar to any stone on Earth.
Input Specification:
Input1: M denoting the size of the bag and the number of different stone weights present on Mars.
Input2: N, denoting the number of common stones on Earth and Mars.
Input3: An N elements array contains the list of the weight of the common stones.
Output Specification:
Your function should return the maximum unique stones that can be collected from Mars.
Example 1 :
input1 : 10
input2 : 3
input3 : {1,3,5}
Output : 2
Explanation :
Rob collect one of the following stone we weight sets {2,4}, {2,6} or {2,8}.
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class MarsStone{
  private static int Calculate(int M, int N, int[] arr){
    int sum=M;
    int max = Integer.MIN_VALUE;
    List<Integer> list = new ArrayList<>();
    for(int i=0; i&th;arr.length; i++) list.add(arr[i]);
    for(int i=1; i<=M; i++){
      sum = sum-1;
      int count = 0;
      if(!list.contains(i)){
        for(int j=i+1; j<=M; j++){
           if(!list.contains(j) && (sum-j) >= 0){
             sum = sum-j;
             count++;
           }
        }
        max = Math.max(count, max);
      }
    }
    return max+1;
  }
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int M = sc.nextInt();
    int N = sc.nextInt();
    int[] arr = new int[N];
    for(int i=0; i<N; i++)
      arr[i] = sc.nextInt();
      
     System.out.println(Calculate(M,N,arr));
  }
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Question 4: Find Key

You are provide with 3 numbers: input1, input2, input3.
Each of these are four digit number within the range >= 1000 and <=9999
i.e.
1000 <= input1 <= 9999
1000 <= input2 <= 9999
1000 <= input3 <= 9999
You are expected to find the Key using the below formula -
Key = (Sum of Smallest digit of all this 3 numbers) - (Sum of Largest digits of all the 3 numbers).
Input1 = 3521
Input2 = 2452
Input3 = 1352
Output = -11
Explanation (1 + 2 + 1) - (5 + 5 + 5) = -11.
import java.util.*;
 public class MyClass{
   public static int maxDigit(int n){
      int mx = Integer.MIN_VALUE;
      while(n>0){
         if(mx<n%10) mx = n%10;
         n/=10;
      }
      return mx;
   }
   public static int minDigit(int n ){
     int min = Integer.MAX_VALUE;
     while(n>0){
        if(min > n%10 ) min = n%10;
        n/=10;
     }
     return min;
   }
   public static int Difference(int x, int y, int z){
     return (minDigit(x) + minDigit(y)+minDigit(z))-(maxDigit(x) + maxDigit(y) + maxDigit(z));    
   }
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      int y = sc.nextInt();
      int z = sc.nextInt();
      
      System.out.println(Difference(x,y,z));
   }  
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Question 5 : Reversing Vowels in Given String

Write an algorithm to revers the new word by reversing the vowels in the original Word.

Input :
The input consist of a string - original Word representing the word display to the student on the Screen.
Output :
Print a string representing the new word after the vowels in original word have been reversed
Note :
The vowels in the English language are a,e,i,o,u,A,E,I,O,U.
Example
Input
heelou
Output
huolee
import java.util.Scanner;
public class NewWord {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String s = "";
		for(int i=0; i<str.length(); i++) {
		   char ch = str.charAt(i);
		   if(ch =='a' ||ch =='e' ||ch =='i' ||ch =='o' ||ch =='u' ||ch =='A' ||ch =='E' ||ch =='I' ||ch =='O' ||ch =='U') {
			   s +=ch;
		   }
		}
		s = new StringBuilder(s).reverse().toString();
		int x = 0;
		char[] arr = str.toCharArray();
		for(int i=0; i<str.length(); i++) {
			char ch = str.charAt(i);
			   if(ch =='a' ||ch =='e' ||ch =='i' ||ch =='o' ||ch =='u' ||ch =='A' ||ch =='E' ||ch =='I' ||ch =='O' ||ch =='U') {
				 arr[i] = s.charAt(x++);
			   }
		}
		System.out.println(String.valueOf(arr));
	}
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Question 6 : Product Delivered

Write an algorithm to find the total number of product delivered.
Input
The input consist of a string - representing the delivered request
Output
Print an integer representing the total number of product delivered.

Example
Input
aAKliP

Output:
173

Explanation:
The ascii value of the character in the string are follows:
a = 97
A = 65
k = 107
l = 108
i = 105
P = 80

The sum of the smallest and the largest ascii value is 65 + 108 = 173.
Hence the output is 173
import java.util.Scanner;

public class AsciiDefference {
	public static int getSolution(String str) {
		int total = 0;
		int t1 =Integer.MIN_VALUE;
		int t2 = Integer.MAX_VALUE;
		for(int i=0; i<str.length(); i++) {
			int temp = (int)(str.charAt(i));
			if(temp > t1) t1 = temp;
			if(temp < t2) t2 = temp;
		}
		return t1+t2;
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();	
		System.out.println(getSolution(str));
	}
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Question 7 : Company Unique Id

A company is planning to provide and extra discount to its customers. Every order has an
order ID associate with it which is a sequence of digits. The discount is calculate as the
count of the unique repeated digits in the order ID.
Write an algorithm to find the discount percentile given to the customer.

Input
The input consist of an integer orderID, represent to the order ID of the order.

Output
Print and integer representing the discount percentile given to the customer.

Example
Input
67963926
Output
2
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class CustomerDiscount {
  public static int getSolution(int id) {
	HashMap<Character, Integer> map = new HashMap<Character, Integer>();
	String str = String.valueOf(id);
	for(int i=0; i<str.length(); i++) {
	  if(map.containsKey(str.charAt(i))) 
		map.put(str.charAt(i),map.get(str.charAt(i))+1);
	  else 
		map.put(str.charAt(i),0);
	}
	int c = 0;
	for(Map.Entry<Character, Integer> key : map.entrySet()) {
	  if(key.getValue() >= 1) c++;
	}
	return c;
  }
  public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int id = sc.nextInt();
	System.out.println(getSolution(id));
  }
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Question 8 : Bio Research Facility

A bio research facility has multiple DNA samples. each DNA sample is a combination of
characters the research facility wishes to develop new mutants by combining the M existing
DNA. one DNS sample can only be part of one new mutant formed and consecutive DNS's can be
combined into one mutant.

Write an algorithm to combine M DNA samples to form New mutant if the DNS sample is remaining
after a few combination is less than M, then all remaining sample will be combined.
Input
The first land of the consist of integer numSample is represent the number of DNA sample of
the facility.
The next line consists of N space separated string represent in DNA samples.
The last line of input consist and integer newCount represent the number of DNA sample to be
combined in order to form New mutant (M).
Output
Separated string content DNA of a new mutant
Example
Input
4
ab cd ef fg
2
Output:
abcd effg
import java.util.Scanner;

public class DnaSample {
  public static String getSolution(String str, int m) {
    String ans = "";
	String[] dns = str.split(" ");
	for(int i=0; i<dns.length; i++){
	  if(i%m==0)ans+=" ";
		ans+=dns[i];
	 }
	return ans.trim();
   }
   public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	sc.nextLine();
	String str = sc.nextLine();
	int m = sc.nextInt();
	System.out.println(getSolution(str, m));
   }
}

If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Questions 9 : Cold Storage Company

A Cold storage company has N storage unit for various product. The company has received N Orders that must be preserved
at respective N temperatures inside the storage units. The Company manager wishes to identity which product must be
preserved at negative temperatures.

Write an algorithm to help the number of the product that have negative temperature storage requirements.
Input
The first line of the input consist of an integer numOfProduct,
representing the number of products (N)

The second line consist of N sepreted integers - temperature[i]....
Output
Print an integer representing the number of product must be preserved of product at negative temperatures.
Constraints
0 <= numsOfProduct <= 10^6
-10^6 <= temperature <= 10^6
0 <= i <=numOfProduct

Input
7
9 -3 8 -7 -6 10
Output
3
public class Main {
    public static int numOfProduct(int n, int temp[]){
        int c = 0;
        for(int i=0; i<n; i++){
            if(temp[i] < 0){
                c++;
            }
        }
        return c;
    }
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int n = sc.nextInt();
       int[] temp = new int[n];
       for(int i=0; i<n; i++){
           temp[i] = sc.nextInt();
       } 
       System.out.println(numOfProduct(n, temp)); 
    }
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Question 10 : Lucky Days

Reverse(D) to be the reversal of all digits in D.
For example Reverse(349) = 943, Reverse(93) = 39 and Reverse(340) = 43.

Amrit wants to go the movies with Nayak on some day D satisfying p <=D <=q, but he
Known he only goes the movies on days he considers to beb lucky. Nayak consider a day to be lucky
if the absolute value of the difference between d and reverse d is evenly divisible by s.

Given p,q and s, count and print number of lucky when Amrit and Nayak can go to the moves.
Input Format
A single line of the space-separated integer describing the respective value of p,q and s.
Constraints
1 < p,q,s <10000
Output Format
Print the number of beautiful days in the inclusive range between p and q
Sample Input
10 13 6

Sample Output
2
public class Main {
    public static int reverse(int n){
        int rev = 0;
        int i =0;
        int rem =0;
        while(n > 0){
            rev = rev* 10 + n%10;
            n/=10;
            
        }
        return rev;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int p = sc.nextInt();
        int q = sc.nextInt();
        int s = sc.nextInt();
        int c =0;
        int d = 0;
        for(int i=p; i<q; i++){
            if(p <= i &&  i<=q) d++;
            if((int)Math.abs(reverse(i) - i) % s == 0) c++;
        }
        System.out.println(Math.abs(d-c));
    }
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Question 11 : Distinct Elements

You are given a list of numbers. Write an algorithm to remove All the duplicate numbers of the list so that list contains only distinct number in the same order as they appear in the input list.

Input
The first line of the input consist of an integer size, representing the number element in the list(N).
The second line consist of N space-separated integer arr[0], arr[1], arr[2].....arr[N-1] representing the list of positive integer.

Output
Print space-separated integer representing the distinct elements obtained by removing all the duplicate element from given list.
Constraints :
0 < N < 10^5
-10^5 < arr[i] < 10^6
0 <= i <= N
Example
Input
8
1 1 3 2 1 4 5 4
Output
1 3 2 4 5
public class Solution {
    public static void printDistict(int[] arr, int N){
        int[] list = new int[(int)Math.pow(10,5)];
        for(int i=0; i<N; i++){
            if(list[arr[i]] == 0){
                list[arr[i]]+=1;
                System.out.println(arr[i]);
            }
        }
            
    }
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int N = sc.nextInt();
       int[] arr =  new int[N];
       for(int i=0; i<N; i++){
           arr[i] = sc.nextInt();
       } 
       printDistict(arr, N);
    }
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Coding Question 2023 :Extra discount to its customers

A company is planning to provide an extra discount to its customers. Every order has an order ID associated with it which
is a sequence of digits. The discount is calculated as the count of the unique repeating
digits in the order ID.
Write an algorithm to find the discount percentile given to the customer.
Input
The input consists of an integer orderID, representing the order ID of the order.
Output
Print an integer representing the discount percentile given to the customer
Example
Input 67963926
Output 2
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class DiscountPercentile {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int orderID = scanner.nextInt();
        int discountPercentile = calculateDiscountPercentile(orderID);
        System.out.println(discountPercentile);
    }

    public static int calculateDiscountPercentile(int orderID) {
        String orderIDStr = Integer.toString(orderID);
        Map>Character, Integer> digitFrequency = new HashMap>>();

        for (char digit : orderIDStr.toCharArray()) {
            digitFrequency.put(digit, digitFrequency.getOrDefault(digit, 0) + 1);
        }

        int uniqueRepeatingDigits = 0;
        for (int freq : digitFrequency.values()) {
            if (freq > 1) {
                uniqueRepeatingDigits++;
            }
        }

        return uniqueRepeatingDigits;
    }
}

If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Wipro Coding Question 2023 :Gaming Hub

In a gaming hub, N number of players were playing the same type of game.
All players gor stuck at the pillar level in the game, each with a different score. The owner of the gaming hub announced that players can pass that level they can break two pillars. Both pillars have their own health points. The trick to break one pillar at a time is that if the player's current score is multipled up to a certain point then it should be equal to the pilots heat. The same trick is to be used for other piller's health if there is trick is to be used for the other piller, if there is no number that can be multipied with the player score to make the score equal to the pillar health then that player loses. A Player cna only break one pillar at a time if player is not able to clear the level.
Output
Print the count of the players who will clear that level of the game.

Example
Input
5
15 5 3 7 9
133 90
Output
4
Explanation
Score 15 5 3 9 can be multipied by another number to equals 133 and 90 which will break the pillar so the output is 4
 
import java.util.Scanner;

public class GameLevel {
    public static boolean canClearPillar(int score, int[] pillarHealth) {
        for (int h : pillarHealth) {
            if (h % score == 0) {
                return true;
            }
        }
        return false;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int numPlayers = scanner.nextInt();
        int[] scores = new int[numPlayers];
        for (int i = 0; i < numPlayers; i++) {
            scores[i] = scanner.nextInt();
        }

        int[] pillarHealth = new int[2];
        pillarHealth[0] = scanner.nextInt();
        pillarHealth[1] = scanner.nextInt();

        int playersCleared = 0;
        for (int i = 0; i < numPlayers; i++) {
            if (canClearPillar(scores[i], pillarHealth)) {
                playersCleared++;
            }
        }

        System.out.println(playersCleared);

        scanner.close();
    }
}

  
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Next Question ...Coming Soon!...Refresh Page

Frequently Asked Questions

It makes no difference whether the Wipro interview is difficult or simple. The truth is that the more you prepare for the interview, the more likely you are to succeed. Acquire a thorough understanding of interview stages, rounds, and questions, among other things. Topics covered include programming languages, logical thinking, computer fundamentals and products/software/projects on which the candidate has recently or previously worked, etc

The interviewer is attempting to determine whether or not you are a good fit for their organization. As a result, you must persuade them. You can begin your response by saying, "I am a quick learner who can quickly absorb something new to me." When communicating with someone, remember that it's not just about the words; it's also about how you say them.

Wipro has launched the Wipro Elite NLTH Hiring Process for freshers across India. It is a National Level Talent Hunt Test to attract the greatest talent in the country. In Wipro Elite, all qualified candidates would have to go through an online evaluation process with three rounds of selection.
Aptitude Exam
Written Communication Test
Coding test.

It is very frequently asked interview question. According to your performance, some companies give you a chance to negotiate about salary and some companies having a fixed salary for entry level.
So you have to answer this question as "As per company norms."
Still, if the interviewer asks for your expectation, then you have to answer according to your expectation.
Remember that you are fresher so tell your expectation accordingly..

You can also apply to Wipro through recruitment websites, applying on the company's website, attending recruiting drives, using the employee referral system, or consulting with placement experts or groups.

Wipro coding questions range from easy to difficult level. Out of the 2 questions asked in Wipro coding test, one is easy and the other is slightly difficult. You need to answer a minimum of 1 question, to clear the cut off.

Special Tips: Allot your time to practice as per the level of difficulty with respect to the category. Solving mock tests from time to time would be of great help before taking the actual test. Make sure you answer 90-95% of every section first and then get back to the others just before the end.

Comments

Post a Comment

If you any doubts, please let me know Telegram Id: @Coding_Helperr
Instagram Id : codingsolution75

More Related

For Any Help Related to coding exams follow me on Instagram : codingsolution75

Popular Posts

Fresco Play Hands-on Latest Solutions

EPAM Latest Coding Questions with Solutions 2023

TCS Wings 1 All Prerequisite

Accenture Latest Coding Questions with Solutions

Cognizant

Impetus Technologies Latest Coding Questions with Solutions

Infosys | InfytTq | Infosys Certification Exam Latest Coding Questions with Solutions

TCS NQT | TCS | TCS Ninja Asked Coding Questions with Solutions