上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: 原题 TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design tinyurl and it returns a short URL such as h 阅读全文
posted @ 2017-07-06 22:44 l.shane 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 原题 A group of two or more people wants to meet and minimize the total travel distance. You are given a 2D grid of values 0 or 1, where each 1 marks th 阅读全文
posted @ 2017-07-06 11:37 l.shane 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 原题: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given 阅读全文
posted @ 2017-07-04 23:29 l.shane 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 原题: 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 sum 阅读全文
posted @ 2017-07-04 21:58 l.shane 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 上一节讲了如何和远端的仓库协同工作,这一节介绍一下分支 ———————————————————————————— 提要 一、创建分支、合并、删除 之前的小节里,我们讲到的分支都只有master只一个默认分支,使用分支的场景如下: 你想做一个A功能,但还有一个B功能也需要你开发。这两个功能哪个先做完就 阅读全文
posted @ 2017-07-03 08:23 l.shane 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: 原题 Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others ar 阅读全文
posted @ 2017-07-02 22:36 l.shane 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 前面4节将的都是本地的git操作,这节开始讲合并到本地分支后,如何与远程仓库做交互 ———————————————————————————————— 提要 准备工作 在与远程仓库协同工作之前,需要先创建SSHKey,如果没有创建过,则新建一个这样的文件 意思是生成一个ssh key 后面引号里的是你 阅读全文
posted @ 2017-07-02 15:58 l.shane 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 最近的学习有些提不起兴趣,我打算加点辅料,开始在leetcode上面刷刷算法题 打算从最简单的最常见的题开始刷,每天1 2题,可以利用一下上下班路途上的时间,岂不是很高效~~ ———————————————————————————————————— 原题: The Hamming distance 阅读全文
posted @ 2017-07-02 09:25 l.shane 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 一、工作区 第一篇创建版本库讲的有些笼统,这里详细区分一下各个概念 在第一篇我们创建了一个文件夹GitRepo,但其实这个文件夹本身并不是版本库,只是我们的工作区。我们所有的文件创建和修改都在这里执行。 二、版本库 在工作区文件夹下面,有一个隐藏的目录,.git,这个才是用来管理git版本的版本库, 阅读全文
posted @ 2017-07-01 23:43 l.shane 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 提要 一、版本查看 多次提交后可以通过指令查看历史提交记录 以上是详细信息的版本,可以使用指令只呈现一行,看起来比较清晰 这个是又提交了一次的历史log, pretty=oneline表示用一行的格式显示提交 前面一串是提交版本的id,HEAD表示当前版本,id后面跟着的是提交的content 二、 阅读全文
posted @ 2017-07-01 23:22 l.shane 阅读(3424) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页