该算法引入一个无符号整形计数器用来统计对象的被引用数，所以该算法中的对象构成是“计数器”+“域” 。该算法没有明确的用来启动 GC 的语句，其通过计数器的增减来管理内存。Continue reading
如今物联网（IoT, Internet of Things）势头正猛，抽出时间看了几本书，了解了一下物联网的概念以及软硬件上的层级结构。顺便搜索了一下有哪些物联网服务提供商。发现真的很多现成的服务可用，这里一边做调查，一边简单地记录。Continue reading
“Edit Distance” is the number of steps required to convert from word A to word B. I was asked to find minimum steps in a past on-site interview as a second coding question. I’ve never heard about the concept of “Edit Distance” before that interview, and I wasn’t able to find a good solution to that problem at that time neither.
After the interview, my wife told me that she saw this problem in LeetCode, then I found it and finally solved it.Continue reading
- page 1 of 1