码迷,mamicode.com
首页 > 其他好文
Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:其他好文   时间:2014-10-26 15:30:30    阅读次数:159
深入剖析一条JMS消息(消息头)
一个Message对象有3个部分:消息头,消息属性,最后就是消息数据自身,它称为有效负载或消息体。消息能够携带重要的数据或仅仅用于系统中的事件通知。在大多数情况下,消息同时作为通知和携带数据的工具。下面我们...
分类:其他好文   时间:2014-10-26 14:27:43    阅读次数:183
poj 3411 Paid Roads(dfs)
Paid Roads Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 5481   Accepted: 1947 Description A network of m roads connects N cities (numbered from 1 to N). T...
分类:其他好文   时间:2014-10-26 14:25:28    阅读次数:112
leetcode - First Missing Positive
Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constant...
分类:其他好文   时间:2014-10-26 14:25:50    阅读次数:177
leetcode - Jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal i...
分类:其他好文   时间:2014-10-26 14:25:29    阅读次数:172
toastmasters(October 23, 2014)
October 23, 2014        19:00~21:00        Feishang Cafe Still vague listening, still little speaking. Nothing has been improved. Members' Speeches There were four members giving their wo...
分类:其他好文   时间:2014-10-26 14:23:31    阅读次数:201
同源策略——浏览器的安全卫士
对于软件开发者来说,理解同源策略,可以很好地解决了一个痛点, 不同域名下的资源读写 ! 我写了新文章《同源策略——浏览器的安全卫士》。古代的楚河汉界明确地规定了双方的活动界限,如果没有这些界限,天下必将大乱。同样,在我们的浏览器,也有着一些界限和策略,才让 Web 世界之所以能如此美好地呈现在我们面前。...
分类:其他好文   时间:2014-10-26 14:25:02    阅读次数:221
leetcode - N-Queens
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle. ...
分类:其他好文   时间:2014-10-26 14:23:18    阅读次数:164
YII MVC之用户注册和用户登录(五)
5 进行session和cookie分析 ,并在前后区分session和cookie; 记住登录状态 这样下次再登录网站的时候,就不用重复输入用户名和密码。 是浏览器的cookie把状态给记住了。 制作表单: ...
分类:其他好文   时间:2014-10-26 14:24:17    阅读次数:233
【LeetCode】Add Two Numbers 解题报告
【题目】 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it...
分类:其他好文   时间:2014-10-26 14:21:29    阅读次数:243
Mahout分步式程序开发 基于物品的协同过滤ItemCF
阅读导读: 1.简述用Mahout实现协同过滤ItemCF的步骤? 2.如何用API实现Hadoop的各种HDFS命令? 3.Kmeans.java类报错,暂时可以怎么处理? 1. Mahout开发环境介绍   在用Maven构建Mahout项目文章中,我们已经配置好了基于Maven的Mahout的开发环境,我们将继续完成Mahout的分步式的程序开发。   本文的...
分类:其他好文   时间:2014-10-26 14:23:16    阅读次数:297
[leetcode]Path Sum II
问题描述: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 /...
分类:其他好文   时间:2014-10-26 14:24:00    阅读次数:224
HDU 1004(AC代码)
1 #include 2 #include 3 char a[1000][16]; 4 int b[1000]={0}; 5 int main() 6 { 7 int n,i,j,k,max,loc; 8 while(scanf("%d",&n)!=EOF&&n!=0){ 9 ...
分类:其他好文   时间:2014-10-26 14:20:53    阅读次数:175
[Leetcode] Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:其他好文   时间:2014-10-26 14:22:44    阅读次数:183
针对不同的Cookie做页面缓存
有时我们需要为PC浏览器及移动浏览器生成不同的页面,为了提高性能,不能每次请求都去判断User-Agent,通常用一个 Cookie 标记一下客户端是否是移动客户端,这样只需要读取这个 Cookie 的值就知道这个请求是否是移动端。 这里主要通过 OutputCacheByCustom 来实现对不同...
分类:其他好文   时间:2014-10-26 14:22:13    阅读次数:174
Zigbee EndPoint Analytical
#define SAMPLEAPP_ENDPOINT 20 // Setup for the periodic message's destination address // Broadcast to everyone SampleApp_Periodic_DstAddr.addrMod...
分类:其他好文   时间:2014-10-26 14:19:29    阅读次数:192
HDU 1003(AC代码)
1 #include 2 int main(){ 3 int i,t,j,n,x; 4 int start,end,temp,max,sum; 5 scanf("%d",&t); 6 for(i=0;i=max){15 ...
分类:其他好文   时间:2014-10-26 14:20:18    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!