2017年10月25日

摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr 阅读全文
posted @ 2017-10-25 20:05 Wanna_Go 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You need to h 阅读全文
posted @ 2017-10-25 10:12 Wanna_Go 阅读(256) 评论(0) 推荐(0) 编辑

2017年10月24日

摘要: 使用sklearn进行数据挖掘系列文章: 1. "使用sklearn进行数据挖掘 房价预测(1)" 2. "使用sklearn进行数据挖掘 房价预测(2)—划分测试集" 3. "使用sklearn进行数据挖掘 房价预测(3)—绘制数据的分布" 4. "使用sklearn进行数据挖掘 房价预测(4)— 阅读全文
posted @ 2017-10-24 21:11 Wanna_Go 阅读(4223) 评论(2) 推荐(2) 编辑
摘要: 使用sklearn进行数据挖掘系列文章: 1. "使用sklearn进行数据挖掘 房价预测(1)" 2. "使用sklearn进行数据挖掘 房价预测(2)—划分测试集" 3. "使用sklearn进行数据挖掘 房价预测(3)—绘制数据的分布" 4. "使用sklearn进行数据挖掘 房价预测(4)— 阅读全文
posted @ 2017-10-24 21:03 Wanna_Go 阅读(9764) 评论(0) 推荐(5) 编辑
摘要: 本文简介了python logging模块的一些基本用法,并在文章的末尾根据自己的需求,自定义了一个日志模块,通过阅读本文希望对你有帮助。 日志是用来记录程序在运行过程中发生的状况,在程序开发过程中添加日志模块能够帮助我们了解程序运行过程中发生了哪些事件,这些事件也有轻重之分。 根据事件的轻重可分为 阅读全文
posted @ 2017-10-24 18:04 Wanna_Go 阅读(1295) 评论(0) 推荐(0) 编辑
摘要: Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Sil 阅读全文
posted @ 2017-10-24 09:56 Wanna_Go 阅读(160) 评论(0) 推荐(0) 编辑

2017年10月22日

摘要: 数据挖掘的过程中,数据进行处理是一重要的环节,我们往往会将其封装成一个方法,而有的时候这一个方法可能会被反复调用,每一次都对数据进行处理这将是一个很耗时耗资源的操纵,那么有没有办法将计算后的结果 起来达到 调用一次,处处运行 的效果,经过一番研究在 中发现了一段代码,详见 "lazy_object_ 阅读全文
posted @ 2017-10-22 21:55 Wanna_Go 阅读(1839) 评论(0) 推荐(0) 编辑
摘要: 在面向对象编程的时候,我们定义一个 类 这样写法能够方便的访问属性 , 这样写起来虽然很简单,但是没有参数检验(eg,输入非数值,输入过大的数值)。 写过Java的人知道,在Java有一种类叫做实体类(entity,javabean等),它们一般不提供其他复杂的方法只提供简单的 和`setter`等 阅读全文
posted @ 2017-10-22 21:43 Wanna_Go 阅读(196) 评论(0) 推荐(0) 编辑

2017年10月19日

摘要: Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return true. s = "rat", t 阅读全文
posted @ 2017-10-19 19:49 Wanna_Go 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a 阅读全文
posted @ 2017-10-19 10:37 Wanna_Go 阅读(124) 评论(0) 推荐(0) 编辑

导航