Zoox

python的ood同一道题,地里有很多了,面试官希望要写

class execute

 def run\(\)

class grayImage(execute)

 def \_\_init\_\_\(实现参数转换)

 def run \(实现具体function\)

概念:dynamic language

什么是gil

什么是继承和多态

python gc怎么实现的

什么是bytecode 为什么用它

compiled language and interpreted language,

什么是多态 什么是继承 虚函数表 指针引用区别 什么是shared_pointer/ smart_pointer

完全临阵磨枪复习基本知识点ref vs ptr,virtual function的意义和具体底层实现方法,smart ptr分几种以及shared ptr为什么也可能会leak还有smart ptr具体怎么帮助handle obj desctruct的,run time polyphorism是啥。反正cpp的知识点就那么些,临阵磨枪也没啥问题。然后问题来了,给一个process image的function,给了几种方法来process image,然后楼主没有get到考试的点,在那傻傻的for loop来判断string是啥然后操作对应的操作,小哥表示不满,说你能不能让他快点general点,然后猛然意识到是一道oop题要写abstract class,cpp语法完全不行,就写了个大概意思,告诉小哥跑起来的时候可以run time polyphorism去拿正确的方法来操作这张image,

新题https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=605877&highlight=zoox

机票:

https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=609313&highlight=zoox

https://www.1point3acres.com/bbs/thread-561439-1-1.html

https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=444754&highlight=zoox

image:https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=534283&highlight=zoox

https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=540912&highlight=zoox

https://www.1point3acres.com/bbs/interview/software-engineer-450330.html

https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=506051&highlight=zoox

onstie:

https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=571078&highlight=zoox

https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=476325&highlight=zoox

https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=517186&highlight=zoox

https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=615080&highlight=zoox

Last updated

Was this helpful?