2016年7月9日

Nuts & Bolts Problem

摘要: Given a set of n nuts of different sizes and n bolts of different sizes. There is a one-one mapping between nuts and bolts. Comparison of a nut to ano 阅读全文

posted @ 2016-07-09 21:47 Sheryl Wang 阅读(841) 评论(0) 推荐(0) 编辑

Sliding Window Median

摘要: Given an array of n integer with duplicate number, and a moving window(size k), move the window at each iteration from the start of the array, find th 阅读全文

posted @ 2016-07-09 11:56 Sheryl Wang 阅读(220) 评论(0) 推荐(0) 编辑

Sliding Window Maximum

摘要: Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the knumb 阅读全文

posted @ 2016-07-09 11:37 Sheryl Wang 阅读(213) 评论(0) 推荐(0) 编辑

导航