【226-Invert Binary Tree(反转二叉树)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】代码下载【https://github.com/Wang-Jun-Chao】原题 Invert a binary tree. 4
/ 2 7
/ \ / 1 3 6 9 to 4
/ 7...
分类:
编程语言 时间:
2015-08-30 07:42:46
阅读次数:
187
【219-Contains Duplicate II(包含重复元素II)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】代码下载【https://github.com/Wang-Jun-Chao】原题 Given an array of integers and an integer k, find out whether there are two distinct ind...
分类:
编程语言 时间:
2015-08-29 07:30:34
阅读次数:
201
【223-Rectangle Area(矩形区域)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】代码下载【https://github.com/Wang-Jun-Chao】原题 Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined...
分类:
编程语言 时间:
2015-08-29 07:29:33
阅读次数:
265
【225-Implement Stack using Queues(用队列实现栈操作)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】代码下载【https://github.com/Wang-Jun-Chao】原题 Implement the following operations of a stack using queues.
push(x) – Push ele...
分类:
编程语言 时间:
2015-08-29 07:28:16
阅读次数:
193
【216-Combination Sum III (组合数的和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】代码下载【https://github.com/Wang-Jun-Chao】原题 Find all possible combinations of k numbers that add up to a number n, given that only numbe...
分类:
编程语言 时间:
2015-08-28 07:21:06
阅读次数:
251
【215-Kth Largest Element in an Array(数组中第K大的数)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】代码下载【https://github.com/Wang-Jun-Chao】原题 Find the kth largest element in an unsorted array. Note that it is the kth lar...
分类:
编程语言 时间:
2015-08-28 07:20:26
阅读次数:
368
【217-Contains Duplicate(包含重复元素)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】代码下载【https://github.com/Wang-Jun-Chao】原题 Given an array of integers, find if the array contains any duplicates. Your function should r...
分类:
编程语言 时间:
2015-08-28 07:18:45
阅读次数:
212
这个系列是为了应对找工作面试时面试官问的算法问题,所以只是也谢算法的简要介绍,后期会陆续补充关于此
算法的常见面问题。
分类的概念就说了,分类一般分为两个阶段:学习阶段以及分类阶段;
常用的分类方法有:
1、决策树
决策树不需要任何领域的知识或者参数的设置,其可以处理高维数据,简单快速。
若分类的数据是连续的,则需要插入分裂点将数据离散化;树建立的过程中,需要按照一定...
分类:
编程语言 时间:
2015-08-27 13:29:02
阅读次数:
208
这个系列是为了应对找工作面试时面试官问的算法问题,所以只是也谢算法的简要介绍,后期会陆续补充关于此
算法的常见面问题。
一、Logistic回归
先说下logistic回归,它是根据现有数据对分类边界建立回归公式,以此进行分类。其计算代价不高,易于实现与理解,但是容易欠拟合、分类精度不太高;
logistic回归可以看成是一种概率估计,使用的的是sigmioid函数,...
分类:
编程语言 时间:
2015-08-26 12:04:29
阅读次数:
286
【202-Happy Number(开心数字)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】代码下载【https://github.com/Wang-Jun-Chao】原题 Write an algorithm to determine if a number is “happy”.
A happy number is a number defined by the...
分类:
移动开发 时间:
2015-08-26 08:19:14
阅读次数:
204