Add office photos
Employer?
Claim Account for FREE

Unthinkable Solutions

3.1
based on 158 Reviews
Filter interviews by

20+ Interview Questions and Answers

Updated 13 Nov 2024
Q1. Find Duplicate in Array

You are given an array of integers 'ARR' containing N elements. Each integer is in the range [1, N-1], with exactly one element repeated in the array.

Your task is to find the duplicate e...read more

Ans.

The task is to find the duplicate element in an array of integers.

  • Iterate through the array and keep track of the frequency of each element using a hash map.

  • Return the element with a frequency greater than 1.

  • Alternatively, sort the array and check for adjacent elements with the same value.

View 6 more answers
Q2. Trapping Rain Water

You have been given a long type array/list 'ARR' of size 'N'. It represents an elevation map wherein 'ARR[i]' denotes the elevation of the 'ith' bar. Print the total amount of rainwater that ...read more

Ans.

The question asks to find the total amount of rainwater that can be trapped in the given elevation map.

  • Iterate through the array and find the maximum height on the left and right side of each bar.

  • Calculate the amount of water that can be trapped on each bar by subtracting its height from the minimum of the maximum heights on both sides.

  • Sum up the amount of water trapped on each bar to get the total amount of rainwater trapped.

View 4 more answers
Q3. Reverse string Word Wise

Reverse the given string word wise. That is, the last word in given string should come at 1st place, last second word at 2nd place and so on. Individual words should remain as it is.

Inp...read more
Ans.

The given string needs to be reversed word wise, keeping the individual words intact.

  • Split the string into an array of words using a space as the delimiter.

  • Reverse the array of words.

  • Join the reversed array of words using a space as the separator to form the final reversed string.

View 3 more answers
Q4. Sort An Array of 0s, 1s and 2s

You have been given an array/list ARR consisting of ‘N’ elements. Each element in the array is either 0, 1 or 2.

Now, your task is to sort this array/list in increasing order. For ...read more

Ans.

The task is to sort an array of 0s, 1s, and 2s in increasing order.

  • Use a three-pointer approach to partition the array into three sections: 0s, 1s, and 2s.

  • Initialize three pointers: low, mid, and high. low points to the start of the array, mid points to the current element being processed, and high points to the end of the array.

  • While mid <= high, perform the following checks: if arr[mid] == 0, swap arr[low] and arr[mid], increment low and mid. If arr[mid] == 1, increment mid...read more

View 4 more answers
Discover null interview dos and don'ts from real experiences
Q5. Second largest element in the array

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present. b) If no...read more
Ans.

The task is to find the second largest element in an array of integers.

  • Iterate through the array and keep track of the largest and second largest elements.

  • Initialize the largest and second largest variables with the first two elements of the array.

  • Compare each element with the largest and second largest variables and update them accordingly.

  • Return the second largest element at the end.

View 3 more answers
Q6. Sort Array

You are given ‘N’ distinct integers in the form of an array ‘ARR’. You need to find whether it is possible to sort the given array by choosing a continuous subarray and reversing that subarray. You ha...read more

Ans.

The question asks whether it is possible to sort an array by choosing a continuous subarray and reversing it.

  • Check if the array is already sorted. If yes, return true.

  • Find the first and last elements of the subarray that needs to be reversed.

  • Check if the subarray is in non-decreasing order. If yes, return true.

  • Check if the elements after the subarray are in non-increasing order. If yes, return true.

  • Otherwise, return false.

View 3 more answers
Are these interview questions helpful?
Q7. KthLargestNumber

You will be given a stream of numbers, and you need to find the kth largest number in the stream at any given time.

As the stream of numbers can not be given during compile time, so you need to ...read more

View 2 more answers
Q8. Search In BST

There is a Binary Search Tree (BST) consisting of ‘N’ nodes. Each node of this BST has some integer data.

You are given a pointer to the root node of this BST, and an integer ‘X’. Print "True" if t...read more

View 2 more answers
Share interview questions and help millions of jobseekers 🌟
Q9. Remove Duplicates

Ninja is playing with numbers but hates when he gets duplicate numbers. Ninja is provided an array, and he wants to remove all duplicate elements and return the array, but he has to maintain th...read more

View 2 more answers

Q10. 1) coding question range is given example 2 to 10 in this range find 3 largest prime number sum. and for this 2 to 10 range exmaple is 3, 5 , 7 sum=15.

Ans.

Find the sum of three largest prime numbers within a given range.

  • Create a function to check if a number is prime.

  • Loop through the given range and store prime numbers in an array.

  • Sort the array in descending order and sum the first three elements.

  • Return the sum.

Add your answer
Q11. Technical Questions

What is a semaphore?
What is race condition?
Describe all the joins in SQL with a Venn diagram.

Add your answer

Q12. Implement debouncing, create a nodejs server with a get / post api, a puzzle, javascript questions like clousers, let / var / const, event loop, output based questions etc.

Ans.

Implement debouncing, create a nodejs server with get/post api, and answer JavaScript questions.

  • Implement debouncing by using setTimeout and clearTimeout to limit the number of times a function is called.

  • Create a nodejs server with Express framework to handle get and post requests.

  • Answer JavaScript questions on closures, let/var/const, event loop, and output based questions.

  • Provide examples for each concept to demonstrate understanding.

Add your answer

Q13. SQL query to find second highest salary

Ans.

SQL query to find second highest salary

  • Use the ORDER BY clause to sort salaries in descending order

  • Use the LIMIT clause to retrieve the second row

Add your answer

Q14. what is SANITY , Smoke Testing. Explain difference giving live project examples.

Ans.

Sanity and Smoke Testing are types of software testing used to ensure the stability of the application.

  • Smoke Testing is a quick and shallow test to check if the application is stable enough for further testing.

  • Sanity Testing is a more thorough test to check if the application is ready for release.

  • Smoke Testing is usually done after a new build is released, while Sanity Testing is done after major changes are made to the application.

  • Example of Smoke Testing: Checking if the lo...read more

Add your answer

Q15. Star pattern in C language

Ans.

Star pattern is a common programming exercise to print a pattern of stars in a specific shape.

  • Use nested loops to print the desired number of rows and columns.

  • Use if-else statements to determine when to print a star or a space.

  • Experiment with different loop conditions and print statements to create different patterns.

Add your answer

Q16. What is difference between integration and System testing.

Ans.

Integration testing checks if different modules work together, while system testing checks if the entire system meets requirements.

  • Integration testing focuses on testing the interfaces between modules or components of a system.

  • System testing focuses on testing the entire system as a whole, including all integrated components.

  • Integration testing is performed before system testing.

  • System testing is performed after integration testing.

  • Integration testing is usually done by devel...read more

Add your answer

Q17. Designing dbms for a college website

Ans.

Designing a DBMS for a college website involves creating tables for students, courses, faculty, and more.

  • Create tables for students, courses, faculty, departments, etc.

  • Establish relationships between tables using foreign keys.

  • Include attributes like student ID, course ID, faculty ID, etc.

  • Implement normalization to reduce redundancy and improve data integrity.

  • Consider implementing views for complex queries or reports.

Add your answer

Q18. What is Agile .Explain

Ans.

Agile is a project management methodology that emphasizes on iterative development, collaboration, and customer satisfaction.

  • Agile is based on the Agile Manifesto, which values individuals and interactions, working software, customer collaboration, and responding to change.

  • Agile involves breaking down a project into smaller, manageable chunks called sprints.

  • Agile encourages continuous feedback and improvement throughout the development process.

  • Examples of Agile methodologies ...read more

Add your answer

Q19. Tell about Technical Skills

Ans.

I have strong technical skills in test automation, manual testing, bug tracking, and test case design.

  • Proficient in test automation tools like Selenium and JUnit

  • Skilled in manual testing techniques and methodologies

  • Experience with bug tracking systems such as Jira

  • Ability to design comprehensive test cases for various scenarios

Add your answer

Q20. 1)Largest Area of Histogram

Ans.

The largest area of a histogram is the maximum area that can be enclosed by a rectangle within the histogram bars.

  • Calculate the largest area of a histogram by finding the maximum area of rectangles that can be formed within the histogram bars.

  • This can be done by iterating through each bar and calculating the area of rectangles that can be formed with that bar as the height.

  • Keep track of the maximum area found so far and return it as the largest area of the histogram.

Add your answer

Q21. minimum effort in an array

Ans.

Find the string with minimum length in an array of strings.

  • Iterate through the array and keep track of the minimum length string

  • Return the string with the minimum length

Add your answer

Q22. String reverse code in any language

Ans.

Reverse a string in any programming language

  • Use a loop to iterate through the characters of the string

  • Swap the characters from start to end of the string

  • Repeat until the entire string is reversed

Add your answer

Q23. Find loop in linked list

Ans.

Use Floyd's Tortoise and Hare algorithm to find a loop in a linked list.

  • Initialize two pointers, slow and fast, at the head of the linked list.

  • Move slow pointer by one step and fast pointer by two steps.

  • If they meet at some point, there is a loop in the linked list.

Add your answer

Q24. Longest common substring

Ans.

Finding the longest common substring among a set of strings.

  • Iterate through all substrings of the first string and check if they are present in all other strings.

  • Keep track of the longest common substring found so far.

  • Return the longest common substring.

Add your answer

Q25. sum without plus sign

Ans.

Use bitwise operators to perform addition without using the plus sign.

  • Use bitwise XOR operation to add two numbers without carrying over

  • Use bitwise AND operation to find the carry bits and shift them to the left

  • Repeat the process until there are no more carry bits

Add your answer

Q26. Define Constructors

Ans.

Constructors are special methods in a class that are used to initialize objects.

  • Constructors have the same name as the class they belong to.

  • They are called automatically when an object of the class is created.

  • Constructors can have parameters to initialize the object with specific values.

  • Example: public class Car { public Car(String color) { this.color = color; }}

Add your answer

Q27. Define Oops pillars

Ans.

Oops pillars refer to the four main concepts of object-oriented programming: Inheritance, Encapsulation, Polymorphism, and Abstraction.

  • Inheritance: Allows a class to inherit properties and behavior from another class.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit.

  • Polymorphism: Ability of a function to behave differently based on the object it is acting upon.

  • Abstraction: Hiding the complex implementation details and showing only the necess...read more

Add your answer

Q28. Largest Area of Histogram

Ans.

The largest area of a histogram can be found by calculating the maximum area of rectangles formed by the histogram bars.

  • Calculate the area of rectangles formed by each bar and find the maximum area.

  • Consider the width of the rectangle as the number of consecutive bars with height greater than or equal to the current bar.

  • Example: For histogram [2,1,5,6,2,3], the largest area would be 10 (5*2).

Add your answer

Q29. reverse the string

Ans.

Reverse a given string

  • Use a loop to iterate through the characters of the string and build a new string in reverse order

  • Alternatively, use built-in functions like reverse() or StringBuilder in some programming languages

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at null

based on 35 interviews in the last 1 year
Interview experience
3.6
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 518 Interview Questions
3.8
 • 208 Interview Questions
3.6
 • 195 Interview Questions
4.2
 • 190 Interview Questions
4.3
 • 147 Interview Questions
3.8
 • 138 Interview Questions
View all
Top Unthinkable Solutions Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter