0% found this document useful (0 votes)
28 views4 pages

Wipro Coding Questions

The document contains a list of coding questions and tasks typically used for programming practice or interviews. It covers a wide range of topics including loops, arrays, strings, linked lists, trees, and algorithms. Each question requires the implementation of specific functionalities or algorithms in programming.

Uploaded by

kittu123.work
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views4 pages

Wipro Coding Questions

The document contains a list of coding questions and tasks typically used for programming practice or interviews. It covers a wide range of topics including loops, arrays, strings, linked lists, trees, and algorithms. Each question requires the implementation of specific functionalities or algorithms in programming.

Uploaded by

kittu123.work
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

# wipro coding questions→

1. WAP to print all number upto n ?


2. WAP to print the all numbers between n1 &n2 including
both?
3. Print the patterns—
●​ 1
22
333
4444
55555
●​ 5 4 3 2 1
54321
54321
●​ 1 1 1 1 1
22222
33333
44444
55555
●​ 5 * 3 * 1
5*3*1
5*3*1
●​ 1
23
456
7 8 9 10
4. WAP to convert decimal number to binary and print the
count of 1’s in it. If 1’s are not present in binary number then
print invalid i/p ?

5. Spiral print the matrix ?


6. GCD of two numbers ?
7. Check if array is sorted or not in ascending aur descending
order ?
8. Sort the first half of array in ascending and second half in
descending order ?
9. Remove duplicates from the array ?
10. Check that the array contains duplicate or not ?
11. Print the odd & even elements from the array ?
12. Print the sum of the elements of the array of odd index of
the element ?
13. Print the max consecutive ones ?
14. subArray with max sum ? / print maximum sum of
subarray ?
15. How many elements of the array are prime numbers ?
16. WAP to print all the unique elements of the array ?
17. Find the maximum element of the array ?
18. Find the minimum element of the array ?
19. Buy stock & sale , to find max profit ?
20. Check if string is palindrome or not ?
21. Let us suppose that a person is given two numbers ‘A’ and ‘B’ as
two arrays of ‘N’ and ‘M’ length respectively. All the array elements
individually represent a digit. How will the person find the sum of the
two numbers and how can the sum be returned in the form of an
array?
21. WAP to reverse a number ?
22. You are given a binary number as a string (‘S’), which is ‘N’ size.
Convert this binary number into its integer decimal equivalent and
then print it.
23. Write a program to find the second largest element in an array.
24. Traversing a linked list.
Inserting, deleting, or searching for elements.

25. Reversing a linked list ?

26. Implement a queue using two stacks.?

27. Traverse a binary tree (in-order, pre-order, post-order).?

28. Search for an element in a BST.

29. Find the height or depth of a tree.

30. Solve the longest common subsequence problem.

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

32. Write a program to check if a given string / number is a palindrome.

33. Calculate fibonacci series ?

34. Write a program to implement a stack using an array with push and pop
operations.

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

36. Write a program to implement binary search on a sorted array.


37. Swap two number using / without using third variable ?
38. Print alternate elements of an array ?
39. Print sum of the alternate elements of array ?
40. Armstrong number program ?
41. Check if two given matrices are identical ?
42. Find distinct element in array ?
43. WAP to check Valid parenthesis ?
44. WAP to find lcm of 3 numbers ?

You might also like