Next greater element leetcode 556, followup是十六进制数字怎么处理,再followup是float number,比如1.58, 返回5.18。如果是8.51,那么应该返回 15.8。
count different rhythm style
implement hashmap snapshot function,实现下面几个方法
a. V Get(K)
b. void Put(K, V)
c. int snapshot()
b. V snapshotGet(K, int snapshotId)
讨论两种解法的runtime和space的tradeoff,第二种解法要求用binary search 进一步优化runtime
currency exchange
a. remove extra edge: binary tree to delete the node have two parents,followup是BST
b. 猜一个五位的单词 - 要求起猜的单词
Google Snapshot。实现三个functions, get, set, take snapshots。其实就是一个长度为N的Array。Set可以设置Index i的值,每次take snapshot, version + 1,并且记录下当前version下 Array里面的值。然后get方法可以得到某一个Version下,每一个Index的Array的值