Bajaj Finserv Coding Questions
Introduction Bajaj Finserv Limited is an Indian non-banking financial services company headquartered in Pune. It is focused on lending, asset management, wealth management and insurance. This article will discuss some of the most important bajaj finserv coding questions that are asked in the Bajaj Finserv recruitment process. Question 1 Let's have a look at the first coding question for Bajaj Finserv. We will discuss the problem statement and then its solution. Problem Statement Write a program that checks whether there are two entries in the array A[] whose total is exactly x, given an array A[] of n numbers and another number x. TestCases Below are some of the example test cases shown to explain the problem: Example 1 Input: arr[] = {0, -1, 2, -3, 1} x= -2 Output: YES Example 2 Input: arr[] = {1, -2, 1, 0, 5} x = 0 Output: NO Solution Using the two-pointer technique to solve this problem can be difficult. However, the array must be sorted before e...