上一页 1 ··· 4 5 6 7 8
摘要: Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.输入一个字符串数组,返回所有回文构词法(anagrams)的字符串,所谓回... 阅读全文
posted @ 2014-04-29 18:33 jostree 阅读(212) 评论(0) 推荐(0)
摘要: 有时候我们利用tikz宏包画出的图片后,只想生成一个单图pdf,而且pdf的页面大小与图片相同,以便于以后再次用latex插入。可以与preview宏包进行搭配,页面大小由图像大小决定,可以通过改变\PreviewBorder的值来改变页边界的空白大小。效果如下:代码如下: 1 \documentc... 阅读全文
posted @ 2014-04-28 21:26 jostree 阅读(1872) 评论(1) 推荐(0)
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文
posted @ 2014-04-28 15:10 jostree 阅读(166) 评论(0) 推荐(0)
摘要: Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".给定两个二进制的字符串,返回他们的和。对于a,b两个二进制字符串,首先通过交换使a的长度小于b... 阅读全文
posted @ 2014-04-27 20:23 jostree 阅读(173) 评论(0) 推荐(0)
摘要: Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ... 阅读全文
posted @ 2014-04-26 12:11 jostree 阅读(203) 评论(0) 推荐(0)
摘要: Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m... 阅读全文
posted @ 2014-04-26 11:28 jostree 阅读(142) 评论(0) 推荐(0)
摘要: Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero. Note:El... 阅读全文
posted @ 2014-04-25 17:12 jostree 阅读(224) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8