i
UBS
Filter interviews by
Clear (1)
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.
Code to find palindrome of a string
Iterate through the string from both ends and compare characters
Use two pointers, one starting from the beginning and one from the end
If characters at both pointers match, continue checking until they meet in the middle
If all characters match, the string is a palindrome
Dynamic memory allocation in Java refers to the process of allocating memory for objects at runtime.
Dynamic memory allocation allows for objects to be created and destroyed during program execution.
The 'new' keyword is used to dynamically allocate memory for objects in Java.
Dynamic memory allocation helps in managing memory efficiently by allocating memory only when needed.
Example: int[] arr = new int[5]; dynamically a
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 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
UBS interview questions for designations
I applied via Campus Placement and was interviewed before Mar 2023. There was 1 interview round.
Top trending discussions
Finding smallest of 4 numbers without using >.< and min function in Java.
Initialize a variable with the first number
Compare it with the remaining numbers using if-else statements
If a smaller number is found, update the variable
Repeat until all numbers are compared
The final value of the variable will be the smallest number
Code for palindrome checking
Convert the input to lowercase to ignore case sensitivity
Use two pointers, one at the start and one at the end of the string
Compare the characters at both pointers and move them towards each other
If all characters match, it's a palindrome
Javascript code to display 'Hello World!' on the webpage
Create a new HTML file
Add a script tag with 'type' attribute set to 'text/javascript'
Inside the script tag, use document.write() to display 'Hello World!'
Swap two numbers without using a temporary variable.
Use addition and subtraction to swap the values
Use XOR operator to swap the values
Use multiplication and division to swap the values
To add 2 tables, we need to use a join operation on a common column.
Identify the common column between the tables
Choose the appropriate join type (inner, outer, left, right)
Write the SQL query to join the tables
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column
Union combines and removes duplicates, Union All combines all rows including duplicates.
Union is used to combine the result sets of two or more SELECT statements and remove duplicates.
Union All is used to combine the result sets of two or more SELECT statements and includes all rows, including duplicates.
Union is slower than Union All as it has to remove duplicates.
Union requires the same number of columns in all SELEC...
Being assigned a project with unrealistic deadlines and minimal guidance
Received a project with tight deadlines and unclear requirements
Struggled to meet the deadlines due to lack of guidance and support
Had to work long hours and weekends to try to complete the project
Learned the importance of clear communication and setting realistic expectations
Implement LRU cache
LRU stands for Least Recently Used
It is a cache eviction policy that removes the least recently used item
It can be implemented using a doubly linked list and a hash map
Newly accessed items are moved to the front of the list
When the cache is full, the item at the end of the list is removed
Virtual memory is a memory management technique that allows a computer to use more memory than it physically has.
Virtual memory uses a combination of RAM and hard disk space to store data.
It allows programs to use more memory than is physically available.
If a program tries to access memory that is not currently in RAM, it will be swapped in from the hard disk.
Even if we had infinite RAM, virtual memory would still be n...
Find maximum length of subarray where max <= 2*min.
Iterate through array and keep track of max and min values.
Update max length when condition is met.
Time complexity: O(n)
based on 4 interviews
Interview experience
based on 58 reviews
Rating in categories
Associate Director
3.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant Vice President
2.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Authorized Officer
1.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Exempt NON Officer
1.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
ENO
1.4k
salaries
| ₹0 L/yr - ₹0 L/yr |
Morgan Stanley
Goldman Sachs
JPMorgan Chase & Co.
Deutsche Bank