verily phone 面经

版主: bestsuisiG342886bestsuisiG342886

回复
talentshow
帖子: 8
注册时间: 周一 3月 06, 2023 10:51 pm

verily phone 面经

帖子 talentshow »

四则运算

String keypressed(char c)

Example: when a user enters “1 + 3 + 6 =”, the keyPressed function is called 6 times:
keyPressed(‘1’) returns “1”
keyPressed(‘+’) returns “1”
keyPressed(‘3’) returns “3”
keyPressed(‘+’) returns “4” (which is the result of 1 + 3)
keyPressed(‘6’) returns “6”
keyPressed(‘=’) returns “10”
回复