摘要: Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Follow up:Wha 阅读全文
posted @ 2016-08-23 12:36 fenshen371 阅读(201) 评论(0) 推荐(0)
摘要: You are given a m x n 2D grid initialized with these three possible values. Fill each empty room with the distance to its nearest gate. If it is impos 阅读全文
posted @ 2016-08-23 11:05 fenshen371 阅读(145) 评论(0) 推荐(0)