摘要:
给你A{1,2,3,4,4,5}, B{2,4},求A-B={1,3,4,5},很简单. visit 1只用一个HashMap 1 package TwoSets; 2 import java.util.*; 3 4 public class Solution { 5 public Arr... 阅读全文
posted @ 2016-01-15 11:18
neverlandly
阅读(285)
评论(0)
推荐(0)
摘要:
Define “Straight” as 5 cards with consecutive numbers. Determine if the deck can be fully divided into sets of “Straight”.Example: 1, 2, 3, 4, 4, 5, 5... 阅读全文
posted @ 2016-01-15 08:05
neverlandly
阅读(842)
评论(1)
推荐(0)
浙公网安备 33010602011771号