i
TO THE
NEW
Filter interviews by
Detects if a linked list has a cycle using Floyd's Tortoise and Hare algorithm.
Use two pointers: slow and fast. Slow moves one step, fast moves two steps.
If there's a loop, slow and fast will eventually meet.
If fast reaches the end (null), the list has no loop.
Example: For a list 1 -> 2 -> 3 -> 4 -> 2 (cycle), slow and fast meet at 2.
This code snippet counts the frequency of each character in a string using a hash map (dictionary in Python).
Use a hash map (dictionary) to store character counts.
Iterate through each character in the string.
For each character, increment its count in the hash map.
Example: For the string 'hello', the output will be {'h': 1, 'e': 1, 'l': 2, 'o': 1}.
Understanding string pool in Java helps manage memory efficiently and optimize string operations.
String literals are stored in the string pool, which is a special memory area.
When a string is created using a literal, it checks the pool first to see if it exists.
Example: String s1 = "Hello"; String s2 = "Hello"; // s1 and s2 point to the same object in the pool.
Using 'new' keyword creates a new string object in hea...
Exception handling is crucial for managing errors in software applications, ensuring stability and user experience.
Use try-catch blocks to handle exceptions gracefully. Example: try { riskyCode(); } catch (Exception e) { handleError(e); }
Always log exceptions for debugging purposes. Example: logger.error('Error occurred', e);
Avoid using generic exceptions; catch specific exceptions to handle different error types ...
Using Java 8 Stream, find and print the name of the student with the second highest marks.
Sort the students based on marks in descending order
Skip the first student (highest marks) and find the second student
Print the name of the second student
Hash map is a data structure that stores key-value pairs and allows for efficient retrieval of values based on keys.
Hash map uses a hash function to map keys to indices in an array.
Collision handling is important in hash maps to deal with multiple keys hashing to the same index.
Common operations on hash maps include insertion, deletion, and lookup.
Example: HashMap<String, Integer> map = new HashMap<>()...
Object-oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.
Encapsulation: bundling data and methods that operate on the data into a single unit
Inheritance: creating new classes based on existing classes
Polymorphism: the ability for objects to be treated as instances of their parent class
Return the kth element from the end of a linked list
Traverse the linked list to find the length of the list
Calculate the position of the kth element from the beginning
Traverse the list again to find the kth element from the end
A collection is a group of objects or data structures that are stored and manipulated together.
Collections can be used to store and manage multiple elements of the same type.
Examples of collections include arrays, lists, sets, and maps.
Collections provide methods for adding, removing, and accessing elements within the group.
Iterate and insert values into a hashSet in Java
Create a HashSet object
Use a for loop to iterate over the elements to be inserted
Call the add() method on the HashSet object to insert each element
I appeared for an interview in Sep 2024.
This code snippet counts the frequency of each character in a string using a hash map (dictionary in Python).
Use a hash map (dictionary) to store character counts.
Iterate through each character in the string.
For each character, increment its count in the hash map.
Example: For the string 'hello', the output will be {'h': 1, 'e': 1, 'l': 2, 'o': 1}.
Exception handling is crucial for managing errors in software applications, ensuring stability and user experience.
Use try-catch blocks to handle exceptions gracefully. Example: try { riskyCode(); } catch (Exception e) { handleError(e); }
Always log exceptions for debugging purposes. Example: logger.error('Error occurred', e);
Avoid using generic exceptions; catch specific exceptions to handle different error types appro...
Understanding string pool in Java helps manage memory efficiently and optimize string operations.
String literals are stored in the string pool, which is a special memory area.
When a string is created using a literal, it checks the pool first to see if it exists.
Example: String s1 = "Hello"; String s2 = "Hello"; // s1 and s2 point to the same object in the pool.
Using 'new' keyword creates a new string object in heap mem...
Spring Boot simplifies Spring application development, while microservices enhance scalability and maintainability.
Spring Boot offers auto-configuration, reducing boilerplate code. Example: Setting up a REST API with minimal configuration.
Microservices architecture allows independent deployment of services, enhancing scalability. Example: A user service and an order service can be deployed separately.
Spring provides a ...
Hibernate mapping uses annotations to define entity relationships and transient fields that should not be persisted in the database.
@Entity: Marks a class as a Hibernate entity, representing a table in the database.
@Table: Specifies the table name if it differs from the entity name, e.g., @Table(name = "users").
@Id: Defines the primary key of the entity, e.g., @Id @GeneratedValue(strategy = GenerationType.IDENTITY) for...
Detects if a linked list has a cycle using Floyd's Tortoise and Hare algorithm.
Use two pointers: slow and fast. Slow moves one step, fast moves two steps.
If there's a loop, slow and fast will eventually meet.
If fast reaches the end (null), the list has no loop.
Example: For a list 1 -> 2 -> 3 -> 4 -> 2 (cycle), slow and fast meet at 2.
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Return the kth element from the end of a linked list
Traverse the linked list to find the length of the list
Calculate the position of the kth element from the beginning
Traverse the list again to find the kth element from the end
Object-oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.
Encapsulation: bundling data and methods that operate on the data into a single unit
Inheritance: creating new classes based on existing classes
Polymorphism: the ability for objects to be treated as instances of their parent class
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their containing scope during compilation.
Hoisting applies to variable declarations (using var) and function declarations.
Example: console.log(x); var x = 5; // Outputs 'undefined' due to hoisting.
Function declarations are fully hoisted: greet(); function greet() { console.log('Hello'); } // Works fine.
Let and const do ...
I applied via Naukri.com and was interviewed before Jan 2019. There were 4 interview rounds.
I appeared for an interview before Jan 2024.
Using Java 8 Stream, find and print the name of the student with the second highest marks.
Sort the students based on marks in descending order
Skip the first student (highest marks) and find the second student
Print the name of the second student
Hash map is a data structure that stores key-value pairs and allows for efficient retrieval of values based on keys.
Hash map uses a hash function to map keys to indices in an array.
Collision handling is important in hash maps to deal with multiple keys hashing to the same index.
Common operations on hash maps include insertion, deletion, and lookup.
Example: HashMap<String, Integer> map = new HashMap<>(); map...
I applied via Company Website and was interviewed in Dec 2022. There were 4 interview rounds.
A collection is a group of objects or data structures that are stored and manipulated together.
Collections can be used to store and manage multiple elements of the same type.
Examples of collections include arrays, lists, sets, and maps.
Collections provide methods for adding, removing, and accessing elements within the group.
Iterate and insert values into a hashSet in Java
Create a HashSet object
Use a for loop to iterate over the elements to be inserted
Call the add() method on the HashSet object to insert each element
I applied via Naukri.com and was interviewed in Apr 2023. There were 3 interview rounds.
I applied via Approached by Company and was interviewed before Jan 2024. There was 1 interview round.
Convert a number to Roman numerals up to any number, including 1000.
I applied via Approached by Company and was interviewed in Sep 2022. There were 4 interview rounds.
Collection, multithreading, JVM, Chess LLD, Design pattern
Spiral traverse of a 2D array involves visiting elements in a spiral order, starting from the top-left corner.
Start from the top-left corner and move right until the end of the row.
Then, move down the last column.
Next, move left across the bottom row.
Finally, move up the first column.
Repeat the process for the inner sub-array until all elements are visited.
Example: For a 3x3 matrix [[1,2,3],[4,5,6],[7,8,9]], the spiral...
JVM architecture enables Java applications to run on any platform through bytecode interpretation and Just-In-Time compilation.
JVM consists of Class Loader, Execution Engine, and Garbage Collector.
Class Loader loads .class files into memory and verifies them.
Execution Engine includes Interpreter and JIT Compiler for executing bytecode.
Garbage Collector automatically manages memory by reclaiming unused objects.
JVM provi...
OOPS concepts are fundamental to object-oriented programming. They include inheritance, encapsulation, abstraction, and polymorphism.
Inheritance allows a class to inherit properties and methods from another class.
Encapsulation is the practice of hiding data and methods within a class, so they can only be accessed through public methods.
Abstraction is the process of simplifying complex systems by breaking them down into...
I applied via LinkedIn and was interviewed before Feb 2022. There were 4 interview rounds.
Python intermediate to advanced
Django basics
SQL basics
I worked at XYZ Company as a Senior Software Engineer.
Developed and maintained software applications
Collaborated with cross-functional teams to gather requirements
Implemented new features and enhancements
Performed code reviews and provided technical guidance
Resolved bugs and issues reported by users
Optimized application performance and scalability
Top trending discussions
Some of the top questions asked at the TO THE NEW Senior Software Engineer interview -
The duration of TO THE NEW Senior Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 15 interview experiences
Difficulty level
Duration
based on 71 reviews
Rating in categories
Senior Software Engineer
675
salaries
| ₹9 L/yr - ₹28 L/yr |
Software Engineer
595
salaries
| ₹3.5 L/yr - ₹13.9 L/yr |
Associate Technical Leader
238
salaries
| ₹13.5 L/yr - ₹37.2 L/yr |
Senior Quality Engineer
169
salaries
| ₹7 L/yr - ₹22.5 L/yr |
Technical Lead
168
salaries
| ₹18.3 L/yr - ₹45 L/yr |
ITC Infotech
CMS IT Services
KocharTech
Xoriant