摘要:
Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure.find 阅读全文
posted @ 2018-12-01 17:04
fatttcat
阅读(114)
评论(0)
推荐(0)
摘要:
Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For 阅读全文
posted @ 2018-12-01 14:54
fatttcat
阅读(109)
评论(0)
推荐(0)
摘要:
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve 阅读全文
posted @ 2018-12-01 14:52
fatttcat
阅读(114)
评论(0)
推荐(0)
摘要:
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the 阅读全文
posted @ 2018-12-01 07:31
fatttcat
阅读(129)
评论(0)
推荐(0)
浙公网安备 33010602011771号