自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (1)
  • 收藏
  • 关注

原创 304. Range Sum Query 2D - Immutable

Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2). Range Sum Query 2D The above rectangle

2017-03-31 15:38:44 235

原创 213. House Robber II

Note: This is an extension of House Robber.After robbing those houses on that street, the thief has found himself a new place for his thievery so that he will not get too much attention. This time, all

2017-03-31 12:06:43 177

原创 198. House Robber

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses

2017-03-30 15:30:13 209

原创 203. Remove Linked List Elements

Remove all elements from a linked list of integers that have value val.Example Given: 1 –> 2 –> 6 –> 3 –> 4 –> 5 –> 6, val = 6 Return: 1 –> 2 –> 3 –> 4 –> 5题解删除链表中所有等于val的节点非递归维持head的上一个节点prev(为方便用

2017-03-29 12:23:51 216

原创 53. Maximum Subarray

Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1,2,1,-5,4], the contiguous subarray [4,-1,2,1] has the

2017-03-28 12:00:22 201

原创 350. Intersection of Two Arrays II

Given two arrays, write a function to compute their intersection.Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2].Note: Each element in the result should appear as many times as it

2017-03-27 14:58:39 194

原创 401. Binary Watch

A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59).Each LED represents a zero or one, with the least significant bit on the

2017-03-23 15:52:02 228

原创 409. Longest Palindrome

Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.This is case sensitive, for example “Aa” is not consider

2017-03-22 12:31:14 292

原创 169. 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 always

2017-03-21 16:44:02 239

原创 542. 01 Matrix

Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.The distance between two adjacent cells is 1.Example 1: Input:0 0 00 1 00 0 0Output:0 0 00 1 00 0 0Example 2:

2017-03-20 21:43:42 250

原创 538. Convert BST to Greater Tree

Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BST.Example:I

2017-03-19 16:08:21 2850

原创 543. Diameter of Binary Tree

Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may no

2017-03-19 13:32:41 657

原创 地牢逃脱

给定一个 n 行 m 列的地牢,其中 ‘.’ 表示可以通行的位置,’X’ 表示不可通行的障碍,牛牛从 (x0 , y0 ) 位置出发,遍历这个地牢,和一般的游戏所不同的是,他每一步只能按照一些指定的步长遍历地牢,要求每一步都不可以超过地牢的边界,也不能到达障碍上。地牢的出口可能在任意某个可以通行的位置上。牛牛想知道最坏情况下,他需要多少步才可以离开这个地牢。输入描述每个输入包含 1 个测试用例。

2017-03-18 20:54:58 1068

原创 合唱团

有 n 个学生站成一排,每个学生有一个能力值,牛牛想从这 n 个学生中按照顺序选取 k 名学生,要求相邻两个学生的位置编号的差不超过 d,使得这 k 个学生的能力值的乘积最大,你能返回最大的乘积吗?输入描述每个输入包含 1 个测试用例。每个测试数据的第一行包含一个整数 n (1 <= n <= 50),表示学生的个数,接下来的一行,包含 n 个整数,按顺序表示每个学生的能力值 ai(-50 <= a

2017-03-18 18:23:00 204

原创 Android计步器悦步——智能聊天+健康贴士

功能健康小知识推送食品营养价值查询疾病查询闲聊 主要是通过http请求开放平台的api,前三个使用的百度开放平台,最后一个是图灵机器人 (前三个api好像已经不提供了,不过使用方法都是一样的,还愁找不到api吗)代码(完整项目源代码见 https://github.com/14353350/Yuebu-Pedometer)api配置 //图灵机器人url及key

2017-03-06 01:51:22 1018

原创 Android计步器悦步——Mob短信验证码SDK

(源代码见 https://github.com/14353350/Yuebu-Pedometer)Mob短信验证码sdk先放个SDK下载地址:http://www.mob.com/downloadDetail/SMS/android 再放个官方文档地址:http://wiki.mob.com/android-短信sdk集成文档/ (SDK不是很好用,至于为什么用它,因为免费啊)使用步骤下载最

2017-03-03 21:14:41 684

原创 数据库设计——医药销售管理系统

开发环境和开发工具操作系统:win8.1 开发环境:Mysql、Web 开发工具:Workbench、Eclipse、JDBC功能需求分析员工有权查看、添加会员,查看、添加供应商,查询药品(输入药品编号或名称、类别等查询该药品或该类药品库存),添加药品采购记录,销售药品,处理退货,盘点仓库,查看销售、退货、入库记录,修改个人信息经理有权查看、添加、删除会员,查看、添加、删除供应商,查看、添加

2017-03-02 22:38:49 39709 19

原创 web课程设计——“四点IT”论坛

项目简介一个分享和交流IT各领域的知识的平台 项目功能登录和注册 在注册时填写用户名、密码、手机、邮箱、选择用户头像等,注册成功后将用户相关信息存储到数据库。用户在注册并登录之后才能发帖、回帖等。修改个人信息 用户登录之后可以修改个人信息。搜索话题 在搜索框可以搜索感兴趣的帖子,然后会把相关帖子全部显示出来。板块 主页分十个版块,可以根据个人兴趣进入不同板块。浏览帖子 任何人有

2017-03-02 18:03:12 1333 1

原创 Android计步器悦步——百度地图

申请密钥每个Key唯一对应一个APP,如果您的APP修改了包名或者发布的时候打包的签名文件改变了,则改变前后的APP被视为两个APP。因此,多个APP【包括一份代码多个包名打包】需申请多个与之对应的Key在同一个工程中同时使用百度地图SDK、定位SDK、导航SDK 和全景SDK的全部或者任何组合,可以共用同一个key SHA1简单获取方法:如图点击signingReport即可查看 配置环

2017-03-02 01:29:28 2369 1

转载 什么是web标准、可用性、可访问性

什么是web标准、可用性、可访问性前言:大家不难发现,只要是招聘UED相关的岗位,如前端开发工程师、交互设计师、用户研究员甚至视觉设计师,一般都对web标准、可用性和可访问性的理解有要求。那么到底什么是web标准、可用性、可访问性呢?一、web标准简单的说,就是HTML、CSS、JavaScript这三者分离。WEB标准不是某一个标准,而是一系列标准的集合。网页主要由三部分组成:结构(Stru

2017-03-01 14:38:58 1401

原创 Android计步器悦步——计步功能

(参考博客 http://www.jianshu.com/p/5d57f7fd84fa)计步功能文件结构思路框图代码(项目源代码 https://github.com/14353350/Yuebu-Pedometer) + StepCountActivity在onCreate方法中初始化Handler,onStart方法中开启服务,以备退到后台,再到前台,会触发onStart方法,以此来开启ser

2017-03-01 00:27:56 3315 2

pdf417条码参考及码字表

pdf417条码参考及码字表

2017-02-26

空空如也

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

TA关注的人

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