0% found this document useful (0 votes)
43 views51 pages

Apptunix Interview Coding Questions

The document outlines coding and technical interview questions from various companies for the year 2022-23. It includes coding challenges related to arrays, strings, linked lists, and binary numbers, as well as technical questions covering topics like DBMS, OOPs, and Java concepts. Each company's section details specific problems and interview topics, providing a comprehensive overview for candidates preparing for technical interviews.

Uploaded by

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

Apptunix Interview Coding Questions

The document outlines coding and technical interview questions from various companies for the year 2022-23. It includes coding challenges related to arrays, strings, linked lists, and binary numbers, as well as technical questions covering topics like DBMS, OOPs, and Java concepts. Each company's section details specific problems and interview topics, providing a comprehensive overview for candidates preparing for technical interviews.

Uploaded by

mudianto7717
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PAST YEAR CODING QUESTIONS AND TECHNICAL

I INTERVIEW QUESTION

1. Tata Consultancy Services (TCS), New Delhi

Coding Questions (Year 2022-23):-


1. A chocolate factory is packing chocolates into the packets. The chocolate packets
here represent an array of N number of integer values. The task is to find the empty
packets (0) of chocolate and push it to the end of the conveyor belt(array).
Example 1 :
N=8 and arr = [4,5,0,1,9,0,5,0].
There are 3 empty packets in the given set. These 3 empty packets represented as O
should be pushed towards the end of the array
Input :
8 – Value of N
[4,5,0,1,9,0,5,0] – Element of arr[O] to arr[N-1],While input each element is separated
by newline
Output:
45195000

Example 2:
Input:
6 — Value of N.
[6,0,1,8,0,2] – Element of arr[0] to arr[N-1], While input each element is separated by
newline
Output:
618200
2. Joseph is learning digital logic subject which will be for his next semester. He
usually tries to solve unit assignment problems before the lecture. Today he got one
tricky question. The problem statement is “A positive integer has been given as an
input. Convert decimal value to binary representation. Toggle all bits of it after the
most significant bit including the most significant bit. Print the positive integer value
after toggling all bits”.
Constrains-
1<=N<=100
Example 1:
Input :
10 -> Integer
Output :
5 -> result- Integer
Explanation:
Binary representation of 10 is 1010. After toggling the bits(1010), will get 0101 which
represents “5”. Hence output will print “5”.
3. Jack is always excited about sunday. It is favourite day, when he gets to play all day.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
And goes to cycling with his friends.
So every time when the months starts he counts the number of sundays he will get to
enjoy. Considering the month can start with any day, be it Sunday, Monday…. Or so
on.
Count the number of Sunday jack will get within n number of days.
Example 1:
Input
mon-> input String denoting the start of the month.
13 -> input integer denoting the number of days from the start of the month.
Output :
2 -> number of days within 13 days.
Explanation:
The month start with mon(Monday). So the upcoming sunday will arrive in next 6
days. And then next Sunday in next 7 days and so on.
Now total number of days are 13. It means 6 days to first sunday and then remaining 7
days will end up in another sunday. Total 2 sundays may fall within 13 days.

2. Daffodil Software Ltd., Hisar

Coding Questions (Year 2022-23):-


1. Question on binary number. The input is n binary number in n different rows,
find the unrepeated binary row.
[Link] on Array. We have to find number of pairs in the array whose sum is
equal to a given value.
[Link] on String. Swap the adjecent character of String and print new String.
4. Container with most water: [Link]
most-water
5. Given a string s, only consisting of lowercase characters, whenever the word
“party” is encountered replace it with the word “pawri”.
Eg Input - partipartypart
Eg Output - partipawripart

Technical Interview Questions (Year 2022-23):-

Topics: DBMS, OS, Network, DS, OOPs, C/C++ and pattern printing.

1. Round Robin Scheduling


2. Abstraction vs Encapsulation
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
3. B-Tree vs AVL tree
4. Doubly circular Linked list (Only properties not implementation)
5. Super key
6. Primary key vs Foreign Key
7. Joins in SQL
8. Left join and Right join
9. SQL query to fetch 2nd highest salary
10.2 array merging in sorted order
[Link] some easy patterns to draw on paper.

3. Libsys Ltd., Gurugram

Coding Questions (Year 2022-23):-


1. .Sort string Array without using inbuilt function(Hint : Use CompareTo()
Method in comparison And Override sort function with your Own Code).
2. .Given a sorted array and a number x, find the pair in array whose sum is
closest to x.
3. .Reverse A linklist without using Extra Data Structure.
4. .Merge Two ursorted list in sorted single linklist.
5. Sum of two linked lists without using extra space and without changing
the linked list.
6. The data of the node is the sum of its left
subtree([Link]
every-node-stores-sum-of-all-nodes-in-left-subtree/).
7. Find the duplicate word in a given string.
8. Two strings are anagrams of each other or not.

Technical Interview Questions (Year 2022-23):-

[Link] Me About Yourself.


[Link] language You prefer(C++/Java).
[Link] Yourself in Java, DBMS, SQL.
[Link] Between Java And C++.(I just told him 1 difference, discussion
started with a counter question).
[Link] Can you say java is platform Independent.(He Wanted JVM explanation
in details), And Some Counter Question on byteCode And Based On compiler
And interpreter.
[Link] C Compilation Steps And Whats The Difference Between Java And C
programs Compilation Process.
[Link] 3 Tables And Ask A Simple Query, and every time, he modified the
same query with some new concept and covered all topic (Group by, order by,
between, in, not in, subquery).After 5-6 query, He asked me A Query Which
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
stuck me, I take 4-5 minutes and broken into subqueries then solved (Hint: Break
And JOIN).
[Link] same 3 table, in Which normalization form and solved further.
[Link] on above Question, How you Identifies All Constraints in the table.
10. Questions on Key (Primary, Candidate, Super, Alternate)And Relation
between these key.
[Link] Question on String In java.
[Link] Between == And EqualTo() in Java,How Override it ,and from Which
class its inherits.
[Link] Output question related to above question based on the string.
[Link] String is immutable in java,(Counter Question Explain Literal String
Pool).
15. 2 Simple Puzzle (from Geeks).
[Link] Linklist (From Coding Round )
[Link] Point Of LinkList.
[Link] Loop in linkedList.
[Link] only a pointer/reference to a node to be deleted in a singly linked list,
how do you delete it?
[Link] node From last in single Traversal.

4. Jio Platforms Ltd., Mumbai

Coding Questions (Year 2022-23):-


1. .Sort string Array without using inbuilt function(Hint : Use CompareTo()
Method in comparison And Override sort function with your Own Code).
2. .Given a sorted array and a number x, find the pair in array whose sum is
closest to x.
3. .Reverse A linklist without using Extra Data Structure.
4. .Merge Two ursorted list in sorted single linklist.
5. Sum of two linked lists without using extra space and without changing
the linked list.
6. The data of the node is the sum of its left
subtree([Link]
every-node-stores-sum-of-all-nodes-in-left-subtree/).
7. Find the duplicate word in a given string.
8. Two strings are anagrams of each other or not.

5. CodeQuotient, Mohali
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

1. Tell me about yourself.


2. what is recursion?
3. what is binary search, some questions on binary search, how it is
implemented, and its time complexity.
4. what is an anagram, pangram?
5. The interviewer posted a code snippet in chat and asked for output it was a
string reversing snippet.
6. What is merge sort time complexity.
7. What are your salary expectations.

6. Emicon Advisory Services, Mohali

Coding Questions (Year 2022-23):-


1. Write a Program to Reverse an Array
2. Write code to check if two strings match where one string contains
wildcard characters
3. Write a Program to find out the Spiral Traversal of a Matrix.
4. Write a code to find Fibonacci Series using Recursion

Technical Interview Questions (Year 2022-23):-

7. Cloud Analogy Softech Pvt. Ltd., Kurukshetra

Coding Questions (Year 2022-23):-


1. .Sort string Array without using inbuilt function(Hint : Use CompareTo()
Method in comparison And Override sort function with your Own Code).
2. .Given a sorted array and a number x, find the pair in array whose sum is
closest to x.
3. .Reverse A linklist without using Extra Data Structure.
4. .Merge Two ursorted list in sorted single linklist.
5. Sum of two linked lists without using extra space and without changing
the linked list.
6. The data of the node is the sum of its left
subtree([Link]
every-node-stores-sum-of-all-nodes-in-left-subtree/).
7. Find the duplicate word in a given string.
8. Two strings are anagrams of each other or not.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION

Technical Interview Questions (Year 2022-23):-

8. Soft Prodigy System Solutions Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

9. ValueFirst, Gurgaon
Coding Questions (Year 2022-23):-
1. You are given a string s,an array roll where roll[i] represents rolling first roll[i]
characters in string.
you have to apply every roll[i] on string and output final [Link] means
increasing ASCII value of character. like rolling ‘z’ would result in ‘a’,rolling ‘b’
would result in ‘c’,etc.
constraints: 1<=|s|<=10^5
1<=roll[i]<=10^5

For eg: Input:


bca
3
123
Output:
eeb

2. You are given a string s, now you have to find the maximum number of
occurrences of a subString which follows following constraints:let subString
length be L
(a). minLength<=L<=maxLength
(b). number of unique characters in subString <=maxUnique
Given: 1<=minLength<=|s|
1<=maxLength<=|s|
1<=maxUnique<=26

For eg: Input:


abcdd
123
Output:
2( considering substring d which occurs twice and follows constraints as well)

Hint:o(|s|*26) Algo.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Technical Interview Questions (Year 2022-23):-

[Link] Minds, Mohali


Coding Questions (Year 2022-23):-
1. Write a Program to Reverse an Array
2. Write code to check if two strings match where one string contains
wildcard characters
3. Write a Program to find out the Spiral Traversal of a Matrix.
4. Write a code to find Fibonacci Series using Recursion

Technical Interview Questions (Year 2022-23):-

[Link] Solutions, Chandigarh


Coding Questions (Year 2022-23):-
1. .Sort string Array without using inbuilt function(Hint : Use CompareTo()
Method in comparison And Override sort function with your Own Code).
2. .Given a sorted array and a number x, find the pair in array whose sum is
closest to x.
3. .Reverse A linklist without using Extra Data Structure.
4. .Merge Two ursorted list in sorted single linklist.
5. Sum of two linked lists without using extra space and without changing
the linked list.
6. The data of the node is the sum of its left
subtree([Link]
every-node-stores-sum-of-all-nodes-in-left-subtree/).
7. Find the duplicate word in a given string.
8. Two strings are anagrams of each other or not.

[Link] Solutions Pvt. Lt+A13:A114d., Mohali


Coding Questions (Year 2022-23):-
Only Aptitude Questions

Technical Interview Questions (Year 2022-23):-

[Link] Hike, Chandigarh


Coding Questions (Year 2022-23):-

1. Write a Program to Add two Fractions


2. Write a Program to Find the Largest Element in an Array.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
3. Write a Program to Find the Roots of a Quadratic Equation
4. Write a Program to Find the Prime Factors of a Number.
5. Write a Program to Convert Digits to Words.
6. Write a Program to Find the Factorial of a Number using Recursion.

Technical Interview Questions (Year 2022-23):-

[Link] Vertex, Bengaluru


Coding Questions (Year 2022-23):-
Only Aptitude Questions

Technical Interview Questions (Year 2022-23):-

How do you differentiate between a class and an object in Java?


Answer: A class is a template or blueprint for creating objects, while an object is
an instance of a class.

What is a constructor in Java?


Answer: A constructor is a special method in a class that is used to initialize
objects when they are created.

What is the purpose of the main() method in Java?


Answer: The main() method is the entry point for a Java program, and it is used
to start the execution of the program.

What is a package in Java?


Answer: A package is a collection of related classes and interfaces that are used
to organize code and provide better encapsulation.

What is the difference between a private and a protected method in Java?


Answer: A private method can only be accessed within the same class, while a
protected method can be accessed by subclasses or classes within the same
package.

What is inheritance in Java?


Answer: Inheritance is a mechanism in Java that allows a class to inherit
properties and methods from a parent class.

What is an abstract class in Java?


Answer: An abstract class is a class that cannot be instantiated and is designed to
be subclassed by other classes.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
What is a static method in Java?
Answer: A static method is a method in Java that is associated with a class rather
than an instance of the class. It can be called without creating an object of the
class and is commonly used for utility methods that perform generic actions not
specific to any particular object.

What is a final class in Java?


Answer: A final class is a class that cannot be subclassed by other classes.

What is the final variable in Java?


Answer: In Java, a final variable is a variable whose value cannot be changed
once it has been initialized. It is often used to represent constants or values that
should not be modified during the execution of the program.

What is the difference between the equals() method and the == operator in Java?
Answer: The equals() method is used to compare the contents of two objects,
while the == operator is used to compare the memory addresses of two objects.
What is polymorphism in Java?
Answer: Polymorphism is a mechanism in Java that allows objects of different
classes to be treated as if they are objects of the same class.

What is encapsulation in Java?


Answer: Encapsulation is a mechanism in Java that hides the implementation
details of a class and exposes only its public interface.

What is a static block in Java?


Answer: A static block is a block of code that is executed when the class is
loaded into memory, and it is used to initialize static variables.

What is the final method in Java?


Answer: A final method is a method that cannot be overridden by a subclass

What is the difference between an abstract class and an interface in Java?


Answer: An abstract class can have concrete methods, while an interface cannot.
Also, a class can implement multiple interfaces, but it can only extend one class.

What is a package-private access modifier in Java?


Answer: A package-private access modifier is a modifier that makes a class,
method, or variable visible only within the same package.

What is a synchronized method in Java?


Answer: A synchronized method is a method that can only be accessed by one
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
thread at a time, ensuring that the method is thread-safe.

What is a default method in Java?


Answer: A default method is a method that is defined in an interface and
provides a default implementation for the method.

[Link], Mohali
Coding Questions (Year 2022-23):-
Only Aptitude Questions

[Link] Information Technology Solutions, Mohali


Coding Questions (Year 2022-23):-
1. .Sort string Array without using inbuilt function(Hint : Use CompareTo()
Method in comparison And Override sort function with your Own Code).
2. .Given a sorted array and a number x, find the pair in array whose sum is
closest to x.
3. .Reverse A linklist without using Extra Data Structure.
4. .Merge Two ursorted list in sorted single linklist.
5. Sum of two linked lists without using extra space and without changing
the linked list.
6. The data of the node is the sum of its left
subtree([Link]
every-node-stores-sum-of-all-nodes-in-left-subtree/).
7. Find the duplicate word in a given string.
8. Two strings are anagrams of each other or not.

17. CloudEQ Software India Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-
Only Aptitude Questions

18. GeeksforGeeks, Noida


Coding Questions (Year 2022-23):-

1. Write a program to calculate the value of 7n/9 without using multiplication


and division operator.

2. Write a program to find out the number being deleted from the array.

3. Write a program to check the validity of { and } used in program for string as
{{{{{}}}}, {{{{{, }}}}{.

Technical Interview Questions (Year 2022-23):-


PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
19. Heliverse Technologies, Gurugram
Coding Questions (Year 2022-23):-
1. Find duplicates in O(n) time and O(1) extra space
2. Find maximum possible stolen value from houses
3. Replace each element of the Array with it’s corresponding rank
4. Sort elements by frequency
5. Sort an array according to the order defined by another array
6. Maximum Product Subarray

20. Planet Spark, Gurugram

Coding Questions (Year 2022-23):-


1. Replace each element of the Array with it’s corresponding rank
2. Sort elements by frequency
3. Sort an array according to the order defined by another array
4. Maximum Product Subarray

21. Hitachi India Pvt. Ltd., New Delhi


Coding Questions (Year 2022-23):-
Only Input Output Questions

22. TuringMinds, Gurugram (WILP)


Coding Questions (Year 2022-23):-
1. Find duplicates in O(n) time and O(1) extra space
2. Find maximum possible stolen value from houses
3. Replace each element of the Array with it’s corresponding rank
4. Sort elements by frequency
5. Sort an array according to the order defined by another array
6. Maximum Product Subarray

23. ABAXIS Design and Build Pvt. Ltd., Noida


Coding Questions (Year 2022-23):-
1. Non-Repeating Element
2. Program for array rotation
3. Equilibrium index of an array
4. Print array after it is right rotated K times
5. Array is a subset of another array

24. Accolite Digital, Gurugram


PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Coding Questions (Year 2022-23):-
1. .Sort string Array without using inbuilt function(Hint : Use CompareTo()
Method in comparison And Override sort function with your Own Code).
2. .Given a sorted array and a number x, find the pair in array whose sum is
closest to x.
3. .Reverse A linklist without using Extra Data Structure.
4. .Merge Two ursorted list in sorted single linklist.
5. Sum of two linked lists without using extra space and without changing
the linked list.
6. The data of the node is the sum of its left
subtree([Link]
every-node-stores-sum-of-all-nodes-in-left-subtree/).
7. Find the duplicate word in a given string.
8. Two strings are anagrams of each other or not.

25. Codeyoung, Bengaluru


Coding Questions (Year 2022-23):-
1. Write a Program to Reverse an Array
2. Write code to check if two strings match where one string contains
wildcard characters
3. Write a Program to find out the Spiral Traversal of a Matrix.
4. Write a code to find Fibonacci Series using Recursion

26. Domains Analytics, Chandigarh


Coding Questions (Year 2022-23):-

1. Sort elements by frequency


2. Sort an array according to the order defined by another array
3. Maximum Product Subarray

Technical Interview Questions (Year 2022-23):-

27. Dynamics Monk Pvt. Ltd., New Delhi


Coding Questions (Year 2022-23):-
1. 6. Write code Check if the given string is Palindrome or not
2. Write code to Calculate frequency of characters in a string
3. Write code to check if two strings match where one string contains
wildcard characters
4. Write a code for bubble sort
5. How is the merge sort algorithm implemented?
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
6. Write to code to check whether a given year is leap year or not.
7. Find non-repeating characters in a string

Technical Interview Questions (Year 2022-23):-

28. Tellius India Pvt. Ltd., Bengaluru


Coding Questions (Year 2022-23):-
1. Pair Sum
2. Overlapping Intervals
3. Sort 0 1 2
4. Search In Rotated Sorted Array
5. Smallest Subarray With K Distinct Elements
6. Other Questions Practice Link
7. Search In Row Wise And Column Wise Sorted Matrix
8. Inplace Rotate Matrix By 90 degree
9. Matrix Median

Technical Interview Questions (Year 2022-23):-

29. Auspicious Soft Pvt Ltd., Mohali


Coding Questions (Year 2022-23):-
1. Write a code to reverse a number
2. Write the code to find the Fibonacci series upto the nth term.
3. Write code of Greatest Common Divisor
4. Write code of Perfect number
5. Write code to Check if two strings are Anagram or not

Technical Interview Questions (Year 2022-23):-

30. CRG Solutions Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

31. HCL Technologies, Noida


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

1. What do you mean by Class Cast Exception?


2. Differentiate between Primary key and a Unique key.
3. Why java is considered as dynamic?
4. What is joins in SQL?
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
5. Differentiate between Method Overloading and Method Overriding.
6. What is the purpose of finalize () method in Java?
7. What is Synchronization?
8. What is the function of DBMS?
9. Difference between Abstract class and Interface.
[Link] is the purpose of "Register" Keyword?

32. Omninos Technologies International Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-
1. Write a code for Heap sort.
2. Write a code to replace each element in an array by its rank in the array
3. Write a code to find circular rotation of an array by K positions.
4. Write a code to find non-repeating elements in an array.
5. Write a code to check for the longest palindrome in an array.
6. Write a code to find the factorial of a number.
7. Write the code to for Armstrong number
8. Write a program to find the sum of Natural Numbers using Recursion.
9. Write a program to add Two Matrices using Multi-dimensional Array.
[Link] a Program to Find the Sum of Natural Numbers using Recursion.
[Link] code to check a String is palindrome or not?
[Link] a program for Binary to Decimal to conversion
[Link] a program to check whether a character is a vowel or consonant

Technical Interview Questions (Year 2022-23):-

33. Infinite Technologies, Karnal


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

34. Nicole The Math Lady, Yamuna Nagar


Coding Questions (Year 2022-23):-
[Link] are required to write the code. You can click on compile and run anytime to
check compilation/execution status. The code should be logically/syntactically correct.

Question: Write a program in C such that it takes a lower limit and upper limit as
inputs and print all the intermediate palindrome numbers.

Test Cases:
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
TestCase 1:
Input :
10 , 80
Expected Result:
11 , 22 , 33 , 44 , 55 , 66 , 77.

Test Case 2:
Input:
100,200

Technical Interview Questions (Year 2022-23):-

35. Webner Solutions Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-
Technical Interview Questions (Year 2022-23):-
Introduce yourself
What are your Hobbies? I said I love playing games so he asked me about my
favorite game and My laptop specs.
What is the Difference between 8th gen and 9th gen processor?
What are DDL, and DML commands?
What is Normalization? explain Types
What are ACID properties?
Explain OOPS concepts.
Explain Polymorphism.
I mentioned Data Structured in my resume so he asked me a few ds questions.

What is Data Structure?


Array vs Linked List
Why is Linked List better than an array?
Explain Types of Queue.

36. Coforge Limited, Noida


Coding Questions (Year 2022-23):-
1. Write a code to find an Automorphic number
2. Write a code to find Find the ASCII value of a character
3. Write a code to Remove all characters from string except alphabets
4. Write a code to Print the smallest element of the array
5. Write a code to Reverse the element of the array
6. Write a code to Sort the element of the array
7. Write a code to Sort the element of the array without sort method
8. Write a code to Replace a Substring in a string
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
9. Write a code to Remove space from a string

Technical Interview Questions (Year 2022-23):-

37. Unthinkable Solutions LLP, Gurugram


Coding Questions (Year 2022-23):-
1. 3. Write code of Greatest Common Divisor
2. 4. Write code of Perfect number
3. 5. Write code to Check if two strings are Anagram or not
4. 6. Write code Check if the given string is Palindrome or not
5. Write code to Calculate frequency of characters in a string
6. Write code to check if two strings match where one string contains
wildcard characters
7. Write a code for bubble sort
8. How is the merge sort algorithm implemented?
9. Write to code to check whether a given year is leap year or not.

Technical Interview Questions (Year 2022-23):-

38. Josh Technology Group, Gurugram


Coding Questions (Year 2022-23):-

1.A string contains only two characters ‘I’ and ‘D’ where ‘I’ represents the
increasing sequence and ‘D’ represents the decreasing sequence. Find the
minimum number without repetition of the numbers such that it follows the
sequence given in the string. The numbers used in the sequence must be greater
than zero. We have to print ‘String not found’ if the size of the string is zero and
if the size of the string is greater than 8 we have to print ‘String length exceeds’.
INPUT: IDIDI
OUTPUT: 132546
2,We are given a binary tree. The task is to transform every left child node odd
by subtracting one and even child node even by adding one to it. We have to
write solutions in linear time complexity and constant space.
We are given an array of sizes ‘N’. The task is to count greater elements on the
left side of each array element.
INPUT: 5
12345
OUTPUT: -1 1 2 3 4
[Link] a linked list. Update the value of each node by the sum of itself data and
(n – k)th node data.
[Link] are given a circular array of size ‘N’. We have to find the maximum
subarray of size non-empty subarray.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Technical Interview Questions (Year 2022-23):-

[Link] first question was related to Binary Search. The question was very much
related to the question Koko Eating Bananas present on leetcode. Just a change
of story was there. Link of the question: [Link]
eating-bananas/
2.I wrote the code and they provided me an array of size 12 and ask me to dry
run on the test case till I don’t get the answer.
[Link] have given a BST. In the tree, generally, we have two pointers i.e left and
right but here they also provide another point named as parent pointer which is
pointing to its parent. [Link] a node containing left, right as well as parent
pointer. Now they have given an integer ‘K’, the task to us is to find all the pairs
in BST whose sum is K.

[Link] Ltd., Bengaluru


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Ltd., Gurgaon


Coding Questions (Year 2022-23):-
1. Write code to check if two strings match where one string contains
wildcard characters
2. Write a code for bubble sort
3. How is the merge sort algorithm implemented?
4. Write to code to check whether a given year is leap year or not.
5. Find non-repeating characters in a string
6. Write a code to replace a substring in a string.
7. Write a code for Heap sort.
8. Write a code to replace each element in an array by its rank in the array
9. Write a code to find circular rotation of an array by K positions.
[Link] a code to find non-repeating elements in an array.
[Link] a code to check for the longest palindrome in an array.
[Link] a code to find the factorial of a number.
[Link] the code to for Armstrong number
[Link] a program to find the sum of Natural Numbers using Recursion.
[Link] a program to add Two Matrices using Multi-dimensional Array.
[Link] a Program to Find the Sum of Natural Numbers using Recursion.
[Link] code to check a String is palindrome or not?
[Link] a program for Binary to Decimal to conversion
[Link] a program to check whether a character is a vowel or consonant
[Link] a code to find an Automorphic number
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
[Link] a code to find Find the ASCII value of a character
[Link] a code to Remove all characters from string except alphabets

Technical Interview Questions (Year 2022-23):-

[Link] Technologies India Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Software Pvt. Ltd., Gurugram


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Technologies, Chandigarh


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Technologies, Mohali


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Ltd., Bengaluru


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Horwath IT Services LLP, Noida


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Prodigy Solutions (P) Ltd., Mohali


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-
1. Find duplicates in O(n) time and O(1) extra space
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
2. Find maximum possible stolen value from houses
3. Replace each element of the Array with it’s corresponding rank
4. Sort elements by frequency
5. Sort an array according to the order defined by another array
6. Maximum Product Subarray

[Link] Pvt. Ltd., Hyderabad


Coding Questions (Year 2022-23):-
1. Non-Repeating Element
2. Program for array rotation
3. Equilibrium index of an array
4. Print array after it is right rotated K times
5. Array is a subset of another array

[Link], Gurugram
Coding Questions (Year 2022-23):-

[Link], Gurugram
Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Technologies, Panchkula


Coding Questions (Year 2022-23):-
1. Sum of geometric series
2. All divisors of a natural number
3. Replace all ‘0’ with ‘5’ in an input Integer
4. Number is Positive, Negative, Odd, Even, Zero

[Link] Ltd., Noida


Coding Questions (Year 2022-23):-
[Link] are required to write the code. You can click on compile and run anytime to
check compilation/execution status. The code should be logically/syntactically correct.

Question: Write a program in C such that it takes a lower limit and upper limit as
inputs and print all the intermediate palindrome numbers.

Test Cases:
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
TestCase 1:
Input :
10 , 80
Expected Result:
11 , 22 , 33 , 44 , 55 , 66 , 77.

Test Case 2:
Input:
100,200

Technical Interview Questions (Year 2022-23):-

1. Introduce yourself
2. What are your Hobbies? I said I love playing games so he asked me about
my favorite game and My laptop specs.
3. What is the Difference between 8th gen and 9th gen processor?
4. What are DDL, and DML commands?
5. What is Normalization? explain Types
6. What are ACID properties?
7. Explain OOPS concepts.
8. Explain Polymorphism.
9. I mentioned Data Structured in my resume so he asked me a few ds
questions.

[Link] is Data Structure?


[Link] vs Linked List
[Link] is Linked List better than an array?
[Link] Types of Queue.

[Link] Technologies, Noida

Coding Questions (Year 2022-23):-

1. Prime Numbers
2. Sum of arithmetic series
3. Sum of geometric series
4. All divisors of a natural number
5. Replace all ‘0’ with ‘5’ in an input Integer
6. Number is Positive, Negative, Odd, Even, Zero
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Technical Interview Questions (Year 2022-23):-

[Link] 21A Technologies Pvt. Ltd., Gurgaon


Coding Questions (Year 2022-23):-
1Write a Program to Reverse an Array
2Write code to check if two strings match where one string contains wildcard
characters
3Write a Program to find out the Spiral Traversal of a Matrix.
4Write a code to find Fibonacci Series using Recursion

Technical Interview Questions (Year 2022-23):-

[Link] Technologies, Gurugram


Coding Questions (Year 2022-23):-

Technical Interview Questions (Year 2022-23):-

[Link] Systems Pvt. Ltd., Gurugram


Coding Questions (Year 2022-23):-

1. Write code to check if two strings match where one string contains
wildcard characters
2. Write a code for bubble sort
3. How is the merge sort algorithm implemented?
4. Write to code to check whether a given year is leap year or not.
5. Find non-repeating characters in a string
6. Write a code to replace a substring in a string.
7. Write a code for Heap sort.
8. Write a code to replace each element in an array by its rank in the array
9. Write a code to find circular rotation of an array by K positions.
[Link] a code to find non-repeating elements in an array.
[Link] a code to check for the longest palindrome in an array.
Write a code to find the factorial of a number

Technical Interview Questions (Year 2022-23):-

[Link] Technologies Ltd., Noida


Coding Questions (Year 2022-23):-
1. Non-Repeating Element
2. Program for array rotation
3. Equilibrium index of an array
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
4. Print array after it is right rotated K times
5. Array is a subset of another array

[Link] Technology Services India Ltd., Mumbai


Coding Questions (Year 2022-23):-

1. Non-Repeating Element
2. Program for array rotation
3. Equilibrium index of an array
4. Print array after it is right rotated K times
5. Array is a subset of another array

[Link] Systems India Pvt. Ltd., Hyderabad


Coding Questions (Year 2022-23):-
1. Write a code to Count Inversion
2. Write a code to find consecutive largest subsequenceWrite a Program to
Find out the Sum of Digits of a Number.
3. Write a Program to Find out the Power of a Number
4. Write a Program to Find out the Sum of Digits of a Number.

Technical Interview Questions (Year 2022-23):-

[Link], Gurgaon
Coding Questions (Year 2022-23):-
1. Write a Program to Add two Fractions
2. Write a Program to Find the Largest Element in an Array.
3. Write a Program to Find the Roots of a Quadratic Equation
4. Write a Program to Find the Prime Factors of a Number.
5. Write a Program to Convert Digits to Words.
6. Write a Program to Find the Factorial of a Number using Recursion.

Technical Interview Questions (Year 2022-23):-

[Link] Pvt. Ltd., Hyderabad


Coding Questions (Year 2022-23):-
1. Problem: Write a program in C to display the table of a number and print the sum of
all the multiples in it.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Test Cases:

Test Case 1:
Input:
5
Expected Result Value:
5, 10, 15, 20, 25, 30, 35, 40, 45, 50
275

Test Case 2:
Input:
12
Expected Result Value:
12, 24, 36, 48, 60, 72, 84, 96, 108, 120
660

2. Instructions: You are required to write the code. You can click on compile and run
anytime to check compilation/execution status. The code should be
logically/syntactically correct.

Question: Write a program in C such that it takes a lower limit and upper limit as
inputs and print all the intermediate palindrome numbers.

Test Cases:

TestCase 1:
Input :
10 , 80
Expected Result:
11 , 22 , 33 , 44 , 55 , 66 , 77.

Test Case 2:
Input:
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
100,200
Expected Result:
101 , 111 , 121 , 131 , 141 , 151 , 161 , 171 , 181 , 191

[Link] Solutions, Yamuna Nagar

Coding Questions (Year 2022-23):-


1. An Autobiographical Number is a number N such that the first digit of N represents
the count of how many zeroes are there in N, the second digit represents the count of
how many ones are there in N and so on.

You are given a function, def FindAutoCount(n):

The function accepts string “n” which is a number and checks whether the number is an
autobiographical number or not. If it is, an integer is returned, i.e. the count of distinct
numbers in ‘n’. If not, it returns 0.

Assumption:

 The input string will not be longer than 10 characters.


 Input string will consist of numeric characters.

Note:

If string is None return 0.

Example:

Input:

n: “1210”

Output:

3
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Explanation:

0th position in the input contains the number of 0 present in input, i.e. 1, in 1st position
the count of number of 1s in input i.e. 2, in 2nd position the count of 2s in input i.e. 1,
and in 3rd position the count of 3s i.e. 0, so the number is an autobiographical number.

Now unique numbers in the input are 0, 1, 2, so the count of unique numbers is 3. So 3
is returned

[Link] Matics Pvt. Ltd. Chandigarh

Coding Questions (Year 2022-23):-


1. You are given a function, void MaxInArray(int arr[], int length); The function
accepts an integer array ‘arr’ of size ‘length’ as its argument. Implement the function to
find the maximum element of the array and print the maximum element and its index to
the standard output

(STDOUT). The maximum element and its index should be printed in separate lines.

Note:

 Array index starts with 0


 Maximum element and its index should be separated by a line in the output
 Assume there is only 1 maximum element in the array
 Print exactly what is asked, do not print any additional greeting messages

Example:

Input:

23 45 82 27 66 12 78 13 71 86

Output:
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
86

Explanation:

86 is the maximum element of the array at index 9.

Technical Interview Questions (Year 2022-23):-

65. CloudTara Technologies Pvt. Ltd., Bangalore


Coding Questions (Year 2022-23):-

1. Instructions: You are required to write the code. You can click on compile & run
anytime to check the compilation/ execution status of the program. The submitted code
should be logically/syntactically correct and pass all the test cases.

Ques: The program is supposed to calculate the sum of distance between three points
from each other.

For
x1 = 1 y1 = 1
x2 = 2 y2 = 4
x3 = 3 y3 = 6

Distance is calculated as : sqrt(x2-x1)2 + (y2-y1)

Technical Interview Questions (Year 2022-23):-

[Link] Infotech Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-

1Non-Repeating Element
2Program for array rotation
3Equilibrium index of an array
4Print array after it is right rotated K times
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
5Array is a subset of another array

[Link] Steria India Ltd., Noida


Coding Questions (Year 2022-23):-
1Write a Program to Reverse an Array
2Write code to check if two strings match where one string contains wildcard
characters
3Write a Program to find out the Spiral Traversal of a Matrix.
4Write a code to find Fibonacci Series using Recursion

[Link] Software Systems Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-
1) Write a code to Count Inversion
2) Write a code to find consecutive largest subsequenceWrite a Program to
Find out the Sum of Digits of a Number.
3) Write a Program to Find out the Power of a Number
4) Write a Program to Find out the Sum of Digits of a Number.

Technical Interview Questions (Year 2022-23):-

[Link] Technologies Pvt. Ltd., Bengaluru


Coding Questions (Year 2022-23):-

1. You are required to input the size of the matrix then the elements of matrix,
then you have to divide the main matrix in two sub matrices (even and odd) in
such a way that element at 0 index will be considered as even and element at 1st
index will be considered as odd and so on. then you have sort the even and odd
matrices in ascending order then print the sum of second largest number from
both the matrices

Example

enter the size of array : 5


enter element at 0 index : 3
enter element at 1 index : 4
enter element at 2 index : 1
enter element at 3 index : 7
enter element at 4 index : 9
Sorted even array : 1 3 9
Sorted odd array : 4 7
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION

2. Problem: Write a program in C to display the table of a number and print the sum of
all the multiples in it.

Test Cases:

Test Case 1:
Input:
5
Expected Result Value:
5, 10, 15, 20, 25, 30, 35, 40, 45, 50
275

Test Case 2:
Input:
12
Expected Result Value:
12, 24, 36, 48, 60, 72, 84, 96, 108, 120
660

Technical Interview Questions (Year 2022-23):-

[Link] Inc., Mohali


Coding Questions (Year 2022-23):-
1Write a Program to Reverse an Array
2Write code to check if two strings match where one string contains wildcard
characters
3Write a Program to find out the Spiral Traversal of a Matrix.
4Write a code to find Fibonacci Series using Recursion

[Link] System Solutions (P) Ltd., Mohali


Coding Questions (Year 2022-23):-
1. Write a code to Count Inversion
2. Write a code to find consecutive largest subsequenceWrite a Program to
Find out the Sum of Digits of a Number.
3. Write a Program to Find out the Power of a Number
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
4. Write a Program to Find out the Sum of Digits of a Number.

Technical Interview Questions (Year 2022-23):-

[Link], New Delhi


Coding Questions (Year 2022-23):-
1. Airport security officials have confiscated several item of the passengers at the
security check point. All the items have been dumped into a huge box (array). Each
item possesses a certain amount of risk[0,1,2]. Here, the risk severity of the items
represent an array[] of N number of integer values. The task here is to sort the items
based on their levels of risk in the array. The risk values range from 0 to 2.

Example :

Input :

7 -> Value of N

[1,0,2,0,1,0,2]-> Element of arr[0] to arr[N-1], while input each element is separated by


new line.

Output :

0 0 0 1 1 2 2 -> Element after sorting based on risk severity

Example 2:

input : 10 -> Value of N

[2,1,0,2,1,0,0,1,2,0] -> Element of arr[0] to arr[N-1], while input each element is


separated by a new line.

Output :

0 0 0 0 1 1 1 2 2 2 ->Elements after sorting based on risk severity.


PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Explanation:

In the above example, the input is an array of size N consisting of only 0’s, 1’s and 2s.
The output is a sorted array from 0 to 2 based on risk severity.

2. Given an integer array Arr of size N the task is to find the count of elements whose
value is greater than all of its prior elements.

Note : 1st element of the array should be considered in the count of the result.

For example,

Arr[]={7,4,8,2,9}

As 7 is the first element, it will consider in the result.

8 and 9 are also the elements that are greater than all of its previous elements.

Since total of 3 elements is present in the array that meets the condition.

Hence the output = 3.

Example 1:

Input

5 -> Value of N, represents size of Arr

7-> Value of Arr[0]

4 -> Value of Arr[1]

8-> Value of Arr[2]

2-> Value of Arr[3]


PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
9-> Value of Arr[4]

Output :

Example 2:

5 -> Value of N, represents size of Arr

3 -> Value of Arr[0]

4 -> Value of Arr[1]

5 -> Value of Arr[2]

8 -> Value of Arr[3]

9 -> Value of Arr[4]

Output :

Constraints

1<=N<=20

1<=Arr[i]<=10000

3. A supermarket maintains a pricing format for all its products. A value N is printed on
each product. When the scanner reads the value N on the item, the product of all the
digits in the value N is the price of the item. The task here is to design the software
such that given the code of any item N the product (multiplication) of all the digits of
value should be computed(price).
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Example 1:

Input :

5244 -> Value of N

Output :
160 -> Price

Explanation:

From the input above

Product of the digits 5,2,4,4

5*2*4*4= 160

Hence, output is 160.

Technical Interview Questions (Year 2022-23):-

[Link] Technologies Pvt. Ltd., Panchkula


Coding Questions (Year 2022-23):-
1) Find duplicates in O(n) time and O(1) extra space
2) Find maximum possible stolen value from houses
3) Replace each element of the Array with it’s corresponding rank
4) Sort elements by frequency
5) Sort an array according to the order defined by another array
6) Maximum Product Subarray

Technical Interview Questions (Year 2022-23):-

[Link] Stack, Mohali


Coding Questions (Year 2022-23):-

1. Non-Repeating Element
2. Program for array rotation
3. Equilibrium index of an array
4. Print array after it is right rotated K times
5. Array is a subset of another array
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Technical Interview Questions (Year 2022-23):-

[Link] Software N Application IT Solution, Gurugram


Coding Questions (Year 2022-23):-
1. Prime Numbers
2. Sum of arithmetic series
3. Sum of geometric series
4. All divisors of a natural number
5. Replace all ‘0’ with ‘5’ in an input Integer
6. Number is Positive, Negative, Odd, Even, Zero

Technical Interview Questions (Year 2022-23):-

[Link] Brew Labs, Chandigarh


Coding Questions (Year 2022-23):-
1. Write a code to Count Inversion
2. Write a code to find consecutive largest subsequenceWrite a Program to
Find out the Sum of Digits of a Number.
3. Write a Program to Find out the Power of a Number
4. Write a Program to Find out the Sum of Digits of a Number.

Technical Interview Questions (Year 2022-23):-

[Link] Consulting Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-
1. Write a Program to Reverse an Array
2. Write code to check if two strings match where one string contains
wildcard characters
3. Write a Program to find out the Spiral Traversal of a Matrix.
4. Write a code to find Fibonacci Series using Recursion

Technical Interview Questions (Year 2022-23):-

[Link] Ltd. (Erstwhile NIIT Technologies Ltd.), Noida


Coding Questions (Year 2022-23):-
1. Majority Element
2. Search in a Rotated Array
3. Sum of Middle Elements of two sorted arrays
4. Non Repeating Character
5. Kadane’s Algorithm
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Technical Interview Questions (Year 2022-23):-

[Link] technologies Pvt. Ltd., Mohali


Coding Questions (Year 2022-23):-
1. Search In Rotated Sorted Array
2. Smallest Subarray With K Distinct Elements
3. Other Questions Practice Link
4. Search In Row Wise And Column Wise Sorted Matrix
5. Inplace Rotate Matrix By 90 degree
6. Matrix Median

[Link] Software Private Limited, Chandigarh


Coding Questions (Year 2022-23):-
1. Write code to check if two strings match where one string contains
wildcard characters
2. Write a code for bubble sort
3. How is the merge sort algorithm implemented?
4. Write to code to check whether a given year is leap year or not.
5. Find non-repeating characters in a string
6. Write a code to replace a substring in a string.
7. Write a code for Heap sort.
8. Write a code to replace each element in an array by its rank in the array
9. Write a code to find circular rotation of an array by K positions.
[Link] a code to find non-repeating elements in an array.
[Link] a code to check for the longest palindrome in an array.
Write a code to find the factorial of a number

Technical Interview Questions (Year 2022-23):-

[Link] Labs Pvt. Ltd., Panchkula


Coding Questions (Year 2022-23):-
1. Write a code to Count Inversion
2. Write a code to find consecutive largest subsequenceWrite a Program to
Find out the Sum of Digits of a Number.
3. Write a Program to Find out the Power of a Number
4. Write a Program to Find out the Sum of Digits of a Number.

Technical Interview Questions (Year 2022-23):-

[Link] Limited, Gurgaon


PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Coding Questions (Year 2022-23):-
1. Intersection of two sorted Linked lists
2. Detect Loop in linked list
3. Print all nodes that don’t have sibling
4. Two Mirror Trees
5. Intersection Point in Y Shapped Linked Lists
6. Trie | (Insert and Search)
7. Implement Queue using Stacks
8. Implement Stack using Queues
9. Find the number of islands
[Link] Set Bits in Range

Technical Interview Questions (Year 2022-23):-

[Link] Software Systems, Mohali


Coding Questions (Year 2022-23):-
7. Write a Program to Add two Fractions
8. Write a Program to Find the Largest Element in an Array.
9. Write a Program to Find the Roots of a Quadratic Equation
[Link] a Program to Find the Prime Factors of a Number.
[Link] a Program to Convert Digits to Words.
[Link] a Program to Find the Factorial of a Number using Recursion.

Technical Interview Questions (Year 2022-23):-

[Link] Mobitech, Noida


Coding Questions (Year 2022-23):-
1. Write a code to find circular rotation of an array by K positions.
2. Write a code to find non-repeating elements in an array.
3. Write a code to check for the longest palindrome in an array.
4. Write a code to find the factorial of a number.
5. Write the code to for Armstrong number

Technical Interview Questions (Year 2022-23):-

[Link] Global Infotech Pvt. Ltd., Bengaluru


Coding Questions (Year 2022-23):-
Write a code to Print the smallest element of the array
1. Write a code to Reverse the element of the array
2. . Write a code to Sort the element of the array
3. Write a code to Sort the element of the array without sort method
4. Write a code to Replace a Substring in a string
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
5. . Write a code to Remove space from a string

Technical Interview Questions (Year 2022-23):-

[Link] Technologies, Zirakpur


Coding Questions (Year 2022-23):-

1. Write code to check if two strings match where one string contains
wildcard characters
2. Write a code for bubble sort
3. How is the merge sort algorithm implemented?
4. Write to code to check whether a given year is leap year or not.
5. Find non-repeating characters in a string
6. Write a code to replace a substring in a string.
7. Write a code for Heap sort.
8. Write a code to replace each element in an array by its rank in the array
9. Write a code to find circular rotation of an array by K positions.
[Link] a code to find non-repeating elements in an array.
[Link] a code to check for the longest palindrome in an array.
Write a code to find the factorial of a number

Technical Interview Questions (Year 2022-23):-

[Link], Mohali

Coding Questions (Year 2022-23):-


1) Write a Program to Add two Fractions
2) Write a Program to Find the Largest Element in an Array.
3) Write a Program to Find the Roots of a Quadratic Equation
4) Write a Program to Find the Prime Factors of a Number.
5) Write a Program to Convert Digits to Words.
6) Write a Program to Find the Factorial of a Number using Recursion.

Technical Interview Questions (Year 2022-23):-

[Link] Personal Health Record Express (India) Pvt. Ltd. (mphrX),


Gurugram
Coding Questions (Year 2022-23):-
1. Write code to check if two strings match where one string contains
wildcard characters
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
2. Write a code for bubble sort
3. How is the merge sort algorithm implemented?
4. Write to code to check whether a given year is leap year or not.
5. Find non-repeating characters in a string
6. Write a code to replace a substring in a string.
7. Write a code for Heap sort.
8. Write a code to replace each element in an array by its rank in the array
9. Write a code to find circular rotation of an array by K positions.
[Link] a code to find non-repeating elements in an array.
[Link] a code to check for the longest palindrome in an array.
Write a code to find the factorial of a number

Technical Interview Questions (Year 2022-23):-

[Link], Mohali, Mohali


Coding Questions (Year 2022-23):-
1. Write a Program to Add two Fractions
2. Write a Program to Find the Largest Element in an Array.
3. Write a Program to Find the Roots of a Quadratic Equation
4. Write a Program to Find the Prime Factors of a Number.
5. Write a Program to Convert Digits to Words.
6. Write a Program to Find the Factorial of a Number using Recursion.

Technical Interview Questions (Year 2022-23):-

[Link] Technologies Pvt. Ltd., Karnal


Coding Questions (Year 2022-23):-
1. Write a code to Count Inversion
2. Write a code to find consecutive largest subsequenceWrite a Program to
Find out the Sum of Digits of a Number.
3. Write a Program to Find out the Power of a Number
4. Write a Program to Find out the Sum of Digits of a Number.

Technical Interview Questions (Year 2022-23):-

[Link], Noida

Coding Questions (Year 2022-23):-


[Link] are given a function,
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Int MaxExponents (int a , int b);

You have to find and return the number between ‘a’ and ‘b’ ( range inclusive on
both ends) which has the maximum exponent of 2.

The algorithm to find the number with maximum exponent of 2 between the
given range is

Loop between ‘a’ and ‘b’. Let the looping variable be ‘i’.
Find the exponent (power) of 2 for each ‘i’ and store the number with maximum
exponent of 2 so faqrd in a variable , let say ‘max’. Set ‘max’ to ‘i’ only if ‘i’ has
more exponent of 2 than ‘max’.
Return ‘max’.
Assumption: a <b

Note: If two or more numbers in the range have the same exponents of 2 , return
the small number.

Example

Input:
7
12
Output:
8
Explanation:

Exponents of 2 in:

7-0

8-3

9-0

10-1

11-0

12-2

Hence maximum exponent if two is of 8.


PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Technical Interview Questions (Year 2022-23):-

[Link] Technology, Zirakpur


Coding Questions (Year 2022-23):-
1. Write a Program to Reverse an Array
2. Write code to check if two strings match where one string contains
wildcard characters
3. Write a Program to find out the Spiral Traversal of a Matrix.
4. Write a code to find Fibonacci Series using Recursion

Technical Interview Questions (Year 2022-23):-

[Link] Monk, New Delhi


Coding Questions (Year 2022-23):-
1. Pair Sum
2. Overlapping Intervals
3. Sort 0 1 2
4. Search In Rotated Sorted Array
5. Smallest Subarray With K Distinct Elements
6. Other Questions Practice Link
7. Search In Row Wise And Column Wise Sorted Matrix
8. Inplace Rotate Matrix By 90 degree
9. Matrix Median

Technical Interview Questions (Year 2022-23):-

[Link] Infotech & Designs Ltd., Noida


Coding Questions (Year 2022-23):-
1) Write a code to Count Inversion
2) Write a code to find consecutive largest subsequenceWrite a Program to
Find out the Sum of Digits of a Number.
3) Write a Program to Find out the Power of a Number
4) Write a Program to Find out the Sum of Digits of a Number.

Technical Interview Questions (Year 2022-23):-

[Link], Noida
Coding Questions (Year 2022-23):-

1. Write a Program to Add two Fractions


2. Write a Program to Find the Largest Element in an Array.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
3. Write a Program to Find the Roots of a Quadratic Equation
4. Write a Program to Find the Prime Factors of a Number.
5. Write a Program to Convert Digits to Words.
6. Write a Program to Find the Factorial of a Number using Recursion.

Technical Interview Questions (Year 2022-23):-

[Link] Infosolutions Pvt. Ltd., Noida


Coding Questions (Year 2022-23):-
1. Write a Program to Reverse an Array
2. Write code to check if two strings match where one string contains
wildcard characters
3. Write a Program to find out the Spiral Traversal of a Matrix.
4. Write a code to find Fibonacci Series using Recursion

Technical Interview Questions (Year 2022-23):-

[Link] Technologies India Pvt. Ltd., Noida


Coding Questions (Year 2022-23):-
1. Write a code to find circular rotation of an array by K positions.
2. Write a code to find non-repeating elements in an array.
3. Write a code to check for the longest palindrome in an array.
4. Write a code to find the factorial of a number.
5. Write the code to for Armstrong number

Technical Interview Questions (Year 2022-23):-

[Link] Infotech Pvt. Ltd., Gurugram


Coding Questions (Year 2022-23):-

1. Write code to check if two strings match where one string contains
wildcard characters
2. Write a code for bubble sort
3. How is the merge sort algorithm implemented?
4. Write to code to check whether a given year is leap year or not.
5. Find non-repeating characters in a string
6. Write a code to replace a substring in a string.
7. Write a code for Heap sort.
8. Write a code to replace each element in an array by its rank in the array
9. Write a code to find circular rotation of an array by K positions.
[Link] a code to find non-repeating elements in an array.
[Link] a code to check for the longest palindrome in an array.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Write a code to find the factorial of a number

Technical Interview Questions (Year 2022-23):-

[Link] Solutions Pvt. Ltd., Gurgaon


Coding Questions (Year 2022-23):-
1. You are required to implement the following function.

Int OperationChoices(int c, int n, int a , int b )

The function accepts 3 positive integers ‘a’ , ‘b’ and ‘c ‘ as its arguments.
Implement the function to return.

( a+ b ) , if c=1
( a – b ) , if c=2
( a * b ) , if c=3
(a / b) , if c =4
Assumption : All operations will result in integer output.

Example:

Input
c :1
a:12
b:16
Output:
Since ‘c’=1 , (12+16) is performed which is equal to 28 , hence 28 is returned.
Sample Input

c:2

a : 16

b : 20

Sample Output

-4
Technical Interview Questions (Year 2022-23):-

100. HP Inc., Bengaluru


Coding Questions (Year 2022-23):-
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
1. You are given a function,

Void *ReplaceCharacter(Char str[], int n, char ch1, char ch2);

The function accepts a string ‘ str’ of length n and two characters ‘ch1’ and
‘ch2’ as its arguments . Implement the function to modify and return the string ‘
str’ in such a way that all occurrences of ‘ch1’ in original string are replaced by
‘ch2’ and all occurrences of ‘ch2’ in original string are replaced by ‘ch1’.

Assumption: String Contains only lower-case alphabetical letters.

Note:

Return null if string is null.


If both characters are not present in string or both of them are same , then return
the string unchanged.
Example:

Input:
Str: apples
ch1:a
ch2:p
Output:
paales
Explanation:

‘A’ in original string is replaced with ‘p’ and ‘p’ in original string is replaced
with ‘a’, thus output is paales

Technical Interview Questions (Year 2022-23):-

101. BUCK, Chandigarh

Coding Questions (Year 2022-23):-

1. Search In Rotated Sorted Array


2. Smallest Subarray With K Distinct Elements
3. Other Questions Practice Link
4. Search In Row Wise And Column Wise Sorted Matrix
5. Inplace Rotate Matrix By 90 degree
6. Matrix Median

102. Capgemini Technology Services India Ltd., Navi Mumbai


PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Coding Questions (Year 2022-23):-

1. Implement the following functions.a

char*MoveHyphen(char str[],int n);

The function accepts a string “str” of length ‘n’, that contains alphabets and
hyphens (-). Implement the function to move all hyphens(-) in the string to the
front of the given string.

NOTE:- Return null if str is null.

Example :-

Input:
[Link]-Hyphens-to-Front
Output:
—MoveHyphenstoFront
Explanation:-

The string “Move-Hyphens -to-front” has 3 hyphens (-), which are moved to the
front of the string, this output is “— MoveHyphen”

2. A carry is a digit that is transferred to left if sum of digits exceeds 9 while


adding two numbers from right-to-left one digit at a time

You are required to implement the following function.

Int NumberOfCarries(int num1 , int num2);

The functions accepts two numbers ‘num1’ and ‘num2’ as its arguments. You
are required to calculate and return the total number of carries generated while
adding digits of two numbers ‘num1’ and ‘ num2’.

Assumption: num1, num2>=0

Example:

Input
Num 1: 451
Num 2: 349
Output
2
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Explanation:

Adding ‘num 1’ and ‘num 2’ right-to-left results in 2 carries since ( 1+9) is 10. 1
is carried and (5+4=1) is 10, again 1 is carried. Hence 2 is returned.

Sample Input

Num 1: 23

Num 2: 563

Sample Output

103. Accenture Solutions Pvt. Ltd., Bengaluru


Coding Questions (Year 2022-23):-

[Link] function accepts two positive integers ‘r’ and ‘unit’ and a positive integer
array ‘arr’ of size ‘n’ as its argument ‘r’ represents the number of rats present in
an area, ‘unit’ is the amount of food each rat consumes and each ith element of
array ‘arr’ represents the amount of food present in ‘i+1’ house number, where 0
<= i

Note:

Return -1 if the array is null


Return 0 if the total amount of food from all houses is not sufficient for all the
rats.
Computed values lie within the integer range.
Example:

Input:

r: 7
unit: 2
n: 8
arr: 2 8 3 5 7 4 1 2
Output:

4
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Explanation:
Total amount of food required for all rats = r * unit

= 7 * 2 = 14.

The amount of food in 1st houses = 2+8+3+5 = 18. Since, amount of food in 1st
4 houses is sufficient for all the rats. Thus, output is 4.

2. The Binary number system only uses two digits, 0 and 1 and number system
can be called binary string. You are required to implement the following
function:

int OperationsBinaryString(char* str);

The function accepts a string str as its argument. The string str consists of binary
digits eparated with an alphabet as follows:

– A denotes AND operation


– B denotes OR operation
– C denotes XOR Operation
You are required to calculate the result of the string str, scanning the string to
right taking one opearation at a time, and return the same.

Technical Interview Questions (Year 2022-23):-

104. Revenue Technology Services, Mohali


Coding Questions (Year 2022-23):-

1. def ProductSmallestPair(sum, arr)

The function accepts an integers sum and an integer array arr of size n.
Implement the function to find the pair, (arr[j], arr[k]) where j!=k, Such that
arr[j] and arr[k] are the least two elements of array (arr[j] + arr[k] <= sum) and
return the product of element of this pair

NOTE

Return -1 if array is empty or if n<2


Return 0, if no such pairs found
All computed values lie within integer range
Example
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Input

sum:9

size of Arr = 7

Arr:5 2 4 3 9 7 1

Output

Explanation

Pair of least two element is (2, 1) 2 + 1 = 3 < 9, Product of (2, 1) 2*1 = 2. Thus,
output is 2

Sample Input

sum:4

size of Arr = 6

Arr:9 8 3 -7 3 9

Sample Output

-21

2. N-base notation is a system for writing numbers that uses only n different
symbols, This symbols are the first n symbols from the given notation
list(Including the symbol for o) Decimal to n base notation are (0:0, 1:1, 2:2, 3:3,
4:4, 5:5, 6:6, 7:7, 8:8, 9:9, 10:A,11:B and so on upto 35:Z)

Implement the following function

Char* DectoNBase(int n, int num):

The function accept positive integer n and num Implement the function to
calculate the n-base equivalent of num and return the same as a string

Steps:
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Divide the decimal number by n,Treat the division as the integer division
Write the the remainder (in n-base notation)
Divide the quotient again by n, Treat the division as integer division
Repeat step 2 and 3 until the quotient is 0
The n-base value is the sequence of the remainders from last to first
Assumption:
1 < n < = 36

Example

Input
n: 12
num: 718

Output
4BA

Explanation
num Divisor quotient remainder
718 12 59 10(A)
59 12 4 11(B)
4 12 0 4(4)

Sample Input
n: 21
num: 5678

Sample Output
CI8

105. Tata Communications Transformation Services Ltd., Mumbai


Coding Questions (Year 2022-23):-

[Link] are given a function.


int CheckPassword(char str[], int n);
The function accepts string str of size n as an argument. Implement the function
which returns 1 if given string str is valid password else 0.
str is a valid password if it satisfies the below conditions.

– At least 4 characters
– At least one numeric digit
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
– At Least one Capital Letter
– Must not have space or slash (/)
– Starting character must not be a number
Assumption:
Input string will not be empty.

Example:

Input 1:
aA1_67
Input 2:
a987 abC012

Output 1:
1
Output 2:
0

106. Reliance Jio Platforms Ltd., Mumbai

Coding Questions (Year 2022-23):-


1. int findCount(int arr[], int length, int num, int diff);

The function accepts an integer array ‘arr’, its length and two integer variables
‘num’ and ‘diff’. Implement this function to find and return the number of
elements of ‘arr’ having an absolute difference of less than or equal to ‘diff’ with
‘num’.
Note: In case there is no element in ‘arr’ whose absolute difference with ‘num’ is
less than or equal to ‘diff’, return -1.

Example:
Input:

arr: 12 3 14 56 77 13
num: 13
diff: 2
Output:
3

Explanation:
Elements of ‘arr’ having absolute difference of less than or equal to ‘diff’ i.e. 2
with ‘num’ i.e. 13 are 12, 13 and 14.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
2. The function accepts two integers n, m as arguments Find the sum of all numbers in
range from 1 to m(both inclusive) that are not divisible by n. Return difference between
sum of integers not divisible by n with sum of numbers divisible by n.

Assumption:

 n>0 and m>0


 Sum lies between integral range

Example

Input
n:4
m:20
Output
90

Explanation

 Sum of numbers divisible by 4 are 4 + 8 + 12 + 16 + 20 = 60


 Sum of numbers not divisible by 4 are 1 +2 + 3 + 5 + 6 + 7 + 9 + 10 + 11 + 13 +
14 + 15 + 17 + 18 + 19 = 150
 Difference 150 – 60 = 90

Sample Input
n:3
m:10
Sample Output
19

2. You are required to implement the following Function

def LargeSmallSum(arr)

The function accepts an integers arr of size ’length’ as its arguments you are required to
return the sum of second largest element from the even positions and second smallest
from the odd position of given ‘arr’
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
Assumption:

All array elements are unique


Treat the 0th position as even
NOTE

Return 0 if array is empty


Return 0, if array length is 3 or less than 3
Example

Input

arr:3 2 1 7 5 4

Output

Explanation

Second largest among even position elements(1 3 5) is 3


Second smallest among odd position element is 4
Thus output is 3+4 = 7
Sample Input

arr:1 8 0 2 3 5 6

Sample Output

Technical Interview Questions (Year 2022-23):-

1. Introduce yourself
2. What are your Hobbies? I said I love playing games so he asked me about
my favorite game and My laptop specs.
3. What is the Difference between 8th gen and 9th gen processor?
4. What are DDL, and DML commands?
5. What is Normalization? explain Types
6. What are ACID properties?
7. Explain OOPS concepts.
8. Explain Polymorphism.
PAST YEAR CODING QUESTIONS AND TECHNICAL
I INTERVIEW QUESTION
9. I mentioned Data Structured in my resume so he asked me a few ds
questions.

[Link] is Data Structure?


[Link] vs Linked List
[Link] is Linked List better than an array?
[Link] Types of Queue.

You might also like