摘要: 题目: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical. 阅读全文
posted @ 2018-04-17 20:11 Zhao_Gang 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The len 阅读全文
posted @ 2018-04-13 13:20 Zhao_Gang 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 题目: A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if t 阅读全文
posted @ 2018-04-13 10:06 Zhao_Gang 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 题目: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original d 阅读全文
posted @ 2018-04-13 09:43 Zhao_Gang 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1 题目: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes s 阅读全文
posted @ 2018-04-12 11:31 Zhao_Gang 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 0 可计算理论与常见面试算法分类 可计算理论又被称为算法理论。 1 什么是可计算的? 什么又是不可计算的? 这涉及到一个非常著名的问题:NPC NP和P 问题。 1 关于算法设计方法 2 “五大常用算法” 网上流产着一种“五大常用算法”的说法,它们分别是: 分治法(d&C devide&conque 阅读全文
posted @ 2018-04-09 15:54 Zhao_Gang 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 不知不觉中,2018年来了,我也马上要37了。 2017年,经历了工作的变动,有遗憾,有挣扎,很怀念在之前公司的日子。现在,也在迷茫中仿佛看到了一条路。 2018,希望彤彤变得更好,我跟gj变得更好,希望父母开心健康。 阅读全文
posted @ 2018-02-11 18:31 Zhao_Gang 阅读(73) 评论(0) 推荐(0) 编辑
摘要: Redis简介 Redis是NoSQL数据库中的一种,属于key-value键值对这一个子类别。 它常被称作是一款数据结构服务器(data structure server)。 Redis中的数据结构都是存在于内存中的,所以Rdis也可以被称为是内存型数据库, 顾名思义就是将数据放在内存中直接操作的 阅读全文
posted @ 2016-10-25 09:41 Zhao_Gang 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 《Machine Learning》,作者Tom Mitchell,卡内基梅隆大学。 第一章 引言 1.1 学习问题的标准描述: 机器学习的定义: 如果一个计算机程序针对某类任务T的用P衡量的性能根据经验E来自我完善, 那么我们称这个计算机程序在从E中学习,针对某类任务T,它的性能用P来衡量。 例子 阅读全文
posted @ 2016-10-08 17:32 Zhao_Gang 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1. 客户端选择 git在本地,有多种客户端可供选择,比如eclipse的插件EGit,还有git的官方客户端: Git Bash, Git CMD, Git GUI等。 推荐使用官方的Git Bash, 原因主要是: Git Bash 使用命令行方式操作,比EGit和Git GUI更加快捷。另外的 阅读全文
posted @ 2016-09-23 11:28 Zhao_Gang 阅读(1455) 评论(0) 推荐(0) 编辑