Add office photos
Employer?
Claim Account for FREE

Microsoft Corporation

4.0
based on 1.7k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

10+ AdamsBridge Global Interview Questions and Answers

Updated 1 Apr 2024
Popular Designations

Q1. Given two words, find the similarity between them. You have to develop your own sense of similarity here. Normalize length of LCS by the total length of the string.

Ans.

The question asks to find the similarity between two words by normalizing the length of the longest common subsequence (LCS) by the total length of the string.

  • Implement a function that takes two words as input

  • Find the length of the longest common subsequence (LCS) between the two words

  • Normalize the length of LCS by dividing it by the total length of the string

  • Return the normalized similarity value

Add your answer

Q2. How would you find least common ancestor of two nodes in a binary tree?

Ans.

To find least common ancestor of two nodes in a binary tree, traverse the tree from root to the nodes and store the paths. Then compare the paths to find the common ancestor.

  • Traverse the binary tree from root to the two nodes and store the paths

  • Compare the paths to find the common ancestor

  • If the binary tree is a BST, compare the values of the nodes to find the common ancestor

  • If one of the nodes is the ancestor of the other, return the ancestor node

Add your answer

Q3. 4. What is normalization? Explain 2NF, 3NF, BCNF. (I didn’t know BCNF).

Ans.

Normalization is the process of organizing data in a database to reduce redundancy and dependency.

  • 2NF eliminates partial dependencies by ensuring that non-key attributes depend on the entire primary key.

  • 3NF eliminates transitive dependencies by ensuring that non-key attributes depend only on the primary key.

  • BCNF eliminates overlapping candidate keys by ensuring that each determinant is a candidate key.

Add your answer

Q4. What are indexes, clustered and non-clustered indexes?

Ans.

Indexes are used to improve database performance by allowing faster data retrieval. Clustered indexes determine the physical order of data, while non-clustered indexes are separate structures.

  • Indexes are used to speed up data retrieval in databases

  • Clustered indexes determine the physical order of data in a table

  • Non-clustered indexes are separate structures that point to the data in a table

  • A table can have only one clustered index, but multiple non-clustered indexes

  • Indexes can...read more

Add your answer
Discover AdamsBridge Global interview dos and don'ts from real experiences

Q5. How would you identify two nodes that have been swapped in a binary search tree?

Ans.

To identify swapped nodes in a binary search tree, we need to perform an inorder traversal and compare adjacent nodes.

  • Perform an inorder traversal of the binary search tree

  • Compare each node with its adjacent node

  • If a node is smaller than its previous node, mark it as a swapped node

  • If two nodes are swapped, swap their values to restore the original binary search tree

Add your answer

Q6. Given a binary tree, return doubly linked list of all the nodes at each level.

Ans.

The function takes a binary tree as input and returns a doubly linked list of all the nodes at each level.

  • Use a breadth-first search (BFS) algorithm to traverse the binary tree level by level.

  • For each level, create a doubly linked list and add the nodes to it.

  • Connect the doubly linked lists of each level to form the final result.

Add your answer
Are these interview questions helpful?

Q7. Write code for designing the ADT (Abstract Data Type) for all the classes that might be required to represent the game of chess

Ans.

Design ADT for chess game classes

  • Create classes for pieces (king, queen, etc.), board, player, game

  • Use inheritance to represent different types of pieces

  • Implement methods for moving pieces, checking for checkmate, etc.

Add your answer

Q8. How would you optimize it for a binary search tree?

Ans.

Optimizing for binary search tree

  • Ensure the tree is balanced to maintain O(log n) search time

  • Implement efficient insertion and deletion algorithms

  • Use in-order traversal for sorted output

  • Consider using AVL or Red-Black trees for self-balancing

  • Avoid using recursion for large trees to prevent stack overflow

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Write code for the subtitle syncing application you talked about, not the entire thing, just the crux of it.

Ans.

Code for subtitle syncing application

  • Create a function to parse subtitle file and extract time stamps

  • Create a function to parse video file and extract time stamps

  • Calculate time difference between subtitle and video time stamps

  • Adjust subtitle time stamps accordingly

  • Output synced subtitle file

Add your answer

Q10. 2. Print first 200 Fibonacci numbers in reverse order. (I did it but it was not efficient).

Ans.

Print first 200 Fibonacci numbers in reverse order.

  • Use an array to store the Fibonacci numbers

  • Start with 0 and 1, then add the previous two numbers to get the next one

  • Loop through the array in reverse order to print the numbers

Add your answer

Q11. Find a string in a 2D character matrix in any order(horizontal/vertical/diagonal)

Ans.

Search for a string in a 2D character matrix in any direction

  • Iterate through each cell of the matrix

  • For each cell, check all possible directions for the string

  • If found, return the starting and ending coordinates of the string

Add your answer

Q12. Write the artificial intelligence logic in code for your Chess representation

Ans.

AI logic for Chess representation

  • Implement minimax algorithm with alpha-beta pruning

  • Use evaluation function to assign values to board positions

  • Implement move ordering to improve efficiency

  • Use transposition tables to store previously evaluated positions

  • Implement iterative deepening to improve search depth

Add your answer

Q13. 3. Check whether a string is palindrome or not

Ans.

Check if a string is a palindrome or not.

  • A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward.

  • To check if a string is a palindrome, compare the first and last characters, then the second and second-to-last characters, and so on.

  • If all pairs match, the string is a palindrome. If any pair does not match, the string is not a palindrome.

  • Ignore spaces, punctuation, and capitalization when checking for palindromes.

Add your answer

Q14. Design File upload and download service

Ans.

Design a file upload and download service for efficient and secure file management.

  • Use a secure authentication mechanism to ensure only authorized users can upload and download files.

  • Implement file size restrictions and validation to prevent large or malicious files from being uploaded.

  • Utilize cloud storage solutions for scalability and reliability.

  • Include version control to track changes and updates to files.

  • Consider implementing file encryption for added security.

  • Provide a ...read more

Add your answer

More about working at Microsoft Corporation

Top Rated Internet/Product Company - 2024
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at AdamsBridge Global

based on 1 interviews
4 Interview rounds
HR Round
Technical Round
Personal Interview1 Round
Aptitude Test Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Development Engineer Interview Questions from Similar Companies

4.1
 • 45 Interview Questions
5.0
 • 16 Interview Questions
3.5
 • 12 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter