NCR Voyix
10+ ICICI Bank Interview Questions and Answers
Q1. Search In Rotated Sorted Array Problem Statement
Given a rotated sorted array ARR
of size 'N' and an integer 'K', determine the index at which 'K' is present in the array.
Note:
1. If 'K' is not present in ARR,...read more
Given a rotated sorted array, find the index of a given integer 'K'.
Use binary search to efficiently find the index of 'K'.
Consider the rotation of the array while performing the search.
Handle cases where 'K' is not present in the array by returning -1.
Q2. What is Software Development Cycle??What are the phase in software development??
Software Development Cycle is a process of designing, creating, testing, and deploying software.
The phases of Software Development Cycle are Planning, Analysis, Design, Implementation, Testing, Deployment, and Maintenance.
Planning involves defining the project scope, goals, and requirements.
Analysis involves gathering and analyzing user requirements.
Design involves creating a detailed design of the software.
Implementation involves writing code and integrating different compon...read more
Q3. What is waterfall model?? What are the phases in waterfall model??
Waterfall model is a linear sequential approach to software development.
Phases: Requirements gathering, Design, Implementation, Testing, Deployment, Maintenance
Each phase must be completed before moving to the next
No going back to previous phases
Documentation is important
Less flexible than Agile model
Query to find the nth highest salary from a database
Use ORDER BY and LIMIT in the query
Consider handling ties if multiple employees have the same salary
Example: SELECT DISTINCT salary FROM employees ORDER BY salary DESC LIMIT n-1, 1
Access modifiers in Java control the visibility and accessibility of classes, methods, and variables.
There are four types of access modifiers in Java: public, private, protected, and default.
Public: accessible from any other class.
Private: accessible only within the same class.
Protected: accessible within the same package and subclasses.
Default: accessible only within the same package.
Example: public class MyClass { private int myVar; protected void myMethod() {}}
OOP concepts are fundamental principles in object-oriented programming that help in organizing and designing code.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Allowing a class to inherit properties and behavior from another class.
Polymorphism: The ability for objects of different classes to respond to the same message in different ways.
Abstraction: Hiding the complex implementation details and showing only the neces...read more
Q7. What is scrum methodology?
Scrum is an agile methodology used for software development and project management.
It involves iterative and incremental development.
A team works on a project in sprints, typically 2-4 weeks long.
The team has daily stand-up meetings to discuss progress and plan for the day.
The product owner prioritizes the backlog of work.
At the end of each sprint, a review and retrospective are held to evaluate progress and plan for the next sprint.
Q8. Partition Array Minimizing Subset Sum Difference
Given an array containing N non-negative integers, your task is to partition this array into two subsets such that the absolute difference between their sums is ...read more
The task is to partition an array into two subsets such that the absolute difference between subset sums is minimum.
Iterate through all possible subsets of the array
Calculate the sum of each subset
Find the minimum absolute difference between the subset sums
Q9. Longest Palindromic Substring Problem Statement
You are provided with a string STR
of length N
. The goal is to identify the longest palindromic substring within this string. In cases where multiple palindromic ...read more
Given a string, find the longest palindromic substring, prioritizing the one with the smallest start index.
Iterate through the string and expand around each character to find palindromes
Keep track of the longest palindrome found and its starting index
Return the longest palindromic substring with the smallest start index
Q10. What is agile model??
Agile model is an iterative approach to software development that emphasizes flexibility and customer satisfaction.
Agile model involves continuous collaboration between cross-functional teams and customers
It prioritizes working software over comprehensive documentation
It allows for changes and adjustments to be made throughout the development process
Examples of agile methodologies include Scrum, Kanban, and Extreme Programming (XP)
Q11. Reverse a Doubly Linked List
Given a doubly linked list of positive integers with size 'N', reverse the list and return the head of the modified list.
Explanation:
A doubly linked list allows traversal in both ...read more
The task is to reverse a given doubly linked list and return the head of the modified list.
Create three pointers: prev, current, and next.
Iterate through the linked list and update the next and prev pointers for each node.
Finally, update the head pointer to the last node visited and return it as the head of the reversed list.
Q12. Prime Time Again Problem Statement
You are given two integers DAY_HOURS
and PARTS
. Consider a day with DAY_HOURS
hours, which can be divided into PARTS
equal parts. Your task is to determine the total instances...read more
Count the total instances of equivalent prime groups in a day divided into equal parts.
Divide the day into equal parts and check for prime groups at the same position in different parts.
Each prime group should consist of prime numbers occurring at different parts of the day.
Return the total number of equivalent prime groups found.
Example: For DAY_HOURS = 20 and PARTS = 2, there are 2 prime groups: 3-13 and 7-17.
Q13. Find the Third Greatest Element
Given an array 'ARR' of 'N' distinct integers, determine the third largest element in the array.
Input:
The first line contains a single integer 'T' representing the number of te...read more
Find the third largest element in an array of distinct integers.
Sort the array in descending order and return the element at index 2.
Handle cases where there are less than 3 elements in the array.
Consider edge cases like negative integers and duplicates.
Q14. Sort Elements by Frequency
Your task is to sort a list of repeated integers by their frequency in decreasing order. The element with the highest frequency should appear first. If two elements have the same freq...read more
The task is to sort a list of integers based on their frequency of repetition, with the element with the highest frequency first.
Count the frequency of each element in the list using a dictionary.
Sort the elements based on their frequency in descending order.
If two elements have the same frequency, maintain their original order.
Return the sorted list.
Q15. Count Distinct Ways to Reach the Nth Stairs
Consider a scenario where you have been given a number of stairs. You start at the 0th stair and need to reach the Nth stair. With each stride, you can choose to eith...read more
The task is to find the number of distinct ways to move from the 0th to the Nth stair by ascending one or two steps at a time.
Use dynamic programming to solve this problem efficiently.
The number of ways to reach the Nth stair is the sum of the number of ways to reach the (N-1)th stair and the number of ways to reach the (N-2)th stair.
Handle base cases for N=0 and N=1 separately.
Consider using memoization to avoid redundant calculations.
Example: For N=3, the number of distinct...read more
I have worked on projects involving web development, machine learning, and mobile app development using technologies such as React, Python, and Flutter.
Web development project using React and Node.js for frontend and backend
Machine learning project using Python and TensorFlow for model training and deployment
Mobile app development project using Flutter for cross-platform app development
Q17. explain oops concept and it's pillars
OOPs stands for Object-Oriented Programming. It is based on four main pillars: Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class B extends class A.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: using private access modifiers to restrict access to certain data.
Abstraction: Hiding the complex implementation details and showing...read more
Q18. What do you know about ncr
NCR Corporation is a global technology company that provides products and services for businesses.
NCR stands for National Cash Register, originally founded in 1884
They specialize in self-service kiosks, point-of-sale terminals, ATMs, and software solutions
NCR serves industries such as retail, hospitality, financial services, and healthcare
Top HR Questions asked in ICICI Bank
Interview Process at ICICI Bank
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month