上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页
摘要: 呜呜呜~要感动cry了,提交了AC解答后,beats 100% of java submissions!!第一次感受到coding和algorithm带给人的愉悦感,加油加油啊~Quesion:Given a sorted integer array without duplicates, retu... 阅读全文
posted @ 2015-09-09 10:14 江湖小妞 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Question:Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three intege... 阅读全文
posted @ 2015-09-08 22:19 江湖小妞 阅读(183) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-09-08 20:43 江湖小妞 阅读(18) 评论(0) 推荐(0) 编辑
摘要: Question: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.No... 阅读全文
posted @ 2015-09-07 16:43 江湖小妞 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Question: Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives t... 阅读全文
posted @ 2015-09-06 19:48 江湖小妞 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Question: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of... 阅读全文
posted @ 2015-09-06 15:43 江湖小妞 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Question:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2... 阅读全文
posted @ 2015-09-06 11:16 江湖小妞 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Given an integer, write a function to determine if it is a power of two.Analysis: 给出一个整数,判断是否为2的幂方。依次除以2,若某次中余数不为0,则不是二的幂方。Answer: public boolean i... 阅读全文
posted @ 2015-09-05 22:00 江湖小妞 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur... 阅读全文
posted @ 2015-09-05 10:47 江湖小妞 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Note:This is an extension ofHouse Robber.After robbing those houses on that street, the thief has found himself a new place for his thievery so that h... 阅读全文
posted @ 2015-09-01 21:46 江湖小妞 阅读(210) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页