Microsoft Interview Questions

Coding round questions

  • Write a program to reverse digits of an integer.
  • Write a function that calculates the day of the week for any particular date in the past or future.
  • Given a binary tree and data value of a node. The task is to find the sum of cousin nodes of given node. If given node has no cousins then return -1. -Given a positive number N. The task is to round N to nearest multiple of 10. Number can be so big and can contains 1000 of digits.