摘要: Problem:Given a positive integern, find the least number of perfect square numbers (for example,1, 4, 9, 16, ...) which sum ton.For example, givenn=12... 阅读全文
posted @ 2015-09-12 11:15 airforce 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Problem:Given an array ofnintegersnumsand atarget, find the number of index tripletsi, j, kwith0 ret = new ArrayList (); ret.add(0); Ar... 阅读全文
posted @ 2015-09-12 07:37 airforce 阅读(546) 评论(0) 推荐(0) 编辑
摘要: Problem:Givennnodes labeled from0ton - 1and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges m... 阅读全文
posted @ 2015-09-12 05:25 airforce 阅读(468) 评论(0) 推荐(0) 编辑