由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Wisconsin版 - epic这个题该怎么答 (转载)
相关主题
New EPICerEpic新人租房求教
打听一个工作单位 - ”EPIC SYSTEMS“ at MadisonEpic新人求sublease
有离EPIC五分钟的APARTMENT出租请问有没有要去epic或者已经在epic想合租的女同胞
请问Epic的CS fresh PHD一般工资是多少?请问板上有多少同志在epic上班的
有要来Madison工作的朋友在找住处的吗?EPIC software developer 工作累吗?
请问女生去epic做SD能吃得消吗?会不会很忙?版聚钓鱼+camping devil's lake?
请问Madison修车的地方转租 1br apartment (close to Epic)
在麦迪逊Epic工作的xdjm们看过来one room in 2-bedroom sublease from July (male)
相关话题的讨论汇总
话题: 题该话题: epic话题: special话题: 这题话题: block
进入Wisconsin版参与讨论
1 (共1页)
B*M
发帖数: 1340
1
Write a code to indent a block of code (something which is done by IDEs such as visual studio) .I was given a few programming constructs such as if else , for construct and a funciton block. Special cases to handle : nested if
glassdoor上看到的,
这题好像不大清楚,设定不同,难易差别也挺大,
哪位大侠见过这题,给说说,多谢!
m********l
发帖数: 4394
2
Epic asks that?
It's a basic compiler problem, solved by using a stack.
When a token matches a keyword, you push the keyword to the stack and
indent the following codes. Same thing with ending keyword, you pop the
stack and move the code back.
I don't think you can write a complete program within limited time. (e.g.
the parser, etc.)

such as visual studio) .I was given a few programming constructs such as
if else , for construct and a funciton block. Special cases to handle :
nested if

【在 B*M 的大作中提到】
: Write a code to indent a block of code (something which is done by IDEs such as visual studio) .I was given a few programming constructs such as if else , for construct and a funciton block. Special cases to handle : nested if
: glassdoor上看到的,
: 这题好像不大清楚,设定不同,难易差别也挺大,
: 哪位大侠见过这题,给说说,多谢!

B*M
发帖数: 1340
3
多谢回复,
我也觉得这题当真要搞的话很繁琐,
解析token就不容易,

【在 m********l 的大作中提到】
: Epic asks that?
: It's a basic compiler problem, solved by using a stack.
: When a token matches a keyword, you push the keyword to the stack and
: indent the following codes. Same thing with ending keyword, you pop the
: stack and move the code back.
: I don't think you can write a complete program within limited time. (e.g.
: the parser, etc.)
:
: such as visual studio) .I was given a few programming constructs such as
: if else , for construct and a funciton block. Special cases to handle :

1 (共1页)
进入Wisconsin版参与讨论
相关主题
one room in 2-bedroom sublease from July (male)有要来Madison工作的朋友在找住处的吗?
找Epic附近sublease或室友请问女生去epic做SD能吃得消吗?会不会很忙?
刚拿到EPIC软件开发的offer, 不知道这家公司的职业发展如何请问Madison修车的地方
今天到达Madison了,EPIC的新人们多联系,顺便求师兄们帮忙在麦迪逊Epic工作的xdjm们看过来
New EPICerEpic新人租房求教
打听一个工作单位 - ”EPIC SYSTEMS“ at MadisonEpic新人求sublease
有离EPIC五分钟的APARTMENT出租请问有没有要去epic或者已经在epic想合租的女同胞
请问Epic的CS fresh PHD一般工资是多少?请问板上有多少同志在epic上班的
相关话题的讨论汇总
话题: 题该话题: epic话题: special话题: 这题话题: block