24 questions · from 2 interviews
Npci interview questions
Every question candidates reported from their Npci interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.
Npci coding and DSA questions
- 01
Search in a Binary Search Tree
Implement the search operation in a Binary Search Tree.
- 02
HashMap Internal Working
Explain the internal working mechanism of HashMap in Java.
- 03
Delete Minimum and Adjacent Elements Sum
You are given an array arr of N numbers. Each time the minimum number in the array is selected, its adjacent elements and the number itself are deleted. This process is repeated until there are no numbers left in the array. You are supposed to find and print…
Medium · From NPCI | IT Analyst
- 04
Minimum Initial Strength for Robot Path
You are given a matrix mat of size m x n . Each cell of a matrix contains strength. A robot needs a positive strength to travel from the top left corner of the matrix to the bottom right corner. At any point of the journey, its strength cannot drop to 0 or…
Medium · From NPCI | IT Analyst
- 05
Product Array Puzzle (Without Division)
Given an array nums of n integers where n > 1 , return an array output such that output[i] is equal to the product of all the elements of nums except nums[i] . The problem explicitly stated that the divide operation cannot be used.
From NPCI | IT Analyst
Npci other questions
- 01
Develop Spring Boot API
Develop a Spring Boot API based on a given problem statement, focusing on Controller–Service–Repository flow, annotations, and exception handling.
- 02
Debug Spring Boot API
Debug and fix issues in an existing Spring Boot API, with focus on Controller–Service–Repository flow, annotations, and exception handling.
- 03
SQL Query with Multiple ORDER BY
Write an SQL query involving multiple ORDER BY clauses.
- 04
Java Streams Aggregate Value
Write a Java Streams program to calculate an aggregate value from a collection.
- 05
Convert List to HashMap using Streams
Demonstrate how to convert a List into a HashMap using Java Streams.
- 06
Unchecked Exceptions in Lambda Expressions
Discuss whether unchecked exceptions can occur within lambda expressions in Java.
- 07
Java equals() Method
Explain the equals() method in Java, including its contract and common pitfalls.
- 08
CompletableFuture
Explain the working of CompletableFuture in Java and its various methods.
- 09
- 10
Synchronized Class vs Method Level
Compare and contrast the synchronized keyword when applied at the class level versus the method level in Java.
- 11
Avoid Deadlock
Discuss strategies and best practices to avoid deadlocks in concurrent programming.
- 12
transient vs volatile Keywords
Differentiate between the transient and volatile keywords in Java.
- 13
@ControllerAdvice for Global Exception Handling
Explain @ControllerAdvice as a global exception handling mechanism in Spring Boot.
- 14
Redis Sets and Use Cases
Explain Redis Sets and discuss their typical use cases.
- 15
Explain K-means, Elbow Method, CNN vs LSTM, CNN vs ANN
Explain concepts like K-means, the elbow method, CNN vs LSTM, and CNN vs ANN.
From NPCI | IT Analyst
- 16
Explain Joins, Outer Join, and provide Syntax
Explain joins, Outer Join, and provide their syntax.
From NPCI | IT Analyst
- 17
- 18
- 19
Other Machine Learning Algorithms and Explanation
What other Machine learning algorithms do you know? Explain one of them.
From NPCI | IT Analyst
Npci interview questions FAQ
What questions are asked in Npci interviews?
Candidates reported 24 distinct questions across 2 Npci interviews. 5 coding and DSA questions, 19 other questions.