i
UBS
Filter interviews by
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
What people are saying about UBS
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.
Find an odd occurring number among even occurring numbers.
Use XOR operation to cancel out even occurring numbers and get the odd occurring number.
Iterate through the array and XOR each element with the result variable.
The final result will be the odd occurring number.
Print the spiral order of a binary tree and matrix.
For binary tree, use level order traversal and alternate direction for each level.
For matrix, use four pointers to traverse in spiral order.
Example for binary tree: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9
Example for matrix: 1 2 3 4 -> 8 7 6 5 -> 9 10 11 12 -> 16 15 14 13
Finding pairs in an array with a given sum.
Iterate through the array and for each element, check if the difference between the given sum and the element exists in the array.
Use a hash table to store the elements of the array and their indices for faster lookup.
If there are multiple pairs with the same sum, return any one of them.
If no pair is found, return null or an empty array.
Find total number of k element with given avg in an array in minimum time complexity.
Use sliding window technique to traverse the array in O(n) time complexity.
Maintain a sum variable to keep track of the sum of elements in the window.
If the sum of elements in the window is equal to k times the given avg, increment the count.
Move the window by subtracting the first element and adding the next element in the array.
Printing non-boundary elements of a binary tree
Traverse the tree in any order (preorder, inorder, postorder)
Check if the current node is not a boundary node (not the first or last node in its level)
If it is not a boundary node, print its value
Recursively traverse its left and right subtrees
I applied via Naukri.com and was interviewed before Apr 2020. There were 3 interview rounds.
SCD Type 2 is a technique used to track historical changes in data over time in a data warehouse.
SCD Type 2 maintains a separate row for each change in data, with a start and end date.
It requires a surrogate key to uniquely identify each row.
Informatica provides a built-in SCD Type 2 transformation to implement this technique.
Example: tracking changes in customer addresses over time.
I applied via Campus Placement and was interviewed before Nov 2021. There were 3 interview rounds.
Moderate level aptitude with basics
Moderate level data structure questions
Prototyping in JavaScript allows for quick and easy creation of new objects and functions.
Prototyping allows for inheritance and sharing of properties and methods.
New objects can be created using the 'new' keyword and the prototype of an existing object.
Functions can also be prototyped to add new methods or properties.
Example: function Person(name) { this.name = name; } Person.prototype.greet = function() { console.log...
based on 4 interviews
Interview experience
based on 59 reviews
Rating in categories
Associate Director
3.4k
salaries
| ₹14.8 L/yr - ₹53.5 L/yr |
Assistant Vice President
2.3k
salaries
| ₹16 L/yr - ₹49 L/yr |
Authorized Officer
1.8k
salaries
| ₹10 L/yr - ₹29.1 L/yr |
Exempt NON Officer
1.6k
salaries
| ₹7.5 L/yr - ₹29.1 L/yr |
ENO
1.3k
salaries
| ₹6.9 L/yr - ₹25 L/yr |
Wells Fargo
JPMorgan Chase & Co.
HSBC Group
Cholamandalam Investment & Finance