2018年9月10日

Two Diff

摘要: Two Diff [1, 3, 5, 6, 7, 9], target 4. return true/false n 1 + 4 = 5 , n hashset = ( 1, 1, 3, 5, 6, 7, 9), 0 阅读全文

posted @ 2018-09-10 09:51 猪猪🐷 阅读(141) 评论(0) 推荐(0)

463. Island Perimeter

摘要: 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-09-10 04:49 猪猪🐷 阅读(126) 评论(0) 推荐(0)

the probability of returning one element should be val of num / total vals

摘要: [1, 2, 6, 7] the probability of returning one element should be val of num / total vals 1, 2 1 1/16 2 2/16 阅读全文

posted @ 2018-09-10 04:46 猪猪🐷 阅读(123) 评论(0) 推荐(0)

导航