码迷,mamicode.com
首页 > 其他好文
【Leetcode】Coin Change
题目链接:https://leetcode.com/problems/coin-change/ 题目: You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that y...
分类:其他好文   时间:2016-05-30 15:00:29    阅读次数:107
Struts2入门详解
如何搭建Struts2项目导入相关架包编写web.xml,配置strus2过滤器 struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class...
分类:其他好文   时间:2016-05-30 14:57:12    阅读次数:289
Xcode使用xcconfig文件配置环境
与公司 QA 聊天,已不止一次被吐槽说移动端从开发环境转到生产环境时,还要靠修改代码来配置对应的环境参数。她认为,从 App 转测试之后,就不应该再修改代码,可以把所有的环境配置都整合到配置文件中,这样打不同环境下的安装包时,会自动选择对应的环境参数。这里说到的环境参数包括但不仅限于: webservice 地址,友盟 AppKey,极光推送 AppKey 和是否是生产环境标志等。...
分类:其他好文   时间:2016-05-30 14:58:57    阅读次数:151
剑指offer(三十八)之第一个只出现一次的字符位置
题目描述 在一个字符串(1 思路分析: 1.先把字符串存到字节数组当中      2.设置一个标志位,再用两个FOR循环 public class Solution { public int FirstNotRepeatingChar(String str) { if(str.length()==0){ return -1; ...
分类:其他好文   时间:2016-05-30 14:56:29    阅读次数:184
LeetCode:Basic Calculator II
Basic Calculator II Total Accepted: 23197 Total Submissions: 91345 Difficulty: Medium Implement a basic calculator to evaluate a simple expression string. The expression str...
分类:其他好文   时间:2016-05-30 14:56:41    阅读次数:141
OpenGL学习脚印: 模型变换(model transformation)
写在前面 前面为本节内容准备了向量和矩阵、线性变换等内容,本节开始学习OpenGL中的坐标处理。OpenGL中的坐标处理过程包括模型变换、视变换、投影变换、视口变换等内容,这个主题的内容有些多,因此分节学习,主题将分为5节内容来学习。本节主要学习模型变换。本节示例代码均可在我的github处下载。通过本节可以了解到 模型变换的作用 模型变换的类型和计算方法 坐标处理的全局过程(了解,另文详...
分类:其他好文   时间:2016-05-30 14:57:29    阅读次数:247
51NOD 1010 只包含因子2 3 5的数(二分 + 预处理)
传送门K的因子中只包含2 3 5。满足条件的前10个数是:2,3,4,5,6,8,9,10,12,15。 所有这样的K组成了一个序列S,现在给出一个数n,求S中 >= 给定数的最小的数。 例如:n = 13,S中 >= 13的最小的数是15,所以输出15。 Input 第1行:一个数T,表示后面用作输入测试的数的数量。(1 <= T <= 10000) 第2 - T + 1行:每行1个数N...
分类:其他好文   时间:2016-05-30 14:58:19    阅读次数:173
Tomcat性能优化之开启Nio非阻塞模式
了解一下,Tomcat支持三种接收请求的处理方式:BIO、NIO、APR 。 1:Bio方式,阻塞式I/O操作即使用的是传统Java I/O操作,Tomcat7以下版本默认情况下是以bio模式运行的,由于每个请求都要创建一个线程来处理,线程开销较大,不能处理高并发的场景,在三种模式中性能也最低 配置如下(tomcat安装目录下的/conf/server.xml): tomcat启动如...
分类:其他好文   时间:2016-05-30 14:57:25    阅读次数:195
ACM--田忌赛马--贪心--HDOJ 1052--Tian Ji -- The Horse Racing
HDOJ题目地址:传送门 Tian Ji -- The Horse Racing Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 25520    Accepted Submission(s): 7506 ...
分类:其他好文   时间:2016-05-30 14:55:33    阅读次数:532
TDLS应用与协议
实现TDLS特性协议基本功能过程。 协议过程简介 TDLS是基于IEEE 802.11z标准。TDLS自动链接配置主要通过几个过程来完成。 TDLS Discovery过程 TDLS Discovery 过程由一部STA设备通过AP或GO(群组拥有者) 向另外一部STA设备发送一个TDLS Discovery请求帧开始。如果目标设备也兼容TDLS,它将直接向该发送设备回复T...
分类:其他好文   时间:2016-05-30 14:54:50    阅读次数:562
第三章 网络体系结构
主要内容: 网络体系结构标准化组织开放互联模型七层协议;层间关系,各层主要功能,提供服务网络体系结构举例:TCP/IP 一、网络标准化组织 1、国际组织 International Standards Organization (ISO) International Telecommunications Union–Telecommunication Standard...
分类:其他好文   时间:2016-05-30 14:55:12    阅读次数:209
EMIPLIB库分析二
前一篇中详细分析了MIPComponentChain类。...
分类:其他好文   时间:2016-05-30 14:53:35    阅读次数:227
【Leetcode】Longest Palindromic Substring
题目链接:https://leetcode.com/problems/longest-palindromic-substring/ 题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and ...
分类:其他好文   时间:2016-05-30 14:53:40    阅读次数:150
【Leetcode】Next Permutation
题目链接:https://leetcode.com/problems/next-permutation/ 题目: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangeme...
分类:其他好文   时间:2016-05-30 14:54:15    阅读次数:151
【Leetcode】Gas Station
题目链接:https://leetcode.com/problems/gas-station/ 题目: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank an...
分类:其他好文   时间:2016-05-30 14:53:32    阅读次数:130
【Leetcode】Word Break
题目链接:https://leetcode.com/problems/word-break/ 题目: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary word...
分类:其他好文   时间:2016-05-30 14:54:22    阅读次数:121
【Leetcode】Count of Smaller Numbers After Self
题目链接:https://leetcode.com/problems/count-of-smaller-numbers-after-self/ 题目: You are given an integer array nums and you have to return a new counts array. The counts array has the property where...
分类:其他好文   时间:2016-05-30 14:51:42    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!