上一页 1 2 3 4 5 6 ··· 27 下一页
摘要: Ugly NumberWrite a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5... 阅读全文
posted @ 2015-08-20 21:38 陆草纯 阅读(993) 评论(0) 推荐(0) 编辑
摘要: Valid AnagramGiven two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t=... 阅读全文
posted @ 2015-08-01 21:38 陆草纯 阅读(6279) 评论(0) 推荐(0) 编辑
摘要: Different Ways to Add ParenthesesGiven a string of numbers and operators, return all possible results from computing all the different possible ways t... 阅读全文
posted @ 2015-07-27 22:26 陆草纯 阅读(6410) 评论(0) 推荐(1) 编辑
摘要: Search a 2D Matrix IIWrite an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each ... 阅读全文
posted @ 2015-07-25 21:35 陆草纯 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: Sliding Window MaximumGiven an arraynums, there is a sliding window of sizekwhich is moving from the very left of the array to the very right. You can... 阅读全文
posted @ 2015-07-25 19:22 陆草纯 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Product of Array Except SelfGiven an array ofnintegers wheren> 1,nums, return an arrayoutputsuch thatoutput[i]is equal to the product of all the eleme... 阅读全文
posted @ 2015-07-25 11:34 陆草纯 阅读(959) 评论(0) 推荐(0) 编辑
摘要: Delete Node in a Linked ListWrite a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the l... 阅读全文
posted @ 2015-07-15 15:59 陆草纯 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: 一、开场白做机器学习的对这几个词应该比较熟悉了。最好是拿到全部数据,那就模型慢慢选,参数慢慢调,一轮一轮迭代,总能取得不错效果。但是面对新来数据,怎么能利用已经训练好的模型,把新的信息加进去?所以有很多人,包括我们组,一直想做好在线增量式学习。(1)来一波新数据,(2)抽信息更新模型,(3)扔掉那些... 阅读全文
posted @ 2015-07-14 11:46 陆草纯 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: Number of Digit OneGiven an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Gi... 阅读全文
posted @ 2015-07-13 12:26 陆草纯 阅读(567) 评论(0) 推荐(0) 编辑
摘要: Lowest Common Ancestor of a Binary TreeGiven a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.According to thedefin... 阅读全文
posted @ 2015-07-13 09:26 陆草纯 阅读(1027) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 27 下一页