d******g 发帖数: 34 | 1 1. A practical problem from interviewer’s work.
Write a ‘translator’ program to convert a string (in C++ or other
language) into something which can be applied to the ‘where’ clause in sql
‘select’, here the string can be evaluated to a Boolean value, eg aa==3 &&
bb>12 || … (not sure about the answer. any idea?)
2. What’s garbage collection? What is the disadvantage of using reference
counting? (my ans: ref cycle) | g**e 发帖数: 6127 | 2 1. 没看懂,不就是把==换成=, &&换成and, ||换成or就完了么,还是什么别的意思
2. reference cycle是一个原因,另外一个原因是更新ref counter的时候需要lock,
在多线程的时候开销会很大。
sql
&&
【在 d******g 的大作中提到】 : 1. A practical problem from interviewer’s work. : Write a ‘translator’ program to convert a string (in C++ or other : language) into something which can be applied to the ‘where’ clause in sql : ‘select’, here the string can be evaluated to a Boolean value, eg aa==3 && : bb>12 || … (not sure about the answer. any idea?) : 2. What’s garbage collection? What is the disadvantage of using reference : counting? (my ans: ref cycle)
|
|