自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

yxy

加油

  • 博客(16)
  • 资源 (3)
  • 问答 (2)
  • 收藏
  • 关注

原创 LeetCode 344. Reverse String

题目链接:https://leetcode.com/problems/reverse-string/ 题目描述: Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". 方法一:借助额外空

2016-09-29 20:12:13 155

原创 LeetCode 292. Nim Game

题目链接:https://leetcode.com/problems/nim-game/ 题目描述: ou are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to

2016-09-29 20:05:37 156

原创 约瑟夫问题

代码: #include "stdafx.h" #include using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; void main() { ListNode* head = new ListNode

2016-09-28 21:11:42 258

原创 Leetcode 234. Palindrome Linked List

题目链接:https://leetcode.com/problems/palindrome-linked-list/ 题目描述: Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? S

2016-09-28 20:12:43 153

原创 Leetcode 136. single number

题目链接:https://leetcode.com/problems/single-number/ 题目描述: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linea

2016-09-27 21:20:08 186

原创 LeetCode 27. Remove Element

题目链接:https://leetcode.com/problems/remove-element/ 题目描述: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for ano

2016-09-26 20:28:01 194

原创 LeetCode 394. Decode String LeetCode 385. Mini Parser

题目链接:https://leetcode.com/problems/decode-string/ 题目描述: The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note tha

2016-09-16 21:07:08 354

原创 LeetCode 127. Word Ladder

题目链接:https://leetcode.com/problems/word-ladder/ 题目描述: Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence frombeginWord to

2016-09-13 14:51:51 251

原创 LeetCode 242. Valid Anagram

题目链接:https://leetcode.com/problems/valid-anagram/ 题目描述: Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return tr

2016-09-12 17:22:53 158

原创 LeetCode 75. Sort Colors

题目链接:https://leetcode.com/problems/sort-colors/ 题目描述: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the o

2016-09-11 19:09:29 181

原创 Leetcode 38. Count and Say

题目链接:https://leetcode.com/problems/count-and-say/ 题目描述: The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" o

2016-09-11 16:09:28 179

原创 LeetCode 34. Search for a Range(binary search)

题目链接:https://leetcode.com/problems/search-for-a-range/ 题目描述: Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexi

2016-09-07 21:57:57 161

原创 LeetCode 121. Best Time to Buy and Sell Stock(dynamic programming)

题目链接:https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ 题目描述: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to

2016-09-06 21:34:40 173

原创 LeetCode 122. Best Time to Buy and Sell Stock II(greedy)

题目链接:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/ 题目描述: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to fin

2016-09-06 21:26:12 330

原创 LeetCode 53. Maximum Subarray(dynamic programming)

题目链接:https://leetcode.com/problems/maximum-subarray/ 题目描述: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the arra

2016-09-06 19:09:31 357

原创 LeetCode 39.Combination Sum,40. Combination Sum II,216. Combination Sum III

题目链接:https://leetcode.com/problems/combination-sum/ 题目描述: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.

2016-09-05 21:05:14 296

hadoop权威指南第三版(原版)

分享hadoop权威指南第三版(原版),按需下载

2016-02-29

斯坦福大学机器学习吴恩达讲义

斯坦福大学机器学习吴恩达全部的讲义,强烈推荐

2014-10-25

数字逻辑电路课程设计自动洗涤系统设计

设计并制作一个电子定时器,用以控制洗衣机电机的运转,要求如下: 1、 洗衣机电机的工作顺序: 启动->正传20s->暂停10s->反转20s->暂停10s(设置的洗涤时间内,电机的工作周期在循环) 2、 用四个LED灯模拟洗衣机的工作状态:LED1(right)亮表示正传,LED2(ps1)闪烁表示第一个暂停,LED3(left)亮表示反转, LED4(ps2)闪烁表示第二个暂停(在此虽然两个暂停由于时序上不同,因此分别表示) 3、 用数码管显示洗涤时间,按倒计时方式对洗涤过程做计时显示,在洗涤结束前07秒时开始报警,一直响直到关掉开关。 4、 洗涤时间在0-60分钟内可由用户任意设定,并设置启动键在预置定时时间后,按启动键开始机器运转。 5、 设置停止键,在洗涤过程中随时按该键可终止洗涤,并使显示器清0。 注:红色为特色之处

2014-06-25

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

TA关注的人

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