i
UBS
Filter interviews by
I applied via Approached by Company and was interviewed in Jan 2023. There were 2 interview rounds.
Explaining the features and usage of ReactJS
Strict mode catches common mistakes and enforces best practices
ForwardRef allows passing refs to child components
Keys help React identify which items have changed, added, or removed
Controlled components are stateful and rely on props to update, while uncontrolled components manage their own state
Accessibility in React involves using ARIA attributes and semantic HTML
ES6 features, shallow and deep cloning, hoisting, JS execution cycle.
ES6 features include arrow functions, template literals, let and const, destructuring, spread and rest operators, etc.
Shallow cloning creates a new object with the same properties as the original object. Deep cloning creates a new object with all nested objects also cloned.
To deep clone nested objects, use a recursive function or a library like lodash...
Hooks can be tested using React Testing Library or Enzyme.
Use React Testing Library's renderHook() method to test hooks
Test the hook's return value and its behavior on re-renders
Use Enzyme's shallow() or mount() methods to test hooks
Mock any external dependencies used in the hook
Test edge cases and error handling
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...
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 Campus Placement and was interviewed before Nov 2021. There were 3 interview rounds.
Moderate level aptitude with basics
Moderate level data structure questions
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 Sep 2020. There were 5 interview rounds.
I applied via Recruitment Consultant and was interviewed in Dec 2020. There was 1 interview round.
Some of the top questions asked at the UBS React Js Software Engineer interview -
based on 1 interview
Interview experience
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.5k
salaries
| ₹6.8 L/yr - ₹29.1 L/yr |
ENO
1.4k
salaries
| ₹6.9 L/yr - ₹25 L/yr |
JPMorgan Chase & Co.
HSBC Group
Cholamandalam Investment & Finance
Citicorp