Microsoft Interview Question
1,272 Interview Reviews |
Back to all Microsoft Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Development Engineer at Microsoft:
On excel, you need to return the sequence of number for alphabet. if you got "AA" you need to return 27
See more for this Microsoft Software Development Engineer Interview
Helpful Question?
Yes |
No
Inappropriate?



1 of 2 people found this helpful
by Anonymous:
public int ColumnNum(String header) {
int value = 0
for (int i = 0; i < header.length(); i++) {
value = value * 26 + (header.charAt(i) - 'A' + 1);
}
return value;
}