自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (12)
  • 收藏
  • 关注

原创 Implement strStr()

Description:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.问题描述在源字符串中找目标字符串,如果有,返回第一次出现的首字母索引,否则返回-1..解法一:思路:来个暴搜解法。。。Code:p

2017-02-28 21:00:00 189

原创 Find the Duplicate Number

Description:Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate

2017-02-27 21:15:27 169

原创 Search in Rotated Sorted Array

Description:Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target value to search. If f

2017-02-27 20:46:49 171

原创 Two Sum II - Input array is sorted

问题描述简化了的Two Sum问题,数组全部已经递增排列解法一:思路:由于已经递增排列,那么就不需要用之前的HashMap了,直接上一首一尾两个指针,根据情况移动指针就可以了Code:public class Solution { public int[] twoSum(int[] numbers, int target) { int lo = 0, hi = numbers

2017-02-27 20:37:41 174

原创 Search a 2D Matrix

Description:Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right. The first integer of

2017-02-27 20:32:44 166

原创 SSD迁移攻略

前言:由于Y480电脑实在是卡的不行,而且因为经济原因不想换电脑,所以选用SSD给电脑回血的方法,让电脑在晚年恢复一点活力。。。拆机工作:换SSD首先要做的工作就是解决硬件问题,也就是拆机。。。。 总体来说,要做的事情是把原来的机械硬盘放到光驱的位置上去(这里你需要买一个光驱托架),然后把买的SSD放到电脑的硬盘位,然后把电脑装好后开机,如果在磁盘管理中能够检测到自己的SSD,证明已经装好SS

2017-02-26 21:07:55 2737

原创 Search for a Range

Description:Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm’s runtime complexity must be in the order of O(log n).If t

2017-02-25 22:10:59 254

原创 Search Insert Position

Description: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 t

2017-02-25 21:32:57 206

原创 Validate Binary Search Tree

Description:Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: 1.The left subtree of a node contains only nodes with keys less than the node

2017-02-25 21:15:13 266

原创 Find Peak Element

Description:A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple peaks,

2017-02-24 21:34:32 248

原创 Arranging Coins

DescriptionYou have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.Given n, find the total number of full staircase rows that can be forme

2017-02-24 21:04:02 151

原创 Sqrt(int x) &&Sqrt(double x)

DescriptionImplement int sqrt(int x).问题描述实现求整数X的平方根函数解法一思路:核心思路是二分查找,初始左边界(left)为1,初始右边界(right)为x… 比较条件为mid与x/mid做比较。。。 如果 mid < sqrt(x) 即mid < x/mid , left = mid + 1, right不动,right为最终答案。 如果mid > sq

2017-02-24 20:55:18 796

原创 常用二分查找模板

//二分查找各种情况编写练习public class BinarySearch {//精确查找---用递归实现二分查找,精确查找目标元素的位置,假定数组递增排列,且不存在重复元素 public int bsearch1(int array[],int low,int high,int target){ if(low > high) return -1; int

2017-02-24 16:45:11 1342 1

《算法导论》高清中文版

这是《算法导论》高清中文版,并且配有详细目录,下载之后绝不后悔,记得好评哦~

2015-04-27

AWGN信道中BPSK调制系统的BER 仿真计算

本文档中含有AWGN信道中BPSK调制系统的BER 仿真计算的程序源代码,并且附有详细注释,另外附有实验分析结果图,愿者自取~

2015-04-25

通用卷积函数

上传代码为通用卷积函数,适用于matlab,开源精神,实现共享

2015-04-10

武汉理工大学通信工程考研试题

武汉理工大学通信工程考研试题,需要者可以自行下载,希望能给广大考生以帮助

2015-03-19

信号与系统重点综述与习题详解

信号与系统重点综述与习题详解,刘泉版,适合考武汉理工大学通信工程专业研究生

2015-03-19

打字母小游戏

在一个300*400的窗体上,有10个随机产生的字母向下落,在键盘上敲字母,如果对了就消掉, 初始成绩为1000分,每敲对一个字母加10分,如果字母落到屏幕下方,或者敲错扣100分。

2015-02-06

键盘控制小球源程序

本程序的作用是用键盘控制小球,为作者学习java时所写,实现开源精神,免费共享

2015-02-05

漫天大雪的程序代码

实现漫天大雪的代码,需要参考者自行下载,无需积分哟

2015-02-03

Java有趣代码

这个代码是用来实现五颜六色的星星,有兴趣的读者可以下载,希望多多给于支持

2015-02-02

楼宇呼叫系统

用proteus做的楼宇呼叫系统,建立的仿真模型,含程序代码和工程文件。

2015-01-20

楼宇呼叫系统仿真

用proteus做的楼宇呼叫系统,建立的仿真模型,含程序代码和工程文件。

2015-01-20

单片机相关文档

单片机资源很好的哦,你值得拥有

2013-09-28

空空如也

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

TA关注的人

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