Filter interviews by
I applied via Naukri.com and was interviewed in Feb 2024. There were 2 interview rounds.
Exceptions in Python are handled using try-except blocks to catch and handle errors gracefully.
Use try-except blocks to catch and handle exceptions in Python.
Specify the type of exception to catch or use 'except' to catch all exceptions.
Use 'finally' block to execute code regardless of whether an exception was raised or not.
Reraise exceptions using 'raise' keyword within except block if needed.
Handle specific exception...
Method overloading is having multiple methods in the same class with the same name but different parameters. Method overriding is redefining a method in a subclass with the same signature as in the superclass.
Method overloading allows a class to have multiple methods with the same name but different parameters. Example: void print(int a) and void print(int a, int b).
Method overriding occurs when a subclass provides a s...
Polymorphism in C++ can be implemented using function overloading, function overriding, and virtual functions.
Use function overloading to have multiple functions with the same name but different parameters.
Use function overriding to have a function in a derived class with the same name and parameters as a function in the base class.
Use virtual functions to achieve runtime polymorphism by allowing a function in a base c...
In JavaScript, == is used for equality comparison, while === is used for strict equality comparison.
The == operator compares two values for equality, performing type coercion if necessary.
The === operator compares two values for strict equality, without type coercion.
Example: 1 == '1' will return true, but 1 === '1' will return false.
About all these skills and related skills
Top trending discussions
I applied via Campus Placement and was interviewed in Sep 2023. There were 2 interview rounds.
5 coding questions on google docs..duration 1 hour
I applied via Recruitment Consulltant and was interviewed in Oct 2024. There were 2 interview rounds.
Programming questions on string, array, numbers.
Difficultity level was simple.
5 questions were asked out of which 2 of them were easy and rest of them were hard.
Easy :- sorting, numbers
Hard :- bitwise, mathematical equation question.
posted on 7 Dec 2024
I applied via Campus Placement
Good question with nice logic
5 question in 1 hour so it's kinda difficult to manage time
I applied via Company Website and was interviewed before May 2023. There were 3 interview rounds.
5-6 questions were provided and a day was given.
Find minimum number of coins to make a given value using dynamic programming.
Use dynamic programming to find the minimum number of coins needed.
Create a dp array to store the minimum number of coins for each value up to the given value.
Iterate through each coin denomination and update the dp array accordingly.
Return the value at the given value index in the dp array.
Medium level question based on quantitative aptitude
Medium level leetcode questions
posted on 24 Sep 2024
Questions based on data structure
Questions based on Data structure
posted on 15 Aug 2023
I applied via Campus Placement and was interviewed in Jul 2023. There were 3 interview rounds.
IT WAS 3RD CODING ROUND IN WHICH 3 CODING QUESTIONS AND DURATION 75MIN
posted on 31 May 2022
I appeared for an interview in Sep 2021.
Round duration - 60 minutes
Round difficulty - Medium
Students who qualified in first round gets link for this round, this round had 4 questions in total, out of which 1 was output based and 3 was DSA based.
You are provided with 'N' binary tree nodes labeled from 0 to N-1, where node i has two potential children, recorded in the LEFT_CHILD[i]
and RIGHT_CHILD[i]
arrays. Dete...
The task is to determine if the given binary tree nodes form exactly one valid binary tree.
Check if there is only one root node (a node with no parent)
Check if each node has at most one parent
Check if there are no cycles in the tree
Check if all nodes are connected and form a single tree
Round duration - 75 minutes
Round difficulty - Medium
This round was of 70-75 minutes and had 3 coding questions of easy to medium level. There was some restrictions like we cannot use built-in functions in both second and third subjective round.
You are provided with an integer 'H'. Your task is to determine and print the maximum number of balanced binary trees possible with height 'H'.
A balanced binary t...
The maximum number of balanced binary trees possible with a given height is to be counted and printed.
A balanced binary tree is one in which the difference between the left and right subtree heights is less than or equal to 1.
The number of balanced binary trees can be calculated using dynamic programming.
The number of balanced binary trees with height 'H' can be obtained by summing the product of the number of balanced...
Round duration - 60 minutes
Round difficulty - Medium
This was face to face interview round of 60 minutes. It was mostly based on DSA, some questions was also asked related to my projects and DBMS. Interviewer was kind and good.
Your goal is to sort a given unsorted array ARR
such that it forms a wave array.
After sorting, the array should satisfy the wave pattern conditions:
ARR[0] &...
The task is to sort an array in a wave form, where each element is greater than or equal to its adjacent elements.
Iterate through the array and swap adjacent elements if they do not follow the wave pattern
Start from the second element and compare it with the previous element, swap if necessary
Continue this process until the end of the array
Repeat the process for the remaining elements
Return the sorted wave array
You are presented with a Binary Tree 'root', which may not necessarily be a Binary Search Tree (BST). Your objective is to identify the maximum sum of node values in any ...
The task is to find the maximum sum of node values of any subtree that is a Binary Search Tree(BST).
Traverse the binary tree in a bottom-up manner
For each node, check if it forms a BST and calculate the sum of its subtree
Keep track of the maximum sum encountered so far
Return the maximum sum
Round duration - 135 minutes
Round difficulty - Hard
This was the final technical round, it was around 2.5 hours long and based on mostly DSA and little bit Projects, DBMS, OS. Josh mainly focus on DSA and on Tree Data Structure in interview.
Given a Binary Search Tree (BST) and a target value K
, determine if there exist two unique elements in the BST such that their sum equals K
.
An integer T
, the nu...
The task is to check if there exist two unique elements in the given BST such that their sum is equal to the given target 'K'.
Traverse the BST in-order and store the elements in a sorted array
Use two pointers, one at the beginning and one at the end of the array
Check if the sum of the elements at the two pointers is equal to the target 'K'
If the sum is less than 'K', move the left pointer to the right
If the sum is grea...
Your task is to find all nodes that are exactly a distance K from a given node in an arbitrary binary tree. The distance is defined as the number of edges between ...
The task is to find all nodes in a binary tree that are at a distance K from a given node.
Implement a function that takes the binary tree, target node, and distance K as input.
Use a depth-first search (DFS) algorithm to traverse the tree and find the nodes at distance K.
Keep track of the distance from the current node to the target node while traversing.
When the distance equals K, add the current node to the result lis...
Round duration - 20 minutes
Round difficulty - Easy
This was the simple 20 minutes round
Tip 1 : Try to solve some good questions from every topic.
Tip 2 : If not have much time, then you can solve top interview questions from Leetcode.
Tip 3 : Made 2-3 good projects using any technology
Tip 1 : Keep resume short and crispy.
Tip 2 : Add coding profile handles and github link.
based on 1 interview experience
Difficulty level
Duration
based on 1 review
Rating in categories
Engineer
15
salaries
| ₹1.5 L/yr - ₹27.5 L/yr |
Senior Engineer
9
salaries
| ₹6.5 L/yr - ₹32 L/yr |
Software Engineer
6
salaries
| ₹2.9 L/yr - ₹5 L/yr |
Software Developer
5
salaries
| ₹2 L/yr - ₹3 L/yr |
Business Analyst
5
salaries
| ₹1.2 L/yr - ₹4 L/yr |
Maxgen Technologies
JoulestoWatts Business Solutions
Value Point Systems
F1 Info Solutions and Services