i
UST
Filter interviews by
Counting characters using streams in Java
Use the chars() method to convert the string to an IntStream of characters
Use the count() method to count the number of characters in the stream
I applied via Naukri.com and was interviewed in Aug 2022. There was 1 interview round.
To check if a linked list is circular or linear, we need to traverse the list and check if it loops back to a previous node.
Traverse the linked list using two pointers, one moving one node at a time and the other moving two nodes at a time.
If the faster pointer catches up to the slower pointer, then the list is circular.
If the faster pointer reaches the end of the list without catching up to the slower pointer, then th
Count the number of set bits in a given number.
Use bitwise AND operator with 1 to check if the rightmost bit is set.
Shift the number to right by 1 bit and repeat the process until the number becomes 0.
Keep a count of the number of set bits encountered.
Example: For number 5 (101 in binary), the answer is 2 as there are 2 set bits.
Example: For number 15 (1111 in binary), the answer is 4 as there are 4 set bits.
Segmentation fault is a type of error caused by accessing memory that “does not belong to you.”
It occurs when a program tries to access a memory location that it is not allowed to access.
It is often caused by programming errors such as accessing an array beyond its bounds.
It can also be caused by hardware problems such as faulty RAM or overheating.
Segmentation faults can be difficult to debug because they often occur i...
posted on 25 Feb 2022
NA
I applied via Campus Placement
posted on 21 Dec 2022
Explanation of linked list reversal and RabbitMQ
Linked list reversal can be done iteratively or recursively
Iterative reversal involves changing the pointers of each node to point to the previous node
Recursive reversal involves calling the function recursively on the next node and changing its pointer to the current node
RabbitMQ is a message broker that allows for asynchronous communication between applications
It uses a...
I appeared for an interview before Jul 2021.
This will be a general apptitude test where a questionnaire is consist of reasoning, English and Maths questions
I appeared for an interview before Nov 2020.
Round duration - 180 Minutes
Round difficulty - Medium
The test was started in the evening 4pm approx.
It was flexible due to Corona so we gave the test from our home only.
It had listening skill activity too according to which we were marked .
Interviewer was very supportive because of which it was easier for us to open up easily .
You are provided with a string expression
consisting of characters '+', '-', '*', '/', '(', ')' and digits '0' to '9', representing an arithmetic express...
Evaluate arithmetic expressions in infix notation with given operators and precedence rules.
Parse the infix expression to postfix using a stack and then evaluate the postfix expression using another stack
Use a stack to keep track of operators and operands while parsing the expression
Handle operator precedence and associativity rules while converting to postfix and evaluating the expression
Given a string 'STR' consisting solely of the characters “{”, “}”, “(”, “)”, “[” and “]”, determine if the parentheses are balanced.
The first line contains an...
The task is to determine if a given string of parentheses is balanced or not.
Iterate through the characters of the string and use a stack to keep track of opening parentheses.
When encountering an opening parenthesis, push it onto the stack. When encountering a closing parenthesis, check if it matches the top of the stack.
If the stack is empty at the end or there are unmatched parentheses, the string is not balanced.
Exa...
Round duration - 20 Minutes
Round difficulty - Medium
Interview
Ninja is exploring new challenges and desires to reverse a given number. Your task is to assist Ninja in reversing the number provided.
If a number has trailing ze...
Implement a function to reverse a given number, omitting trailing zeros.
Create a function that takes an integer as input and reverses it while omitting trailing zeros
Use string manipulation to reverse the number and remove any trailing zeros
Handle test cases where the number has leading zeros as well
Ensure the reversed number is printed for each test case on a new line
Tip 1 : confidence is the key.
Tip 2 : focus on communication skills.
Tip 3 : be honest and well prepared about your projects and trainings .
Tip 1 : it should be to the point.
Tip 2 : be honest. And one should know everything that is written down there.
I applied via Recruitment Consulltant and was interviewed before Aug 2021. There were 2 interview rounds.
I appeared for an interview before Jul 2021.
Polymorphism is the ability of an object to take on many forms. It allows objects of different classes to be treated as if they were of the same class.
Polymorphism is achieved through method overriding and method overloading.
Method overriding is when a subclass provides a specific implementation of a method that is already provided by its parent class.
Method overloading is when a class has two or more methods with the ...
Dependency Injection is a design pattern where the dependencies of an object are injected into it rather than created within it.
It helps in achieving loose coupling between objects
It makes testing easier as dependencies can be mocked or stubbed
There are three types of Dependency Injection - Constructor Injection, Setter Injection, and Interface Injection
Example: In a web application, the database connection object can ...
Garbage Collection in .Net automatically manages memory by freeing up unused objects.
Garbage Collector runs in the background and periodically checks for unused objects.
It frees up memory by deallocating objects that are no longer being used.
GC can be configured using different modes like Server, Workstation, Concurrent, etc.
GC can also be manually triggered using GC.Collect() method.
GC.SuppressFinalize() method can be...
I applied via LinkedIn and was interviewed in May 2021. There were 3 interview rounds.
Garbage collection is an automatic memory management process.
It frees up memory that is no longer being used by the program.
It helps prevent memory leaks and crashes caused by running out of memory.
Examples of languages that use garbage collection are Java, Python, and Ruby.
based on 1 interview
Interview experience
based on 1 review
Rating in categories
Software Developer
2.1k
salaries
| ₹2.5 L/yr - ₹12.1 L/yr |
Senior Software Engineer
1.7k
salaries
| ₹7.2 L/yr - ₹27.8 L/yr |
Software Engineer
1.3k
salaries
| ₹3.8 L/yr - ₹15.5 L/yr |
System Analyst
1.1k
salaries
| ₹6.1 L/yr - ₹18.2 L/yr |
Validation Engineer
933
salaries
| ₹2 L/yr - ₹7 L/yr |
Accenture
Wipro
Cognizant
Capgemini