自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 Buffalo CSE Project submition method

Buffalo CSE Project submition methodIf the files need to convert to tar file, then use: tar -cvf lab1.tar filename.ipynb lab1 is the new tar file name, filename.ipynb is the original file.Conne...

2018-02-10 03:26:38 584

原创 Course Schedule && Course Schedule ||

Course Schedule && Course Schedule ||For Course Schedule Problem description: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites,...

2018-02-08 02:09:23 458

原创 LeetCode Two Sum

LeetCode Two Sum先贴上LeetCode第一题题目:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one so...

2018-02-08 02:07:18 235

原创 Hamming Distance

LeetCode Hamming Distance先贴题目 The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x and y, calculate the Hamming ...

2018-02-08 02:07:10 330

原创 Encode and Decode TinyURL

LeetCode Encode and Decode TinyURL先贴上题目: 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 http://tin...

2018-02-08 02:07:02 330

原创 Judge Route Circle

LeetCode Judge Route Circle先贴上题目: Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place....

2018-02-08 02:06:52 284

原创 Merge Two Binary Trees

LeetCode Merge Two Binary Trees先看题目: 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 are not.You n...

2018-02-08 02:06:43 243

原创 LintCode Introduce Java & Coding Interview

LintCode Introduce Java 必做部分9.4号美国劳动节放假一天,换个平台刷点算法题,先从基础的开始,由于这部分题目比较简单,我准备一个单元分两次写博客,一次必做题部分,一次选做题部分。今天带来的是第一单元必做题部分:第一题 反转一个只有3位数的整数。 注意事项 你可以假设输入一定是一个只有三位数的整数,这个整数大于等于100,小于1000。 样例 123 反转...

2018-02-08 02:06:30 248

原创 Reverse Integer

LeetCode Reverse Integer先贴题目: Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321The input is assumed to be a 32-bit signed integer. Your function should...

2018-02-08 02:06:08 219

原创 Sort Algorithms

Sort Algorithms 常见排序算法总结本文将总结3种常见的排序算法,分别是冒泡排序法,选择排序法和快速排序法。Bubble Sort:比较两个相邻的元素,将值大的元素交换至右端,持续此操作直至数组末端。经过这一趟比较,我们已经将数组中最大的元素放在了整个数组的最右端。然后需要对前面N-1个元素也利用同样的过程操作。由此可见:N个数字要排序完成,总共进行N-1趟排序,第i趟的排序次...

2018-02-08 02:02:14 253

原创 Binary Tree and Recursion Ⅰ

Binary Tree and Recursion Ⅰ这篇帖子简单讨论下二叉树这种数据结构以及一道二叉树算法题。 首先复习下二叉树的基本知识二叉树特点1、每个结点最多有两颗子树,结点的度最大为 22、左子树和右子树是有顺序的,次序不能颠倒3、即使某结点只有一个子树,也要区分左右子树。满二叉树和完全二叉树的定义在一棵二叉树中,如果所有分支结点都存在左子树和右子树,并且叶子

2018-01-12 10:48:53 186

原创 Copy List with Random Pointer(复制有随机指针的链表)

Copy List with Random Pointer (复制有随机指针的链表)A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of t

2018-01-08 09:36:31 207

原创 Longest Palindrome

Longest PalindromeGiven a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.This is case sensitive, for examp

2018-01-07 08:57:44 168

原创 Java 归并排序(MergeSort)

java 归并排序

2017-10-15 09:27:33 2410

原创 Maximum product of consecutive subsequence(最大连续子序列乘积)

最大连续子序列乘积

2017-10-09 10:53:13 464

原创 有效回文串

有效回文串

2017-09-25 10:54:00 291

原创 Vernam密码及Weak Key

Vernam密码及Weak Key

2017-09-18 07:58:31 4236 1

原创 LintCode String, Function & Class 第一部分

LintCode String, Function & Class 第一部分

2017-09-11 08:48:47 256

原创 LintCode Java Basic, Integer and Array 第一部分

LintCode Java Basic, Integer and Array

2017-09-08 09:49:22 197

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除