Add office photos
Employer?
Claim Account for FREE

Microsoft Corporation

4.1
based on 1.6k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

10+ PowerSchool India Interview Questions and Answers

Updated 11 Jan 2025
Popular Designations
Asked in
SDE Interview

Q1. find the minimum no of jumps required to reach the end of array.where element at each index represent how many max moves you will take in right

Ans.

Find minimum number of jumps required to reach end of array with max moves in right direction at each index.

  • Use dynamic programming approach to solve the problem

  • Maintain an array to store minimum number of jumps required to reach each index

  • Traverse the array and update the minimum number of jumps for each index

  • Return the minimum number of jumps required to reach the end of array

Add your answer
Asked in
SDE Interview

Q2. given a 2D array of 0 and 1. where each row is sorted. find the row with maximum no of 1 in minimum time complexcity

Ans.

Find row with maximum 1s in a sorted 2D array of 0s and 1s.

  • Use binary search to find the first occurrence of 1 in each row.

  • Calculate the number of 1s in each row using the index found in step 1.

  • Keep track of the row with maximum number of 1s.

  • Time complexity: O(m log n), where m is the number of rows and n is the number of columns.

Add your answer
Asked in
SDE Interview

Q3. Given an unsorted array of size 5. How many minimum comparisons are needed to find the median? then he extended it for size n

Ans.

Minimum comparisons needed to find median in unsorted array of size n

  • For odd n, median is the middle element. For even n, median is the average of middle two elements

  • Minimum comparisons needed for odd n is (n-1)/2. For even n, it is n/2

  • Various sorting algorithms can be used to find median in an unsorted array

Add your answer
Asked in
SDE Interview

Q4. Given an array which is alternatively sorted. What will be the time complexity to find out an element in it. e.g. 14,3,16,6,22,7,24,11,27

Ans.

Time complexity to find an element in an alternatively sorted array.

  • The time complexity will be O(log n) using binary search.

  • Check the middle element and compare with the target element.

  • If the middle element is greater than the target, search in the left half of the array.

  • If the middle element is smaller than the target, search in the right half of the array.

  • Repeat until the target element is found or the array is exhausted.

Add your answer
Discover PowerSchool India interview dos and don'ts from real experiences
Asked in
SDE Interview

Q5. What is the difference between the two declarations? int p=*(int*)i; int p=*(int*)&i;

Ans.

The first declaration casts i to int pointer and dereferences it, while the second declaration casts the address of i to int pointer and dereferences it.

  • The first declaration assumes i is already an int pointer.

  • The second declaration takes the address of i and casts it to an int pointer.

  • The first declaration may cause a segmentation fault if i is not an int pointer.

  • The second declaration may cause unexpected behavior if i is not aligned to an int.

  • Example: int i = 42; int p = ...read more

Add your answer
Asked in
SDE Interview

Q6. Given an array A[n] such that A[i+1] = A[i]+1 OR A[i]-1, and a number k, find out whether k is present in A[n] or not, in most efficient way?

Ans.

Efficiently check if a number is present in an array where each element differs by 1.

  • Use binary search to find the element in the array

  • Calculate the difference between the middle element and the first element

  • If the difference is equal to the index of the middle element minus the index of the first element, then the left half of the array is consecutive

  • If the difference is not equal, then the right half of the array is consecutive

  • Repeat the process on the appropriate half of t...read more

Add your answer
Are these interview questions helpful?
Asked in
SDE Interview

Q7. A square picture is cut into 16 squares and they are shuffled. Write a program to rearrange the 16 squares to get the original big square

Ans.

Program to rearrange shuffled 16 squares to get original big square

  • Create a 4x4 matrix to represent the big square and fill it with shuffled squares

  • Loop through the matrix and check if each square is in the correct position

  • If a square is not in the correct position, swap it with the square in the correct position

  • Repeat until all squares are in the correct position

Add your answer
Asked in
SDE Interview

Q8. There are 9 identical Marbels out of which 1 is heavy. find out that Marbel

Ans.

Out of 9 identical marbles, find the one that is heavy.

  • Divide the marbles into groups of three

  • Weigh two groups against each other

  • If one group is heavier, weigh two marbles from that group

  • If they are equal, the heavy marble is in the third group

  • If the weighed marbles are unequal, the heavy marble is in that group

Add your answer
Share interview questions and help millions of jobseekers 🌟
Asked in
SDE Interview

Q9. Find the 2 maximum elements in array in O(n+log(n)) comparison

Ans.

Find 2 maximum elements in array in O(n+log(n)) comparison

  • Use divide and conquer approach

  • Divide array into two halves

  • Recursively find max elements in each half

  • Compare the two max elements to find the overall max elements

Add your answer
Asked in
SDE Interview

Q10. Tournament tree puzzle and write code for that

Ans.

Tournament tree is a binary tree where each node represents a match between two players/teams.

  • Tournament tree is used in sports tournaments to determine the winner.

  • The leaf nodes represent the players/teams and the internal nodes represent the matches.

  • The winner of each match is the node with the higher score.

  • Code can be written using a recursive function to traverse the tree and determine the winner.

Add your answer
Asked in
SDE Interview

Q11. Find a equilibrium index in array

Ans.

Find an index in array where sum of elements on left side is equal to sum of elements on right side.

  • Loop through array and calculate sum of all elements

  • Then loop through array again and check if sum of elements on left side is equal to sum of elements on right side

  • Return the index if found, else return -1

Add your answer
Asked in
SDE Interview

Q12. How does bittorent work

Ans.

BitTorrent is a peer-to-peer file sharing protocol that allows users to distribute large amounts of data over the internet.

  • BitTorrent breaks down files into small pieces and distributes them among multiple users.

  • Users download and upload pieces of the file simultaneously, increasing download speeds.

  • Users connect to a tracker to find other users sharing the same file.

  • Popular BitTorrent clients include uTorrent, BitTorrent, and Vuze.

Add your answer
Asked in
SDE Interview

Q13. Reverse a tree using DSA

Ans.

Reverse a tree using DSA involves traversing the tree in a specific order and swapping the left and right child nodes.

  • Start by traversing the tree in post-order or level-order traversal.

  • Swap the left and right child nodes of each node as you traverse the tree.

  • Continue until all nodes have been visited and their children swapped.

Add your answer
Asked in
SDE Interview

Q14. Traverse Binary Tree

Ans.

Traverse a binary tree in different orders (inorder, preorder, postorder)

  • Inorder traversal: Left, Root, Right

  • Preorder traversal: Root, Left, Right

  • Postorder traversal: Left, Right, Root

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 PowerSchool India

based on 3 interviews in the last 1 year
Interview experience
4.0
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top SDE Interview Questions from Similar Companies

4.1
 • 47 Interview Questions
4.4
 • 14 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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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