2014(10-12月) 码农类 硕士 全职@EPIC - 网上海投 - 技术电面 |Other
1. mountain:Given a M * N matrix, if the element in thematrix is larger than other 8 elements who stay around it, then named thatelement be mountain point. Print all the mountain points.
2.add two numbers represented by two arrays. [1, 2, 3, 4, 5] + [7, 2, 5] = [1, 3, 0, 7, 0]
3.Find all the possible passwords, given the length of the password and that it is a well ordered number (159 is well-ordered as 1<5<9)
4. Colorful number: Determine whether a number is colorful or not. 263 is a colorful number because (2,6,3,2x6,6x3,2x3x6) are all different whereas 236 is not because (2,3,6,2x3,3x6,2x3x6) have 6 twice. So take all consecutive subsets of digits, take their product and ensure all the products are different