Microsoft assesment question

Posted
19 Jul 2025
246 reads

Summary

I participated in a Microsoft Online Assessment (OA) and was unable to clear it, solving one question partially and the second question with only 2 out of 15 test cases passing.

How it went

Microsoft yesterday came to our college and i gave there oa.only able to solve one question and was able to pass 2 test case out of 15 for 2nd question.Result->not shortlisted

Questions asked (2)

  1. 01

    Shopkeeper Discount on Items

    Data Structures & Algorithms · Easy

    1 question was very simple .question was we have an array indicating price of an item ,a shopkeeper will give us discount accoriding to lowest item we purchasesd till now.we have to buy all items.no item price can be less than 0 even after discount.we have to return total spent money

  2. 02

    Min Cost Machine Model with Structure Constraints

    Data Structures & Algorithms · Hard

    it was hard and i was not able to do it if you know its solution pls comment solution or approach.we have to prepare a machine model we have to 2 array indicating price to prepare model and 2nd array have string with values "00","01","10","11" .01 mean model support structure B but not A,11 reperesenting it support both structure,10 represent it only support A.we have to print min cost to prepare these models such that structure supporting A>=k same for B.value of k varies from 1 to n(size of array).

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Microsoft recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!