i
UBS
Filter interviews by
Clear (1)
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...
Given a string and an integer, create a new string by selecting the smallest character from the first K characters of the input string and repeating the process until the input string is empty.
Iterate through the input string, selecting the smallest character from the first K characters each time.
Remove the selected character from the input string and append it to the new string.
Continue this process until the input st...
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...
Given an array of digits and an integer K, find the maximum number by swapping digits up to K times.
Sort the digits in non-increasing order to maximize the number.
Swap the digits to achieve the maximum number within the given number of swaps.
Handle cases where there are repeating digits and leading zeros.
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.
Merge K sorted arrays into a single sorted array.
Create a min heap to store the first element of each array along with the array index.
Pop the top element from the heap, add it to the result array, and push the next element from the same array back to the heap.
Continue this process until all elements are processed.
Time complexity can be optimized using a priority queue or merge sort technique.
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...
Sort an array of 0s, 1s, and 2s in linear time complexity.
Use three pointers to keep track of 0s, 1s, and 2s while iterating through the array.
Swap elements based on the values encountered to sort the array in-place.
Ensure to handle edge cases like all 0s, all 1s, and all 2s in the array.
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...
Move all zeroes to the end of an unsorted array while maintaining the order of non-zero elements.
Iterate through the array and keep track of the index to place non-zero elements.
Once all non-zero elements are placed, fill the rest of the array with zeroes.
Ensure to maintain the relative order of non-zero elements.
Example: Input: [0, 1, -2, 3, 4, 0, 5, -27, 9, 0], Output: [1, -2, 3, 4, 5, -27, 9, 0, 0, 0]
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...
Given a preorder traversal of a BST, construct the BST and return its inorder traversal.
Create a binary search tree from the preorder traversal array
Return the inorder traversal of the constructed BST
Ensure each element in the array is distinct
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...
Delete a node with a given value from a binary search tree (BST).
Traverse the BST to find the node with the value K to be deleted.
Handle different cases like node with no children, one child, or two children.
Update the pointers of the parent node and child nodes accordingly.
Recursively delete the node and adjust the tree structure.
Return the root of the modified BST after deletion.
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
posted on 10 May 2015
Multi tasking, multi processing, and multi programming are different approaches to managing tasks in an operating system.
Multi tasking allows multiple tasks to run concurrently on a single processor.
Multi processing involves multiple processors running tasks simultaneously.
Multi programming allows multiple programs to be loaded into memory and executed concurrently.
Examples of multi tasking operating systems include Wi...
Memory allocation refers to the process of assigning memory to programs during runtime.
Stack allocation is done automatically and is limited in size.
Heap allocation is done manually and is larger in size.
Stack memory is used for local variables and function calls.
Heap memory is used for dynamic memory allocation.
Memory leaks can occur if heap memory is not properly managed.
Use a shared variable and synchronization mechanisms to ensure natural order printing of numbers.
Create two threads, one for printing even numbers and the other for printing odd numbers.
Use a shared variable to keep track of the current number to be printed.
Implement synchronization mechanisms like locks or semaphores to ensure only one thread can access the shared variable at a time.
Each thread should check if it is i...
Printing a matrix in spiral order
Start from the first element and print it
Move in a spiral order towards the center of the matrix
Repeat until all elements are printed
Thread class and Runnable Interface are used for multithreading in Java.
Thread class is a predefined class in Java that provides methods to create and control threads.
Runnable interface is used to define a task that can be executed by a thread.
Thread class implements Runnable interface.
Thread class provides more control over threads than Runnable interface.
Example: Thread t = new Thread(new MyRunnable()); t.start();
Exa...
Linked List is a dynamic data structure while ArrayList is a static data structure.
Linked List is best for frequent insertion and deletion operations.
ArrayList is best for frequent access operations.
Linked List uses more memory than ArrayList.
ArrayList is faster than Linked List for accessing elements.
Use Linked List when you need to frequently add or remove elements from the list.
Use ArrayList when you need to frequen
I am not interested in a career in investment banking.
I am more interested in a career in software development
I enjoy problem-solving and creating innovative solutions through coding
Investment banking does not align with my passion and skill set
I have chosen to apply to J.P. Morgan because of their reputation, global presence, and opportunities for growth.
J.P. Morgan has a strong reputation in the financial industry.
They have a global presence with offices in multiple countries.
The company offers various opportunities for career growth and development.
J.P. Morgan is known for its innovative technology solutions in the financial sector.
I am impressed by their ...
Yes, I have made a mistake in my previous project.
I underestimated the complexity of a task and ended up missing the deadline.
I failed to properly test a feature, resulting in a bug that affected user experience.
I accidentally deleted an important file without having a backup.
I misunderstood a requirement and implemented a feature incorrectly.
posted on 4 Dec 2016
I applied via Campus Placement and was interviewed in Dec 2016. There were 5 interview rounds.
Yes, I have coded in curriculum. The most complex one was a project on building a web application using React and Node.js.
Built a full-stack web application using React and Node.js
Implemented user authentication and authorization using JSON Web Tokens (JWT)
Used MongoDB as the database and Mongoose as the ODM
Implemented real-time updates using Socket.IO
Deployed the application on Heroku
Handled errors and implemented log
Big data refers to large and complex data sets that cannot be processed using traditional data processing methods.
Big data is characterized by its volume, velocity, and variety
It is used in various industries such as healthcare, finance, and retail
Examples of big data include social media data, sensor data, and transactional data
It is called 'big' because it involves processing massive amounts of data
Big data requires ...
I am passionate about technology and eager to learn new skills in the IT sector.
I have always had a keen interest in technology and enjoy working with computers.
I believe the IT sector offers more opportunities for growth and advancement in my career.
I have seen the impact of technology on various industries and want to be a part of that innovation.
I have taken courses in programming and networking to prepare myself fo
To find the product of all data points using SelectSum(), log(), and exp() functions.
Use the log() function to convert the product into a sum of logarithms
Apply the SelectSum() function to calculate the sum of logarithms
Finally, use the exp() function to convert the sum back into the product
I was interviewed in Dec 2016.
The algorithm reverses a given string.
Iterate through the string from the last character to the first character.
Append each character to a new string or an array in reverse order.
Return the reversed string or array.
As the CEO, I would select the candidate based on their qualifications and skills, regardless of their background or personal characteristics.
I would focus on the qualifications, skills, and experience of each candidate.
I would consider their ability to contribute to the company's goals and objectives.
I would ensure a fair and unbiased selection process.
I would prioritize diversity and inclusion in the workplace.
I woul...
I applied via Campus Placement
ATM transaction involves multiple background processes including authentication, authorization, and communication with bank servers.
Customer inserts card and enters PIN
ATM authenticates the card and PIN
ATM requests authorization from bank server
Bank server verifies account balance and approves or denies transaction
ATM dispenses cash or completes other requested transaction
ATM updates account balance and sends transacti
Cut cake into 8 pieces using knife 3 times only.
First, cut the cake horizontally into two equal halves.
Then, cut the cake vertically into four equal pieces.
Finally, cut the cake horizontally again into eight equal pieces.
Make sure to use the knife efficiently to minimize the number of cuts.
Practice visualization before making the cuts to avoid mistakes.
The one bird was already dead.
The bird was already dead before the shot was fired.
The bird was injured and unable to fly away with the rest of the birds.
The bird was a decoy bird used for hunting purposes.
The bird was a trained bird used for falconry.
Developed a web-based attendance management system and a mobile app for event management.
Created a database schema and implemented CRUD operations using PHP and MySQL.
Designed the user interface using HTML, CSS, and JavaScript.
Integrated Google Maps API for location tracking in the mobile app.
Implemented push notifications using Firebase Cloud Messaging.
Collaborated with a team of four to complete the projects within t
I applied via Campus Placement and was interviewed in Dec 2016. There were 5 interview rounds.
I am a highly motivated individual with a passion for learning and achieving my goals.
I have a degree in computer science and have worked as a software developer for 3 years.
I am proficient in multiple programming languages including Java, Python, and C++.
I enjoy working in a team environment and collaborating with others to solve complex problems.
In my free time, I enjoy hiking and exploring new places.
I grew up in a small town with my parents and younger sister. We were a close-knit family.
Grew up in a small town
Close-knit family
Parents and younger sister
Participated in community events
Enjoyed outdoor activities
I enjoy reading, hiking, and trying new recipes in my free time.
Reading books on various topics, including fiction, non-fiction, and self-improvement
Hiking in local parks and nature reserves to explore new trails and enjoy the outdoors
Experimenting with new recipes and cooking techniques in the kitchen
Attending cultural events such as concerts, plays, and art exhibits
Spending time with family and friends, playing board
I would expect a supportive work environment, opportunities for growth and development, and a commitment to excellence.
Supportive and collaborative team culture
Clear communication and feedback
Opportunities for professional development and advancement
Commitment to high-quality work and customer satisfaction
Competitive compensation and benefits package
Yes, I have a cousin who lives in Bangalore.
I have a cousin who has been living in Bangalore for the past 5 years.
We keep in touch and he has shown me around the city during my visits.
He works in the IT industry and enjoys the vibrant culture of Bangalore.
Loop in a circular linked list can be found using Floyd's cycle-finding algorithm.
Initialize two pointers, slow and fast, both pointing to the head of the linked list.
Move slow pointer by one node and fast pointer by two nodes in each iteration.
If there is a loop, both pointers will eventually meet at some point.
If there is no loop, fast pointer will reach the end of the linked list.
Time complexity of this algorithm is
Pre-fix and post-fix operations can be performed on a string expression using appropriate operators.
Pre-fix operation involves placing the operator before the operand in the expression.
Post-fix operation involves placing the operator after the operand in the expression.
Examples of pre-fix operators include ++, --, !, and ~.
Examples of post-fix operators include ++ and --.
Data analytics is the process of examining data sets to draw conclusions about the information they contain.
Data analytics involves collecting, cleaning, and analyzing data to identify patterns and trends.
It can help businesses make informed decisions by providing insights into customer behavior, market trends, and operational efficiency.
For example, a retail company can use data analytics to analyze sales data and ide...
Strengths include adaptability and teamwork. Weaknesses include public speaking. Non-core background allows for diverse perspective. JPMorgan Chase's reputation and opportunities attract me.
Strengths: adaptability, teamwork
Weakness: public speaking
Non-core background brings diverse perspective
Attracted to JPMorgan Chase's reputation and opportunities
I would pursue my entrepreneurial dream and start my own company.
I would conduct market research to validate my idea and identify potential competitors.
I would create a business plan outlining my goals, strategies, and financial projections.
I would secure funding through investors or loans.
I would assemble a team of talented individuals with diverse skills and experiences.
I would continuously evaluate and adapt my busi
I would listen to both sides, gather more information, and try to find a compromise that satisfies everyone.
Listen to both sides and understand their perspectives
Gather more information about both ideas
Try to find common ground and a compromise that satisfies everyone
Encourage open communication and respect for each other's ideas
Consider the potential impact and benefits of each idea
Involve a neutral third party if nec
I applied via Campus Placement and was interviewed in Dec 2016. There were 3 interview rounds.
Company is a global technology company known for its innovative products and services.
Founded in 1976 by Steve Jobs, Steve Wozniak, and Ronald Wayne.
Known for products such as iPhone, iPad, Mac computers, and Apple Watch.
Offers services like Apple Music, iCloud, and Apple Pay.
Has a strong focus on design and user experience.
I applied via Campus Placement
posted on 13 Mar 2015
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