/** * @param {number} capacity */ var Solution = function (capacity) { this.capacity = capacity; // 使用map数据结构构造 this.map = new Map(); }; /** * @param {number} key * @return {number} */ Solution.prototype.get = function (key) { // write code here // get分为可以获取到和获取不到 if (this.map.has(key)) { // 如果存在这个k...