i
UBS
Filter interviews by
To find the middle node of a linked list, use the two-pointer technique: one moves fast, the other slow.
Use two pointers: 'slow' and 'fast'.
Initialize both pointers at the head of the list.
Move 'slow' by one step and 'fast' by two steps in each iteration.
When 'fast' reaches the end, 'slow' will be at the middle.
Example: For the list 1 -> 2 -> 3 -> 4 -> 5, 'slow' will point to 3.
I would choose a relational database like MySQL and implement a custom authentication system using session management.
Choose a relational database like MySQL for storing user data, product information, and orders.
Implement a custom authentication system using session management to securely authenticate users without JWT or third-party services.
Use encryption techniques to store and validate user passwords securely...
Dynamic memory allocation in Java allows for allocating memory at runtime, enabling flexible data structures and efficient memory usage.
Java uses the heap for dynamic memory allocation, where objects are created using the 'new' keyword.
Example: String[] names = new String[5]; // Allocates memory for an array of 5 Strings.
Memory is automatically managed by the Garbage Collector, which frees up memory that is no lon...
This code checks if a given string is a palindrome, meaning it reads the same forwards and backwards.
A palindrome is a word, phrase, or sequence that reads the same backward as forward. Example: 'madam'.
To check for a palindrome, compare the string to its reverse.
Consider ignoring spaces, punctuation, and case sensitivity for a more robust solution. Example: 'A man, a plan, a canal, Panama!'
In Python, you can reve...
To better test your code, use a combination of unit tests, integration tests, regression tests, and automated testing.
Write unit tests to test individual components or functions in isolation.
Perform integration tests to test how different components work together.
Implement regression tests to ensure that new code changes do not break existing functionality.
Utilize automated testing tools to run tests quickly and e...
Clean code is well-organized, easy to read, and maintainable code that follows best practices.
Clean code is easy to read and understand by other developers.
It follows consistent naming conventions for variables, functions, and classes.
Clean code is well-organized with proper indentation and spacing.
It avoids unnecessary complexity and duplication.
Clean code is modular and follows the single responsibility principl...
I applied via Campus Placement and was interviewed in Aug 2024. There were 2 interview rounds.
1 coding question based on DP for 25 minutes and 30 MCQs on Java , OOPS and code snippet questions also some basic questions based on trees like number of leaf nodes in a complete binary tree with n nodes.
I would choose a relational database like MySQL and implement a custom authentication system using session management.
Choose a relational database like MySQL for storing user data, product information, and orders.
Implement a custom authentication system using session management to securely authenticate users without JWT or third-party services.
Use encryption techniques to store and validate user passwords securely.
Util...
I applied via Company Website and was interviewed in Feb 2024. There was 1 interview round.
Clean code is well-organized, easy to read, and maintainable code that follows best practices.
Clean code is easy to read and understand by other developers.
It follows consistent naming conventions for variables, functions, and classes.
Clean code is well-organized with proper indentation and spacing.
It avoids unnecessary complexity and duplication.
Clean code is modular and follows the single responsibility principle.
Exa...
To better test your code, use a combination of unit tests, integration tests, regression tests, and automated testing.
Write unit tests to test individual components or functions in isolation.
Perform integration tests to test how different components work together.
Implement regression tests to ensure that new code changes do not break existing functionality.
Utilize automated testing tools to run tests quickly and effici...
Easy test
Pattern
15-20 MCQ
1 coding question
Mcqs were on harder side
Coding were on easier side
I appeared for an interview before Mar 2024, where I was asked the following questions.
To find the middle node of a linked list, use the two-pointer technique: one moves fast, the other slow.
Use two pointers: 'slow' and 'fast'.
Initialize both pointers at the head of the list.
Move 'slow' by one step and 'fast' by two steps in each iteration.
When 'fast' reaches the end, 'slow' will be at the middle.
Example: For the list 1 -> 2 -> 3 -> 4 -> 5, 'slow' will point to 3.
The height of a binary tree is the length of the longest path from the root to a leaf node.
Height is defined as the number of edges in the longest path from the root to a leaf.
For a tree with only one node (the root), the height is 0.
Example: In a tree with root and two children, the height is 1.
A complete binary tree of height h has 2^(h+1) - 1 nodes.
The height can be calculated recursively: height(node) = 1 + max(hei...
I applied via Campus Placement and was interviewed in Aug 2022. There were 5 interview rounds.
Apt and coding. Stack based dsa question
Same as r1. Dsa and core subs and projects
I applied via Campus Placement and was interviewed before Mar 2023. There was 1 interview round.
Top trending discussions
I have a strong background in software engineering and a passion for innovation, making me a valuable asset to HSBC.
I have a proven track record of successfully delivering high-quality software solutions in previous roles.
I am highly skilled in various programming languages and technologies, including Java, Python, and SQL.
I have experience working in agile development environments, allowing me to adapt quickly to chan...
based on 5 interview experiences
Difficulty level
Duration
based on 62 reviews
Rating in categories
Associate Director
3.8k
salaries
| ₹27 L/yr - ₹48 L/yr |
Assistant Vice President
2.3k
salaries
| ₹24.8 L/yr - ₹44.4 L/yr |
Authorized Officer
2k
salaries
| ₹14.6 L/yr - ₹26.2 L/yr |
Exempt NON Officer
1.5k
salaries
| ₹13.2 L/yr - ₹23.5 L/yr |
ENO
1.3k
salaries
| ₹11.1 L/yr - ₹20 L/yr |
Wells Fargo
JPMorgan Chase & Co.
HSBC Group
Cholamandalam Investment & Finance