- 博客(16)
- 资源 (4)
- 收藏
- 关注
原创 Two Sum
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 solution.Example:Given nums = [2,
2016-11-25 15:21:17
241
原创 Longest Repeating Character Replacement
Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k times. Find the length of a longest substring containing all repe
2016-11-24 21:46:57
385
原创 python读取.raw了类型的图像
import ImagerawData =open("I.raw"'rb').read()im = Image.fromstring("F", (512,512), rawData, "raw", "F;32F")# "F" 指定图像的mode为“F”# (512,512)为 图像大小# rawdata 为存放数据的变量# "raw" 指定图像
2016-10-17 21:21:16
11493
2
原创 Deep Learning--Classifying MNIST digits using Logistic Regression
最近在学习关于深度学习的一些基本知识。Classifying MNIST digits using Logistic Regression的模型和原理该网站讲的很清楚 点击打开链接。原理不在概述。其中要明白的一点的是该模型为线性的。下面为数据显示代码:# -*- coding: utf-8 -*-"""Created on Thu Jul 21 09:33:37 2016
2016-07-21 10:32:53
570
原创 Dijkstra算法
Dijkstra算法是寻找最短路径的一种方法,算法的思想是将路径顶点分为两类,一类为已找到的最优路径,一部分为还没有找到,每迭代一次会从未寻找的顶点中寻找到已经寻找到的最优路径的顶点的最优顶点,并更新最优路径到为寻找到的距离;#include "stdafx.h"#include #include using namespace std;const int maxnum = 100;
2016-04-09 20:10:16
285
原创 leetcode之Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and the majority element
2016-04-07 13:15:35
274
原创 leetcode之Power of Two
Given an integer, write a function to determine if it is a power of two.Credits:Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.Subscribe to se
2016-04-07 01:15:53
207
原创 leetcode之Range Sum Query - Immutab
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:Given nums = [-2, 0, 3, -5, 2, -1]sumRange(0, 2) -> 1sumRange(2, 5) -> -1sumRan
2016-04-06 13:38:28
265
原创 leetcode之Move Zeroes
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after calling you
2016-04-05 23:54:06
284
原创 leetcode之Number of 1 Bits
最近在学习LeetCode上的算法题目,今天做了一题。Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit integer ’11' has bi
2015-04-29 19:46:08
361
原创 tomcat配置问题
今晚安装了一下全套的jsp软件,在安装tomcat时第一次运行成功,但是第二次运行时出现了问题,总是一闪而过,搞了一个晚上,环境配置等等,最终发现是由于任务管理器中有2个javaw.ext开着,关了,只留一个,问题解决啊。。。。。。。。。。。。。。。。。。。
2015-04-12 21:17:14
395
原创 2015/04/10随便扯扯
来到新的学校已经3天了,这意味着我的研究生生活,开始了。这三天都在看PSO(粒子群优化算法),中文论文看了两遍了,英文的是一遍没有看完,没办法,全英文实在看不懂。新的环境新的学习氛围,没有熟悉的人,突然感觉有点孤独啊。。。。。心情很郁闷(有点想家啊。。。呵呵)。论文看不下去了,就开始学习使用matlab对图像进行处理,突然发现图像处理还挺好玩的。未来一周打算:1。实习pso算法。2.熟悉使用m
2015-04-10 18:36:40
329
原创 开学的第一天
2013年2月27日星期三,这是进入大二下学期的第一天,今天的第一节课是大学英语四,英语由以前的男老师换成了现在的女老师,即使换成女老师,对英语的兴趣也不会增长很多,但是了解到英语对我们计算机专业的人重要性,不得不去想办法提高自己的英语水平。两节英语课过的很快,接下来是离散数学,令我感到迷惑的是为什么一门专业课要由两个老师教,听了第一个老师一节课,感觉不怎么样,明显没有上学期教我们离散数学(上)的
2013-02-28 10:43:40
368
原创 本科大二学生迷茫中,求指导
我是在校的大二本科生,软件工程专业,由于学校的课程安排,只学习了c语言、离散数学、高数等,像数据结构、数据库等还没有学习。进入大学1年半了,但是感觉自己什么也不会,对自己的未来很迷茫,想学习点东西,但是不知道如何入手,该学习什么,希望各位前辈指导一下,谢谢!
2013-02-26 10:58:14
618
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人