摘要: Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette 阅读全文
posted @ 2018-03-20 12:54 zeroingToOne 阅读(199) 评论(0) 推荐(0)
摘要: API文档中的描述: 先看一个例子 可以看出:put方法的返回值为null或value; 调用put方法时,如果已经存在一个相同的key, 则返回的是前一个key对应的value,同时该key的新value覆盖旧value;如果是新的一个key,则返回的是null; 通过hashmap的源码可以看出 阅读全文
posted @ 2018-03-20 10:21 zeroingToOne 阅读(7565) 评论(0) 推荐(0)