Microsoft Coding interview questions asked recently

Ajay Rathod
2 min readFeb 4, 2022

--

In this article, I would like post about coding problems that I have been asked and then write a fully functional code on it along with unit test.

Mostly, Solution to these problem available online, that's why i am not posting it here. just go through it and practice it if you are applying for Microsoft.

1. Write Code to Determine if Two Trees are Identical

2. Given an input string and a dictionary of words, find out if the input string can be segmented into a space-separated sequence of dictionary words

solution to above problem can be found here this is quite famous question

3. Given a number num and a number n, the task is to delete this nth digit of the number num.

Input: num = 1234, n = 3
Output: num_after_deleting = 124,

4. Write down back end functionality for Tic Tac toe game.

Final words, If you are preparing for big companies make sure you are very well practiced DS Algo problems before applying, otherwise you are just wasting time. also anybody can crack the interview if you are good problem solver.

Thanks for reading

  • 👏 Please clap for the story and follow me 👉
  • 📰 Read more content on my Medium (21 stories on Java Developer interview)

Find my books here:

--

--

Ajay Rathod
Ajay Rathod

Written by Ajay Rathod

Java Programmer | AWS Certified | Writer | Find My Books on Java Interview here - https://rathodajay10.gumroad.com | YouTube - https://www.youtube.com/@ajtheory

Responses (1)