自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 leetcode --- Implement strStr()

class Solution: def strStr(self, haystack: str, needle: str) -> int: if needle =="": return 0 if len(haystack) == len(needle): if haystack == needle: ...

2019-06-04 15:35:19 175 1

原创 leetcode -- 最长公共前缀

class Solution: #最长公共前缀 def longestCommonPrefix(self, strs: List[str]) -> str: a = "" if not strs: return '' for i in range(len(strs[0])): f...

2019-06-03 14:21:58 126

原创 leetcode -- Roman number

class Solution: def romanToInt(self, s: str) -> int: if 'IV' or 'IX' or 'XL' or 'XC' or 'CD' or 'CM' in s: s= s.replace('IV','4 ') s=s.replace('IX','9 ') ...

2019-06-03 11:27:18 183

原创 leedcode--Palinfrome Number

class Solution: def isPalindrome(self, x: int) -> bool: y=x #当x为0,成立 if x==0: return True #当x<0或是10的倍数,不成立 if x < 0 or x%10 == 0: ...

2019-06-03 10:12:22 117

原创 leetcode----反转整数

Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21class Solution: de...

2019-06-02 23:06:58 84

原创 python3-爬虫学习的第一天

主要学习使用Fiddle和一些urllib库的使用。明天上午做笔记哦

2019-04-11 22:29:15 81

原创 机器学习 算法一:线性回归

监督学习(给定数据集-----部分数据集已有标签,对其进行学习,再分类预测。分类问题)无监督学习(给定一系列数,让机器自己发现规律。聚类问题)回归问题:是指要预测一个连续值的输出,比如房价线性回归是很常见的一种回归,用来预测或者分类,主要解决线性问题m------训练集样本数x------输入变量y------输出变量h-----假设函数,给定x---->y简...

2019-04-10 22:13:28 125

原创 day3--2019/4/9牛客网10题

1、有一台系统为Linux的计算机,在其当前目录下有一个名为test的文本文件,管理员小张要用vi编辑器打开该文档以查看其中的内容,应使用(vi test)命令.2、下列哪些命令可以测试网络通不通?ping3、在RHEL5系统中,在vi编辑器环境中的任意时刻,选择“ESC”键后,编辑器将进入(命令)模式4、Linux crontab中* * * * * /usr/local/run.s...

2019-04-09 21:47:33 543

原创 2019-4-7/day2 --add two numbers

题目:给定两个非负整数的链表。数字以相反的顺序存储,每个节点包含一个数字。将这两个数字相加,并作为链表返回Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)Output: 7 -> 0 -> 8Explion: 342 + 465 = 807.思路:先将两个链表均表示为数字,数字进行相加,再将数字转换为链表输出直接...

2019-04-07 13:44:09 104

原创 深度学习 RNN 循环神经网络(一)BasicRNNCell

看了基础的rnn感觉,理论似乎懂了,但是刚刚接触深度学习的我感觉有点难度。参考网址:https://blog.csdn.net/The_lastest/article/details/83544280这篇讲一下深度学习循环神经网络构建网络的主要参数:output=h1=f(x1∗W+h0∗U+B)标准的RNN单元有三个可训练的参数 W,U,B,激活函数tanh,以及两个状态:x1输入状...

2019-04-06 20:40:25 377

原创 2019-4-6/ day1--two sum python

题目:输入一个数组和target,要在一个数组中找到两个数字,其和为target,从小到大输出数组中两个数字的位置。给定数组:nums = [2, 7, 11, 15], 数值:target = 9,使得:nums[0] + nums[1] = 2 + 7 = 9,返回:return [0, 1]暴力搜索--循环,时间复杂度n*nclass Solution(object):...

2019-04-06 19:12:57 114

转载 ecplise安装插件Aptana

一、Aptana插件官网地址        我在网上试过登陆到aptana官网后点击下载,选择下载eclipse插件版,然后页面给出一串地址:http://download.aptana.com/studio3/plugin/install,页面提示在eclipse上输入这个地址就可安装aptana插件,但结果证明这个地址根本没法使用,eclipse是获取不到插件的。     在网上找了很多人写的...

2018-04-10 14:56:21 388

原创 leetcode9

以k个步骤向右旋转n个元素的数组。例如,当n = 7和k = 3时,数组[1,2,3,4,5,6,7]被旋转到[5,6,7,1,2,3,4]。package leetcode;public class leetcode9 { public void reverse(int[] nums,int start,int end) { while(start&lt;end) { int temp=...

2018-03-22 13:52:23 236

原创 pascal's triangle

给定索引k,返回帕斯卡三角形的第k行。例如,给定k = 3,返回[1,3,3,1]。注意:您可以优化您的算法以仅使用O(k)额外空间吗?         public static List&lt;Integer&gt; getRow(int rowIndex) {        List&lt;Integer&gt; row = new ArrayList&lt;Integer&gt;(); ...

2018-03-21 20:30:02 131

原创 leetcode7 Plus One

Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.You may assume the integer do not contain any leading zero, except the number 0 itself.The digits are s...

2018-03-20 16:51:19 184

原创 leetcode6

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.Exam...

2018-03-18 15:23:04 142

原创 leetcode5

给定一个32位有符号整数,整数的反转数字。例1:输入: 123 输出: 321例2:输入: -123 输出: -321例3:输入: 120输出: 21public static int reverse1(int x) { long result=0; while(x!=0) { result=(result*10)+(x%10); if(result&gt;Integ...

2018-03-16 16:33:59 390

原创 leetcode4

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)).Example 1:nums1 = [1, 3]nums2...

2018-03-15 21:53:15 197

原创 leetcode3

Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b", with the l...

2018-03-13 19:46:33 302

原创 leetcode2

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return i...

2018-03-12 21:56:19 94

原创 leetcode1

day1: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, and you may not use the sa...

2018-03-11 21:36:27 126

原创 eclipse的快捷键

1、alt+?或alt+/:自动补全代码或者提示代码2、ctrl+o:快速outline视图3、ctrl+shift+r:打开资源列表5、ctrl+e:快速转换编辑器6、ctrl+page down或ctrl+page up: 选项卡之间快速切换7、shift+enter及ctrl+shift+enter: 在当前行上或者下边创建空白8、Alt+方向键上下:上下行交换内容或

2018-01-31 13:02:26 164

原创 ecplise使用注意

在ecplise中常常会遇到这样的错误:Exception in thread "main" java.lang.Error: Unresolved compilation problem: No enclosing instance of type test22 is accessible. Must qualify the allocation with an enclosing

2017-07-23 13:43:50 367

原创 MATLAB基本绘图操作

一:二维平面绘图画出y=sin(x)的图像x=0:0.01:2*pi;y=sin(x);figureplot(x,y);title('y=sin(x)')xlabel('x')ylabel('sin(x)')xlim([0 2*pi])在同一幅中画两图x=0:0.01:20;y1=200*exp(-0.05*x).*sin(x);y2=0.8*e

2017-07-22 17:07:18 866

原创 imatest软件的学习 及使用

Imatest测试报告使用imatest软件来分析摄像头拍摄的照片,来验证摄像头的各个参数指标。测试项目:色彩饱和度,白平衡,噪点,色散,MTF50,线条分辨率,视场角,对比度,动态范围,畸变,杂光,鬼影,色斑,对焦程度。Colorcheck:这是最常要求分析的项目,其主要分析色彩饱和度,白平衡,色彩还原,噪声。使用的chart是24色卡,在环境为D65光源的情况下,距离约为5cm

2017-07-22 16:55:49 30620 2

空空如也

空空如也

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

TA关注的人

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