算法
夜读春秋
即使庄周梦蝶,亦是好梦一场,尽绵薄之力,留下些许
展开
-
LeetCode:Two Sum
最近看大牛的博客,有提到LeetCode-OJ,于是也上去凑个热闹。不定期更新我做的题。 Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two原创 2015-08-09 09:25:56 · 451 阅读 · 0 评论 -
LeetCode:Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 根据返回值为double,输入为int可知,如果m+n为原创 2015-08-16 16:01:57 · 427 阅读 · 0 评论 -
LeetCode:Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for “abcabcbb” is “abc”, which the length is 3. For “原创 2015-08-13 13:24:54 · 377 阅读 · 0 评论 -
LeetCode:Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linke原创 2015-08-09 14:45:10 · 392 阅读 · 0 评论 -
LeetCode: Bulls and Cows
论文暂告一段落,闲着无聊到 LeetCode 刷刷题,蛤蛤蛤。题目链接:Bulls and Cows题目大意如下: 先给出一个数字串secret,再给出一个长度一样的猜测数字串guess。 对guess某个位置上的数字,若在secret串中的相同位置上存在相同的数字,则输出 1A,若有两个这种情况,则输出 2A; 当猜测数字串中除去完全匹配上位置的数字外,还有只猜中数字的情况原创 2016-04-09 18:07:57 · 424 阅读 · 0 评论 -
Win10 配置 tensorflow
进入2018年了,谷歌的 tensorflow 如火如荼,更新一把 系统:Win10 64-bit 显卡:GTX 960m Python:3.6 安装 Python 环境 用的 Anaconda,版本 4.5.2,python 3.6。 安装 tensorflow 根据 官网说明 安装 tensorflow,可选仅支持 cpu 模式的,这里选的是支持 gpu 的。...原创 2018-05-05 20:54:38 · 1576 阅读 · 2 评论