Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by UBS Team. If you also belong to the team, you can get access from here

UBS Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

UBS C Developer Interview Questions, Process, and Tips

Updated 1 Nov 2021

UBS C Developer Interview Experiences

1 interview found

C Developer Interview Questions & Answers

user image Anonymous

posted on 1 Nov 2021

I appeared for an interview in Jul 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 120 minutes
Round difficulty - Easy

2 coding questions and 10 MCQ based on find output of code and some aptitude.

  • Q1. 

    String Transformation Problem

    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...

  • Ans. 

    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...

  • Answered by AI
  • Q2. 

    Find Maximum Number by At-most K Swaps

    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...

  • Ans. 

    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.

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 45 minutes
Round difficulty - Easy

C++ questions, one coding question, some python question

  • Q1. 

    Merge K Sorted Arrays Problem Statement

    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.

    Inpu...

  • Ans. 

    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.

  • Answered by AI
Round 3 - Face to Face 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Easy

C++ related questions, coding questions, past internship experience,some python questions

  • Q1. 

    Sort 0 1 2 Problem Statement

    Given an integer array arr of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.

    Input:

    The first line contains an integer 'T' representing the n...
  • Ans. 

    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.

  • Answered by AI
  • Q2. 

    Move Zeroes to End Problem Statement

    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...

  • Ans. 

    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]

  • Answered by AI
Round 4 - Face to Face 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Data Structure questions, trees questions.

  • Q1. 

    Preorder Traversal of a BST Problem Statement

    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...

  • Ans. 

    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

  • Answered by AI
  • Q2. 

    BST Node Deletion Problem

    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.

    Explanation:

    A bi...

  • Ans. 

    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.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as C++ Developer in PuneEligibility criteria2021 passout, 7 CGPA aboveCredit Suisse interview preparation:Topics to prepare for the interview - C++, Python, Arrays, Trees, Data Structures, AlgorithmsTime required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

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

Application resume tips for other job seekers

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.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview questions from similar companies

Associate Interview Questions & Answers

JPMorgan Chase & Co. user image SHUBHAM VINAYAK KALE shubham

posted on 4 Dec 2016

I applied via Campus Placement and was interviewed in Dec 2016. There were 5 interview rounds.

Interview Questionnaire 

8 Questions

  • Q1. Project/DDP based questions
  • Q2. Any coding done in curriculum, explain the most complex one
  • Ans. 

    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

  • Answered by AI
  • Q3. What is 'Big data'? Why is it called 'Big'
  • Ans. 

    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 ...

  • Answered by AI
  • Q4. Why do you want to switch to IT sector from your respective branch
  • Ans. 

    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

  • Answered by AI
  • Q5. I did a course on compute simulation and had extra curricular in chess, so was asked to simulate a chess game
  • Q6. Two friends A & B meet after long time, A asks B about his family. B says he has 3 children, product of their ages is 36, and sum of their ages is equal to the (point towards a house on street) house numbe...
  • Q7. A rat has 3000 gm of rice, he has to travel a distance of 3000m, he eats 1gm rice/m, his maximum carrying capcity is 1000 gm,how should he travel the distance to reach with maximum rice left
  • Q8. A new software has 3 functions SelectSum(), log() and exp(). You have a table of 1000 data points, how will you find product of all points using only the above mentioned functions
  • Ans. 

    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

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: Aptitude part has easy questions, including number series, picture series, interest rate and some quant based questions.

The coding part is difficult.2-3 coding questions, Codes will be related to linked lists , trees or sorting.
Tips: Try to get maximum marks in aptitude, which should be fine with some practice . One of the code will be easy, so complete it and make a try for second
Duration: 1 hour
Total Questions: 30

Round: Puzzle Interview
Experience: very easy puzzles, I was able to solve all puzzles in first attempt
Tips: Be confident in your approach they are locking for approach more than result

Round: Technical Interview
Experience: I answered all resume based questions, he liked my choice of projects, though they were not exactly related to the profile. He liked me and said I would recommend you directly to HR round
Tips: Prepare in details about all points in resume, course work mentioned and projects, Based on performance in this interview, they decide to whether to take one more technical interview or send directly to HR

Skills: Behavioural Skills, Puzzle Solving Capability, Approaching A Problem, Basic Coding
College Name: IIT Madras

Skills evaluated in this interview

I applied via Campus Placement and was interviewed in Dec 2016. There were 5 interview rounds.

Interview Questionnaire 

13 Questions

  • Q1. Tell me about yourself?
  • Ans. 

    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.

  • Answered by AI
  • Q2. Tell me about your family or life before college?
  • Ans. 

    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

  • Answered by AI
  • Q3. What do you do in free time?
  • Ans. 

    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

  • Answered by AI
  • Q4. What would you expect from this company?
  • Ans. 

    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

  • Answered by AI
  • Q5. Questions related to family and past life?
  • Q6. Do you have any family member or friend in Bangalore?
  • Ans. 

    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.

  • Answered by AI
  • Q7. How will you find loop in the circular linked list?
  • Ans. 

    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

  • Answered by AI
  • Q8. How will you perform pre-fix and post-fix operation for the given string expression?
  • Ans. 

    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 --.

  • Answered by AI
  • Q9. What is data analytics(cause I had mentioned it on the resume)? Just explain the basic and tell them how it can help us make decision/inference
  • Ans. 

    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...

  • Answered by AI
  • Q10. In my final year project I have used random forest. So he asked me to explain random forest. And other projects related questions
  • Q11. What is your strength and weakness? why J P Morgan Chase? What do you expect from this company? I am from Mechanical Engineering, so she asked me why non-core?
  • Ans. 

    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

  • Answered by AI
  • Q12. Few behavioral questions: What will you do if you have enough money and good idea to start your own company?
  • Ans. 

    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

  • Answered by AI
  • Q13. How would you resolve team conflict between your idea and other idea, supported by majority?
  • Ans. 

    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

  • Answered by AI

Interview Preparation Tips

Round: Resume Shortlist
Experience: The company came to our campus on day 3 and agreed to take walk-ins.
Therefore resume shortlisting was the procedure.
They had a cut off of 7 CGPA.
Tips: It would be good if you have some coding background with few projects. It could anything from class projects to your internships, extra-curricular or final year projects. Don't forget to mention what all programming language you know on your resume.

Round: Technical + HR Interview
Experience: The first round consists of two panels. One of them was asking HR. And the other was asking technical questions. They were just looking whether you have the basic technical knowledge and if given an offer you will join or not.
Tips: For technical knowledge, you can refer OOPs basic concepts, standard coding interview problems, geeksforgeeks, cracking the coding interview by Laxman Gayle etc. It would be better if you can first practice hr questions among your friends instead of going directly to interview. I found a youtube channel explains technical relatively easier and simpler way. you can follow that. Just try to show that you are interested in that company.
For HR questions, one can prepare from 64 HR questions.
For the basic OOPs concepts, one can read first 10 chapters from E.Balaguruswamy but any other OOPs book will also be fine.
Confidence is the key ace any interview!!

Round: HR Interview
Experience: This round was mainly to check your personality. He was trying to know whether you will fit in the company or not. Most of the question was from my personal life. They will see whether you are serious about your life or not.
Tips: Be ready to give them instances of your life where you did things differently. Try to show that you are passionate about the company. Try to show you have a clear vision in your life and working hard to achieve that.

Round: HR Interview
Experience: This round was just a formality. The HR from the second round interview introduced me to the third interviewer. He asked few question related to the family.
Tips: One important thing I would like to is that NEVER ASSUME THAT WHATEVER YOU TOLD TO YOUR PREVIOUS INTERVIEWER WILL BE KNOWN TO THE NEXT INTERVIEW. So, if you think some specific points will help you do good in an interview...just let him know. I could be anything your project, conference, paper presentation or your past life as well.

Skills: Programming, Object Oriented Programming (OOP) Basics, Team Working Ability, Passion, Data Strrutures, Algorithm
College Name: IIT Madras

Skills evaluated in this interview

I applied via Campus Placement and was interviewed in Dec 2016. There were 3 interview rounds.

Interview Questionnaire 

3 Questions

  • Q1. Tested DSA and Aptitude
  • Q2. Checked design aspect questions
  • Q3. What do you know about company
  • Ans. 

    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.

  • Answered by AI

Interview Preparation Tips

College Name: IIT Madras

I applied via Campus Placement

Interview Questionnaire 

4 Questions

  • Q1. Explain the background process that takes place during an atm transaction
  • Ans. 

    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

  • Answered by AI
  • Q2. Cut cake into 8 pieces .You can use knife 3 times only
  • Ans. 

    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.

  • Answered by AI
  • Q3. A shot fired from a gun pointing towards a tree full of birds. All birds left except one. Why ?
  • Ans. 

    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.

  • Answered by AI
  • Q4. Explain projects which you made in college?
  • Ans. 

    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

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: The question paper was a mix of aptitude, programming of c++ java , sql and reasoning.
There was negative marking set for each questions.
Tips: Attempt that portion first in which you are really confident.
Dont try to attempt all questions , as negative marking plays big role.
Duration: 60 minutes

Round: Technical Interview
Experience: As Barclays is a bank , so this kind of question is obvious.
Be prepared for technical process that takes place in a usual banking domain.
Also , any type of question whether reasoning based or technical can be asked.
Tips: Be confident. Try to tell everything in a straight manner.

Round: Case Study Interview
Experience: You can put humour while answering as this shows your positivity.
There can be many reason for this like birds ia dead , bird is deaf , bird is of plastic. You can choose whatever hit into your mind.

Round: Behavioural Interview
Experience: Explaining the thing in which you already have knowledge is a plus point.
But make sure you have complete knowledge of your college project as they can ask as many questions as possible because your project is the main thing which can extend your interview time.

Skills: Common Sense, Presence Of Mind, Positive Thinking, Ability To Deliver On A Project, C Programming
College Name: UPTU
Motivation: As it is a product based company , so chances of growth is good and pay scale is better.

I applied via Campus Placement

Interview Preparation Tips

Round: Test
Experience: Was nice experience,should have good aptitude.
Tips: Learn aptitude more and morr
Duration: 60 minutes

Round: Group Discussion
Experience: Just speak about the topic
Tips: Do not get silent

Round: Technical Interview
Experience: iOS,C/C++
Tips: Just be confident about your answwers ansd show that you are capable to do each and everything in this world and you have quick learning capacity to grasp anything.

General Tips: C/C++,
Skills:
College Name: CDAC PUNE
Motivation: Bank more than 325 years old.

I appeared for an interview in Dec 2016.

Interview Questionnaire 

5 Questions

  • Q1. Write the algorithm for reversing the string
  • Ans. 

    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.

  • Answered by AI
  • Q2. Write an algorithm to select the number between min and maximum from a number series and that number shouldn't be a multiple of 10
  • Q3. This was puzzle: you have 2 eggs and 100 floors. Eggs will start break beyond a particular floor. You can throw eggs from any of the floor. How will you minimise the total number of throws.
  • Q4. Assume yourself as CEO of a company. You have vacancies and you are conducting interviews. 4 candidates (1. An IITian, 2. A woman, 3. Gay, 4.Physically handicapped) are equally capable and qualified have a...
  • Ans. 

    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...

  • Answered by AI
  • Q5. My interview was just after demonetization. So question was, assume you are CEO of Paytm. What will be your key values and what will be your strategy to add more customers.

Interview Preparation Tips

Round: Test
Experience: Aptitude part was pretty straightforward. Make sure you don't loose too much time on one question. Most of the questions were very easy. Number series, men working hours, probability and simple math calculations are enough to crack the test.
Coding part will definitely have one easy question (mostly will be on sorting algos). Basic coding knowledge is enough for this part.
Tips: Aptitude : Speed is the key. Since questions are easy, one who gets more than others will be shortlistled for the Interviews.
Coding: Make sure you solve atleast 1 problem correctly. And then try to attempt others.
Duration: 1 hour
Total Questions: 28

Round: Behavioural Interview
Experience: They also asked basic interview hr questions. Be prepared with your stories. If One of your story can make you look out of the stand, it will definitely work for this round. Strengths, weakness and where do you see yourself after 5 years.
Tips: Be confident. And be ready to defend your answers.

Skills: Math Puzzles, Algorithms And Data Structures, HR Skills, Inter Person Communication Skills
College Name: IIT Madras

Skills evaluated in this interview

I appeared for an interview before Mar 2021.

Round 1 - Coding Test 

(3 Questions)

Round duration - 90 minutes
Round difficulty - Medium

There were 33 questions in total. The objective questions were simple.

  • Q1. 

    Sort Big List Dates Problem Statement

    Mary is an enthusiastic party-goer who struggles with remembering event dates. Help Mary by sorting a given list of event dates in an ascending order.

    Example:

    Inpu...
  • Ans. 

    Sort a list of event dates in ascending order based on year, month, and day.

    • Sort the list of dates based on year, then month, and finally day.

    • Use a sorting algorithm to rearrange the dates in ascending order.

    • Ensure the constraints are met for each date in the list.

  • Answered by AI
  • Q2. 

    Pair Sum Problem Statement

    You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.

    Note:
    ...
  • Ans. 

    Given an array and a target sum, find all pairs of elements that add up to the target sum.

    • Iterate through the array and for each element, check if the complement (target sum - current element) exists in a hash set.

    • If the complement exists, add the pair to the result list.

    • Sort the pairs based on the first element and then the second element.

    • Handle edge cases like duplicate elements and pairs with the same values.

    • Example...

  • Answered by AI
  • Q3. 

    Maximum Sum Problem Statement

    Given an integer N, your task is to recursively break it into three integer parts: N / 2, N / 3, and N / 4. You need to compute the maximum sum possible by dividing the numbe...

  • Ans. 

    Given an integer N, recursively break it into three parts and find the maximum sum possible.

    • Recursively divide N into N/2, N/3, and N/4 to find the maximum sum

    • Compare the sum obtained by dividing N with the sum of N itself

    • Return the maximum sum for each test case

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAMorgan Stanley interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview before Mar 2021.

Round 1 - Face to Face 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Technical Interview round with questions based on DSA.

  • Q1. 

    Duplicate Integer in Array

    Given an array ARR of size N, containing each number between 1 and N-1 at least once, identify the single integer that appears twice.

    Input:

    The first line contains an integer...
  • Ans. 

    Identify the duplicate integer in an array containing numbers between 1 and N-1.

    • Iterate through the array and keep track of the frequency of each element using a hashmap.

    • Return the element with a frequency greater than 1 as the duplicate integer.

    • Ensure the constraints are met and a duplicate number is guaranteed to be present.

  • Answered by AI
  • Q2. 

    Sum Root to Leaf Numbers

    You are given an arbitrary binary tree consisting of N nodes, each associated with an integer value from 1 to 9. Each root-to-leaf path can be considered a number formed by concat...

  • Ans. 

    Calculate the total sum of all root to leaf paths in a binary tree formed by concatenating node values.

    • Traverse the binary tree from root to leaf nodes, keeping track of the current path sum

    • Add the current node value to the path sum and multiply by 10 for each level

    • When reaching a leaf node, add the final path sum to the total sum

    • Return the total sum modulo (10^9 + 7)

  • Answered by AI
  • Q3. 

    Topological Sort Problem Statement

    You are given a directed acyclic graph (DAG). Your task is to perform topological sorting of the graph and return any valid ordering.

    Explanation:

    A directed acyclic g...

  • Ans. 

    Implement a function to perform topological sorting on a directed acyclic graph (DAG) and return any valid ordering.

    • Create a graph data structure to represent the DAG

    • Use depth-first search (DFS) to perform topological sorting

    • Maintain a visited array to keep track of visited nodes

    • Return the ordering of nodes after DFS traversal

  • Answered by AI
Round 2 - Face to Face 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Easy

Technical interview round with questions based on DSA.

  • Q1. 

    LCA of Binary Tree Problem Statement

    You are given a binary tree consisting of distinct integers and two nodes, X and Y. Your task is to find and return the Lowest Common Ancestor (LCA) of these two nodes...

  • Ans. 

    Find the Lowest Common Ancestor (LCA) of two nodes in a binary tree.

    • Traverse the binary tree to find the paths from the root to nodes X and Y.

    • Compare the paths to find the last common node, which is the LCA.

    • Handle cases where one node is an ancestor of the other.

    • Consider edge cases like when X or Y is the root node.

    • Implement a recursive or iterative solution to find the LCA efficiently.

  • Answered by AI
  • Q2. 

    Rotated Array Minimum Finder

    You are provided with a sorted array that has undergone 'K' rotations (the exact value of 'K' is unknown). A rotation involves shifting each element of the array to the right,...

  • Ans. 

    Implement a function to find the minimum number in a rotated sorted array efficiently.

    • Use binary search to find the minimum element in the rotated array.

    • Compare the mid element with the start and end elements to determine which half of the array to search next.

    • Continue the binary search until the minimum element is found.

  • Answered by AI
  • Q3. 

    Maximum Binary Tree Construction Problem

    Given an array TREE of 'N' unique integers, construct a maximum binary tree using the following rules:

    1. The root of this tree is the maximum number in TREE.
    2. T...
  • Ans. 

    Construct a maximum binary tree from an array of unique integers following specific rules.

    • Find the maximum number in the array to set as the root of the tree.

    • Recursively construct the left subtree with elements before the maximum number.

    • Recursively construct the right subtree with elements after the maximum number.

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAMorgan Stanley interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewRejected

Skills evaluated in this interview

Interview Preparation Tips

Round: Test
Experience: The test was for two and half hours where 1 hour was for general aptitude, 1 hr was for coding aptitude(either on java or C or C++as you choose) and 1/2 an hour for two coding questions.

Round: Technical Interview
Experience: In technical round they asked puzzles, aptitude questions and basic C coding. I was asked to write the code for two questions(one was on sort and search) and was asked the logic of two questions.They asked basics of linked lists, stacks, queues. Infact they were not very interested in the syntax and were pressing on the logic

General Tips: Being a non software branch students is not at all a problem. The company took 4 interns where 3 were from core branches. The fact that we had to work in JAVA and most of us didn't know JAVA, the company only looks for aptitude and ability to learn. So if you don't know anything, tell frankly that you don't know that part, rather than guessing. Be thorough with what you know and confidentially answer all the questions.
Also do not be tensed and take things lightly, if the interviewer is joking. Be candid.
Skill Tips: Learn basics of coding from books . Aptitude can be done from sites likes geeks for geeks, etc. The level of aptitude is not very high and infact the coding aptitude is also theoretical and does not involve in depth knowledge.
Skills:
College Name: NIT Surathkal

Tell us how to improve this page.

Interview Questions from Similar Companies

Citicorp Interview Questions
3.7
 • 568 Interviews
Wells Fargo Interview Questions
3.8
 • 567 Interviews
HSBC Group Interview Questions
3.9
 • 485 Interviews
Goldman Sachs Interview Questions
3.5
 • 376 Interviews
Deutsche Bank Interview Questions
3.9
 • 364 Interviews
American Express Interview Questions
4.2
 • 361 Interviews
BNY Interview Questions
3.9
 • 344 Interviews
Morgan Stanley Interview Questions
3.7
 • 291 Interviews
Barclays Interview Questions
3.8
 • 270 Interviews
View all
Associate Director
3.4k salaries
unlock blur

₹14.8 L/yr - ₹53.5 L/yr

Assistant Vice President
2.3k salaries
unlock blur

₹16 L/yr - ₹49 L/yr

Authorized Officer
1.7k salaries
unlock blur

₹9.7 L/yr - ₹29 L/yr

Exempt NON Officer
1.5k salaries
unlock blur

₹7.5 L/yr - ₹29.1 L/yr

ENO
1.3k salaries
unlock blur

₹6.9 L/yr - ₹25 L/yr

Explore more salaries
Compare UBS with

Morgan Stanley

3.7
Compare

Goldman Sachs

3.5
Compare

JPMorgan Chase & Co.

3.9
Compare

Deutsche Bank

3.9
Compare
Did you find this page helpful?
Yes No
write
Share an Interview