Microsoft assesment question

microsoft logo
microsoft
July 19, 20252 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.

Full Experience

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

Interview Questions (2)

Q1
Shopkeeper Discount on Items
Data Structures & AlgorithmsEasy

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

Q2
Min Cost Machine Model with Structure Constraints
Data Structures & AlgorithmsHard

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

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

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