i
UBS
Filter interviews by
I was interviewed in Jul 2021.
Round duration - 120 minutes
Round difficulty - Easy
2 coding questions and 10 MCQ based on find output of code and some aptitude.
Given a string (STR
) of length N
, you are tasked to create a new string through the following method:
Select the smallest character from the first K
characters of STR
, remov...
O(1)
Since we ar...
Given an array of non-negative integers representing the digits of a number and an integer 'K', calculate the maximum possible number by swapping its digits up to 'K...
The idea is to generate all the possible numbers by trying all the possible combinations of indices at most ‘K’ times. We will do this task with a recursive function and each time we swap two indices we will decrease the value of ‘K’ by 1. So base case is when ‘K’ is equal to zero and each time when we swap indices we will check whether the current number is the maximum possible or not.
Here is the algo...
Round duration - 45 minutes
Round difficulty - Easy
C++ questions, one coding question, some python question
Given 'K' different arrays that are individually sorted in ascending order, merge all these arrays into a single array that is also sorted in ascending order.
O(N * K), Where ‘K’ is the number of arrays and ‘N’ is the average number of elements in every array.
We are using an array/list of size O(N * K) to store all the elements of the ‘K’ arrays/lists. T...
Round duration - 45 minutes
Round difficulty - Easy
C++ related questions, coding questions, past internship experience,some python questions
Given an integer array arr
of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.
The first line contains an integer 'T' representing the n...
Use any good sorting algorithm like Merge Sort, Quick Sort or inbuilt sorting function of different languages.
O(1), As we are using constant space.
Time Complexity: O(nlogn)Explanation:O(N*log(N)), where ‘N’ is the size of the array.
We are using inbuilt sort algorithm which has Overall Time Complexity O(N*log(N))
Given an unsorted array of integers, modify the array such that all the zeroes are moved to the end, while maintaining the order of non-zero elements as they appear or...
Hint: can you think of separating zero elements and non-zero elements in different containers?
Approach :
We can create a new array of integers. As soon as we find a non-zero element, we can directly insert it into our new array. After that, we can insert all the left zero’s.
We can easily calculate the number of left zeroes as :
Size of original array = size of new a...
Round duration - 60 minutes
Round difficulty - Medium
Data Structure questions, trees questions.
Given an array PREORDER
representing the preorder traversal of a Binary Search Tree (BST) with N
nodes, construct the original BST.
Each element in the given...
We have a simple Brute Force solution for this problem. We will traverse the PREORDER array, find the left subtree and right subtree and then recursively construct the tree as follows-
Given a binary search tree (BST) and a key value K
, your task is to delete the node with value K
. It is guaranteed that a node with value K
exists in the BST.
A bi...
Tip 1 : Have good knowledge of C++
Tip 2 : Practice easy, medium questions from leetcode mostly arrays, stack, trees.
Tip 3 : Have some knowledge of Python
Tip 1 : Have some achievements like coding contest ratings, etc
Tip 2 : Have 1 or 2 good projects on Web Development or Machine Learning or any internship experience is even better.
Top trending discussions
There were three coding questions.
posted on 6 Jan 2025
I applied via Campus Placement
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Sep 2024. There were 2 interview rounds.
Question Related to the DP and the Graph
Find the Kth maximum element in an array of strings.
Sort the array in descending order.
Return the element at index K-1.
Coin change problem can be solved using dynamic programming to find the minimum number of coins needed to make a certain amount of change.
Use dynamic programming to build up solutions for smaller subproblems
Start by initializing an array to store the minimum number of coins needed for each amount from 0 to the target amount
Iterate through each coin denomination and update the array with the minimum number of coins need
MCQ test consisting of 70 mcqs in 75 minutes from aptitude english and cs fundamentals. If cleared next paper 2 coding qs medium level
I faced challenges with integrating third-party APIs and debugging complex logic.
Difficulty in understanding and implementing third-party APIs
Issues with data synchronization between different systems
Troubleshooting complex logic errors
Managing dependencies and version conflicts
Time constraints affecting problem-solving
posted on 1 Oct 2024
I applied via Campus Placement
DP graphs strings it was good
Reverse a linked list by changing the direction of pointers
Start with three pointers: current, previous, and next
Iterate through the list, updating pointers to reverse the direction
Return the new head of the reversed list
The Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
Start with two variables initialized to 0 and 1
Loop through desired number of iterations, adding the previous two numbers to get the next number
Print or store each number in the series
I want to switch to explore new technologies and challenges in a different industry.
Interested in learning new skills and technologies
Seeking new challenges and opportunities for growth
Want to explore different industry perspectives
posted on 4 Sep 2024
Asked about data structures
Asked about java programmes
I am a passionate software developer with 5 years of experience in developing web applications using Java, Spring, and Angular.
5 years of experience in software development
Proficient in Java, Spring, and Angular
Passionate about coding and problem-solving
Yes, I am open to relocating for the right opportunity.
I am willing to relocate for the right job opportunity that aligns with my career goals.
I have experience moving for previous jobs and am comfortable with the process.
I am excited about the possibility of exploring a new city or country and experiencing a different culture.
Associate Director
3.3k
salaries
| ₹14.8 L/yr - ₹53.5 L/yr |
Assistant Vice President
2.3k
salaries
| ₹16 L/yr - ₹49 L/yr |
Authorized Officer
1.7k
salaries
| ₹9.7 L/yr - ₹28 L/yr |
Exempt NON Officer
1.5k
salaries
| ₹7 L/yr - ₹29.1 L/yr |
ENO
1.4k
salaries
| ₹7 L/yr - ₹25 L/yr |
Morgan Stanley
Goldman Sachs
JPMorgan Chase & Co.
Deutsche Bank