Bharti Airtel
10+ SoftwareONE Interview Questions and Answers
Q1. N-th Fibonacci Number Problem Statement
Given an integer ‘N’, your task is to find and return the N’th Fibonacci number using matrix exponentiation.
Since the answer can be very large, return the answer modulo ...read more
The task is to find the Nth Fibonacci number using matrix exponentiation and return the answer modulo 10^9 + 7.
Implement a function to find the Nth Fibonacci number using matrix exponentiation.
Return the answer modulo 10^9 + 7 to handle large values.
Use the formula F(n) = F(n-1) + F(n-2) with initial values F(1) = F(2) = 1.
Optimize the solution to achieve better than O(N) time complexity.
Consider solving the problem using dynamic programming or matrix exponentiation technique...read more
Q2. Covid Vaccination Distribution Problem
As the Government ramps up vaccination drives to combat the second wave of Covid-19, you are tasked with helping plan an effective vaccination schedule. Your goal is to ma...read more
Given constraints and rules, maximize vaccines administered on a specific day during a vaccination drive.
Iterate through each test case and calculate the maximum number of vaccines administered on the specified day.
Distribute the available vaccines evenly across the days while adhering to the rules.
Ensure that the sum of vaccines administered does not exceed the maximum allowed.
Maximize the vaccines administered on the specified day to meet the requirements.
Q3. Swap Kth Elements in an Array
Given an array ARR
of size N
, perform the operation to swap the Kth element from the beginning with the Kth element from the end of the array.
Example:
Input:
N = 5, K = 2
ARR = [1,...read more
Swap Kth elements in an array with given constraints.
Create a function that takes the array, K value, and size of the array as input
Swap the Kth element from the beginning with the Kth element from the end
Handle edge cases like K being out of bounds or array size being less than 2
The minimum number of characters needed to convert a string into a palindrome is the length of the string minus the length of the longest palindromic subsequence of the string.
Find the longest palindromic subsequence of the given string.
Subtract the length of the longest palindromic subsequence from the length of the original string to get the minimum number of characters needed to convert it into a palindrome.
Yes, I have solved a complex Java problem on my own.
I once had to optimize a large-scale Java application by implementing multithreading to improve performance.
I successfully debugged a memory leak issue in a Java program by analyzing heap dumps and identifying the root cause.
I designed and implemented a custom data structure in Java to efficiently solve a specific problem.
Q6. Why react is fast than other frameworks
React is faster than other frameworks due to its virtual DOM, efficient diffing algorithm, and use of server-side rendering.
React uses a virtual DOM which allows it to update only the necessary components instead of re-rendering the entire page.
React's efficient diffing algorithm compares the virtual DOM with the actual DOM to minimize updates and improve performance.
React supports server-side rendering, which can improve initial load times by rendering the UI on the server b...read more
Q7. What is MFS in abinitio?
MFS in Abinitio stands for Multi-File System, which is a feature that allows Abinitio graphs to read/write data from multiple files simultaneously.
MFS allows parallel processing of data from multiple files in Abinitio graphs
It helps in improving performance by distributing the workload across multiple files
MFS can be configured to read/write data from/to different file systems or locations
Example: Using MFS, a graph can read data from multiple input files and write the output...read more
Q8. JavaScript prototype sorting function
JavaScript prototype sorting function for arrays of strings
Use the Array.prototype.sort() method to sort an array of strings
Pass a compare function to specify the sorting order
Example: ['banana', 'apple', 'cherry'].sort((a, b) => a.localeCompare(b))
Q9. Session Management in applications
Session management is the process of securely managing user sessions in web applications.
Use cookies or tokens to track user sessions
Implement session timeout to prevent unauthorized access
Store session data securely on the server side
Use HTTPS to encrypt session data during transmission
Q10. Promise polyfill from scratch
Creating a Promise polyfill from scratch involves implementing the Promise API using callbacks and handling asynchronous operations.
Understand the Promise API and its methods (resolve, reject, then, catch)
Implement a constructor function that takes an executor function as an argument
Handle asynchronous operations using callbacks and setTimeout
Implement the then and catch methods to handle success and error cases respectively
Interview Process at SoftwareONE
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month