masrur.macece
BAN USER
Questions (2)
Reputation 120
- 1of 1 vote
AnswersGiven an mxn matrix, design a function that will print out the contents of the matrix in spiral format.
Spiral format means for a 5x5 matrix given below:[ 1 2 3 4 5 ] [ 6 7 8 9 0 ] [ 1 2 3 4 5 ] [ 6 7 8 9 0 ] [ 1 2 3 4 5 ] path taken is: [ > > > > > ] [ > > > > v ] [ ^ ^ > v v ] [ ^ ^ < < v ] [ < < < < < ] where ">" is going right, "v" going down, "<" is going left, "^" is going up.
The output is:
- masrur.macece in United States for Windows Hyper-V1 2 3 4 5 0 5 0 5 4 3 2 1 6 1 6 7 8 9 4 9 8 7 2 3
| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Algorithm - 0of 0 votes
AnswersOpen two instances of Microsoft Word and print to printer simultaneously. How would the underlying printer driver work? How would you design the printer driver?
- masrur.macece in United States for Windows Hyper-V| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Computer Architecture & Low Level
Page:
1
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.