摘要: `Array Two Pointers` Description: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume th 阅读全文
posted @ 2017-07-14 09:53 6002 阅读(99) 评论(0) 推荐(0) 编辑
摘要: `Array` Description: Given a non negative integer represented as a non empty array of digits, plus one to the integer. You may assume the integer do n 阅读全文
posted @ 2017-07-13 11:18 6002 阅读(97) 评论(0) 推荐(0) 编辑
摘要: `Array DP Divide and Conquer` Description: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. Fo 阅读全文
posted @ 2017-07-12 10:33 6002 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 环境 OS: Ubuntu 16.04 64 Bit JDK: 1.7.0_80 64 Bit Hadoop: 2.6.5 原理 《权威指南》有两张图,下次po上来好好聊一下 实测 读操作 1. 创建在 目录下 (放 和`.class input`目录 2. 在 目录下建立 文件,并写入内容 3. 阅读全文
posted @ 2017-07-11 16:26 6002 阅读(319) 评论(0) 推荐(0) 编辑
摘要: `Array Binary Search` Description: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it 阅读全文
posted @ 2017-07-11 09:46 6002 阅读(175) 评论(0) 推荐(0) 编辑
摘要: `Array Two Pointers` Description: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate e 阅读全文
posted @ 2017-07-10 09:46 6002 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Descriptions: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate 阅读全文
posted @ 2017-07-09 15:33 6002 阅读(153) 评论(0) 推荐(0) 编辑
摘要: `Array Hash Table` Question Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume t 阅读全文
posted @ 2017-05-13 22:13 6002 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 因为手头在做一个项目,我负责后台,就顺带快进学习Udacity上一个水课(?):Full Stack Foundation。上课的好像是个印度小哥(?),按1.5倍速听讲话还是有点逗的。废话不多说,进入话题 前言 小哥调用python中 库来实现所有的数据库交互,主要提供SQL工具包和ORM(对象关 阅读全文
posted @ 2017-05-05 23:13 6002 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 注:本文实例分别可以在oldcastle(未优化的代码)和newcastle(优化后的代码)中查看,网址见文末 城堡游戏: 城堡中有多个房间,用户通过输入north, south, east, west等来确认去哪一个房间(此时窗口会有提示转到哪个房间),如果此时多出一个房间,需要使用up, dow 阅读全文
posted @ 2017-05-05 19:24 6002 阅读(677) 评论(0) 推荐(0) 编辑