上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 题目描述: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation 阅读全文
posted @ 2016-03-23 13:51 scottwang 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 数据挖掘是指以某种方式分析数据源,从中发现一些潜在的有用的信息,所以数据挖掘又称作知识发现,而关联规则挖掘则是数据挖掘中的一个很重要的课题,顾名思义,它是从数据背后发现事物之间可能存在的关联或者联系。举个最简单的例子,比如通过调查商场里顾客买的东西发现,30%的顾客会同时购买床单和枕套,而购买床单的 阅读全文
posted @ 2016-03-21 14:29 scottwang 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: 数据标准化(归一化)处理是数据挖掘的一项基础工作,不同评价指标往往具有不同的量纲和量纲单位,这样的情况会影响到数据分析的结果,为了消除指标之间的量纲影响,需要进行数据标准化处理,以解决数据指标之间的可比性。原始数据经过数据标准化处理后,各指标处于同一数量级,适合进行综合对比评价。以下是两种常用的归一 阅读全文
posted @ 2016-03-08 22:44 scottwang 阅读(2628) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,2,3]. 解题思路 阅读全文
posted @ 2016-03-07 23:31 scottwang 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example,Given nums = [ 阅读全文
posted @ 2016-03-06 20:35 scottwang 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 题目描述: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle 阅读全文
posted @ 2016-03-06 20:20 scottwang 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may 阅读全文
posted @ 2016-03-06 16:23 scottwang 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 转载自:【聚类算法】谱聚类(Spectral Clustering) 1、问题描述 谱聚类(Spectral Clustering, SC)是一种基于图论的聚类方法——将带权无向图划分为两个或两个以上的最优子图(sub-Graph),使子图内部尽量相似,而子图间距离尽量距离较远,以达到常见的聚类的目 阅读全文
posted @ 2016-03-05 20:33 scottwang 阅读(2439) 评论(0) 推荐(1) 编辑
摘要: 题目描述: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums e 阅读全文
posted @ 2016-03-04 14:36 scottwang 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two ele 阅读全文
posted @ 2016-03-04 13:42 scottwang 阅读(1129) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页