gavanwanggw

导航

2017年5月19日 #

ios 导航栏(自己定义和使用系统方式)

摘要: 系统方式: //1.设置导航栏背景图片 [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; self.naviga 阅读全文

posted @ 2017-05-19 21:46 gavanwanggw 阅读(472) 评论(0) 推荐(0) 编辑

关于栈及其应用演示样例

摘要: 转载请注明出处 http://blog.csdn.net/pony_maggie/article/details/30802249 作者:小马 作为一种经常使用的数据结构, 了解栈对于算法的学习是很必要的。栈有先进后出的特点,栈底指向数据表中的第一个元素。栈顶指向最后一个元素的下一个位置。例如以下图 阅读全文

posted @ 2017-05-19 20:20 gavanwanggw 阅读(112) 评论(0) 推荐(0) 编辑

leetcode - Interleaving String

摘要: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca", When s3 = "aadbbcbcac", 阅读全文

posted @ 2017-05-19 19:46 gavanwanggw 阅读(126) 评论(0) 推荐(0) 编辑

URAL 1196. History Exam (二分)

摘要: 1196. History Exam Time limit: 1.5 second Memory limit: 64 MB Professor of history decided to simplify the examination process. At the exam, every stu 阅读全文

posted @ 2017-05-19 18:47 gavanwanggw 阅读(243) 评论(0) 推荐(0) 编辑

可重入锁的获取和释放须要注意的一点儿事

摘要: 什么是可重入锁,不可重入锁呢?"重入"字面意思已经非常明显了,就是能够又一次进入。可重入锁,就是说一个线程在 获取某个锁后,还能够继续获取该锁,即同意一个线程多次获取同一个锁。比方synchronized内置锁就是可重入的 ,假设A类有2个synchornized方法method1和method2, 阅读全文

posted @ 2017-05-19 17:54 gavanwanggw 阅读(279) 评论(0) 推荐(0) 编辑

HDU 5387 Clock (MUT#8 模拟)

摘要: 【题目链接】:click here~~ 【题目大意】给定一个时间点。求时针和分针夹角,时针和秒针夹角,分针和秒针夹角 模拟题,注意细节 代码: #include<bits/stdc++.h> using namespace std; inline int read(){ int c=0,f=1; c 阅读全文

posted @ 2017-05-19 16:59 gavanwanggw 阅读(146) 评论(0) 推荐(0) 编辑

Android项目之HomeHealth基础学习2:Service

摘要: 一、 Service简单介绍 Service是android 系统中的四大组件之中的一个(Activity、Service、BroadcastReceiver、ContentProvider),它跟Activity的级别差点儿相同。但不能自己执行仅仅能后台执行,而且能够和其它组件进行交互。servi 阅读全文

posted @ 2017-05-19 15:35 gavanwanggw 阅读(121) 评论(0) 推荐(0) 编辑

LeetCode OJ 之 Valid Anagram

摘要: 题目: Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return true. s = "rat 阅读全文

posted @ 2017-05-19 14:09 gavanwanggw 阅读(104) 评论(0) 推荐(0) 编辑

Oracle 堵塞(blocking blocked)

摘要: 堵塞是DBA常常碰到的情形,尤其是不良的应用程序设计的堵塞将导致性能严重下降直至数据库崩溃。对DBA而言,有必要知道怎样定位到当前系统有哪些堵塞,究竟谁是堵塞者,谁是被堵塞者。本文对此给出了描写叙述并做了相关演示。 1、堵塞及其类型a、什么是堵塞 一个会话持有某个资源的锁,而还有一个会话在请求这个资 阅读全文

posted @ 2017-05-19 14:04 gavanwanggw 阅读(383) 评论(0) 推荐(0) 编辑

2014/7/24

摘要: 初学存储过程 DELIMITER // 定义写存储过程中的结束符为 // 创建存储过程1: create procedure proce_userinfo(in name varchar(10) ,int pwd varchar(10),out flag int) begin select powe 阅读全文

posted @ 2017-05-19 12:30 gavanwanggw 阅读(94) 评论(0) 推荐(0) 编辑

POJ 3414 Pots BFS

摘要: Pots Description You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: 1.FILL(i) fill t 阅读全文

posted @ 2017-05-19 11:21 gavanwanggw 阅读(163) 评论(0) 推荐(0) 编辑

hdu5119 Happy Matt Friends(dp)

摘要: 题目链接:点击打开链接 题目描写叙述:给出n个数。求从这n个数中随意取出一些数(至少取一个)相互异或之后大于m的方案数? 解题思路:分析因为n<=40&&m<=10^6,因此我们能够枚举全部可能的异或值。时间复杂度40*10^6. 採用动态规划的思想dp[i&1][j]=d[(i-1)&1][j]+ 阅读全文

posted @ 2017-05-19 10:14 gavanwanggw 阅读(127) 评论(0) 推荐(0) 编辑

hdu1285 拓扑排序+优先队列

摘要: 原题地址 这算是我个人AC的第一个拓扑排序题目吧。 题目解读 给出几组比赛的胜负情况。推断最后的排名。依据题意这就是一个明显的拓扑排序问题了。 注意 假设由于可能的排名有多种情况,这时要保证编号小的在前。题目输入的数据可能有反复边 拓扑排序 首先统计每一个结点的入度。将度为0的结点编号放入队列(此题 阅读全文

posted @ 2017-05-19 08:40 gavanwanggw 阅读(379) 评论(0) 推荐(0) 编辑