i
Amdocs
Filter interviews by
Clear (1)
I was interviewed in Oct 2021.
Round duration - 60 Minutes
Round difficulty - Medium
This round had 2 questions of DSA where I was asked to first explain my approach and then code it as well in a production ready manner . After that , I was asked some questions related to Operating Systems and Java .
You are given a singly Linked List with 'N' nodes containing integer data and an integer 'K'. Your task is to delete the Kth node from the end of this Lin...
Remove the Kth node from the end of a singly linked list.
Traverse the linked list to find the length 'N'.
Calculate the position to delete from the beginning as 'N - K + 1'.
Delete the node at the calculated position.
Handle edge cases like deleting the head or tail node.
You are provided with two singly linked lists containing integers, where both lists converge at some node belonging to a third linked list.
Your task is to determine t...
Find the node where two linked lists merge
Traverse both lists to find their lengths and the difference in lengths
Move the pointer of the longer list by the difference in lengths
Traverse both lists simultaneously until they meet at the merging node
The life cycle of a thread in Java involves creation, running, waiting, and termination.
A thread is created using the 'new' keyword or by implementing the Runnable interface.
The thread starts running when the start() method is called.
During execution, a thread can enter a waiting state using methods like sleep() or wait().
A thread terminates when its run() method completes or when the stop() method is called.
Round duration - 60 Minutes
Round difficulty - Medium
This round also had 2 questions of DS/Algo where I coded one of them and then we switched our discussion to DBMS and OOPS ( particularly in Java ) .
You are provided with two sorted linked lists. Your task is to merge them into a single sorted linked list and return the head of the combined linked list.
...Merge two sorted linked lists into a single sorted linked list with linear time complexity and constant space usage.
Create a dummy node to start the merged list
Compare the values of the two linked lists and add the smaller value to the merged list
Move the pointer of the merged list and the pointer of the smaller value list forward
Continue this process until one of the lists is fully traversed
Append the remaining elemen...
Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:
1. get(key)
- Return the value of the key if it exists in the cache; otherw...
Design a Least Recently Used (LRU) cache data structure that supports get and put operations with capacity constraint.
Implement a doubly linked list to keep track of the order of keys based on their recent usage.
Use a hashmap to store key-value pairs for quick access and update.
When capacity is reached, evict the least recently used item before inserting a new item.
DELETE removes specific rows from a table, while TRUNCATE removes all rows and resets auto-increment values.
DELETE is a DML command, while TRUNCATE is a DDL command.
DELETE can be rolled back, while TRUNCATE cannot be rolled back.
DELETE triggers delete triggers, while TRUNCATE does not trigger them.
DELETE is slower as it logs individual row deletions, while TRUNCATE is faster as it logs the deallocation of the data page...
Garbage collector in Java is a built-in mechanism that automatically manages memory by reclaiming unused objects.
Garbage collector runs in the background to reclaim memory from objects that are no longer in use.
It helps prevent memory leaks and optimize memory usage.
Examples of garbage collectors in Java include Serial, Parallel, CMS, G1, and Z Garbage Collectors.
Round duration - 50 Minutes
Round difficulty - Medium
This round was inclined towards some Low Level Design Principles and some concepts from Java .
Railway Reservation System for booking train tickets
Create a database to store train schedules, seat availability, and passenger information
Develop a user interface for customers to search for trains, select seats, and make payments
Implement a booking system to reserve seats and generate tickets
Include features like seat selection, cancellation, and ticket printing
Ensure security measures for payment processing and dat
Java is platform-independent because the code is compiled into bytecode which can run on any platform with a JVM, making the JVM platform-dependent.
Java code is compiled into bytecode, which is a platform-independent intermediate code
The JVM interprets and executes the bytecode on different platforms
The JVM acts as a layer of abstraction between the Java code and the underlying platform
The JVM is platform-dependent bec...
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more
I use LinkedList for insertion and deletion as it provides constant time complexity.
LinkedList provides constant time complexity for insertion and deletion operations.
ArrayList provides linear time complexity for these operations.
LinkedList is preferred when frequent insertion and deletion operations are required.
ArrayList is preferred when frequent access to elements is required.
Association refers to a relationship between two or more objects where they are connected or linked in some way.
Association is a fundamental concept in object-oriented programming.
It is used to represent a relationship between two or more objects.
The relationship can be one-to-one, one-to-many, or many-to-many.
For example, a car has an association with its engine, as it cannot function without it.
Another example is a s...
Truncate removes all data from a table while delete removes specific rows.
Truncate is faster than delete as it doesn't log individual row deletions.
Truncate cannot be rolled back while delete can be.
Truncate resets the identity of the table while delete doesn't.
Truncate doesn't fire triggers while delete does.
Query to delete record in SQL
Use DELETE statement with WHERE clause to specify the record to be deleted
Make sure to backup data before deleting
Example: DELETE FROM table_name WHERE column_name = value;
Merging two lists in Java
Create a new list to hold the merged result
Iterate through both lists and compare elements
Add the smaller element to the new list and move to the next element in that list
Repeat until all elements have been added to the new list
Return the new merged list
Top trending discussions
I applied via Company Website and was interviewed before Dec 2020. There were 4 interview rounds.
I applied via Newspaper Ad and was interviewed before Jun 2021. There were 3 interview rounds.
I applied via Referral and was interviewed before Apr 2021. There were 2 interview rounds.
Puzzles, Psychometric Test
I applied via Walk-in and was interviewed before Jan 2022. There were 3 interview rounds.
Aptitude test duration 90 min 100 question
Coding test 50 code 100 marks 60 min
I applied via Company Website and was interviewed before Jun 2021. There were 2 interview rounds.
First round was coding as well as aptitude done together went well I guess focusing on codes helps a lot.
I was interviewed in Sep 2016.
I am a passionate software developer with experience in Java, Python, and web development.
Experienced in Java, Python, and web development technologies
Strong problem-solving skills and ability to work in a team
Completed multiple projects including a web-based inventory management system
I was interviewed in May 2017.
I was interviewed in Jun 2017.
Software Developer
8.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
1.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Softwaretest Engineer
1.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Functional Test Engineer
1.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
1k
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
IBM
Infosys
Wipro