码迷,mamicode.com
首页 >  
搜索关键字:one    ( 27922个结果
JavaScript Patterns 7.1 Singleton
The idea of the singleton pattern is to have only one instance of a specific class. This means that the second time you use the same class to create a...
分类:编程语言   时间:2014-07-24 05:01:38    阅读次数:422
[leetcode]Gray Code
Gray CodeThe gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the tot...
分类:其他好文   时间:2014-07-24 00:53:27    阅读次数:198
Method for finding shortest path to destination in traffic network using Dijkstra algorithm or Floyd-warshall algorithm
A method is presented for finding a shortest path from a starting place to a destination place in a traffic network including one or more turn restric...
分类:Web程序   时间:2014-07-24 00:50:17    阅读次数:422
UVa 10651 Pebble Solitaire(DP 记忆化搜索)
Pebble Solitaire   Pebble solitaire is an interesting game. This is a game where you are given a board with an arrangement of small cavities, initially all but one occupied by a pebble each. The...
分类:其他好文   时间:2014-07-23 22:38:37    阅读次数:344
POJ 1258:Agri-Net(最小生成树&&prim)
Agri-Net Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 38918   Accepted: 15751 Description Farmer John has been elected mayor of his town! One of h...
分类:Web程序   时间:2014-07-23 17:08:01    阅读次数:224
UVa 10051 Tower of Cubes(DP 最长序列)
Problem A: Tower of Cubes  In this problem you are given N colorful cubes each having a distinct weight. Each face of a cube is colored with one color. Your job is to build a tower using th...
分类:其他好文   时间:2014-07-23 17:07:51    阅读次数:251
【leetcode刷题笔记】Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.题解:最开始用了最naive的方法,每次在k个链表头中找出最小的元素,插入到新链表中。结果果断TLE了。分析...
分类:其他好文   时间:2014-07-23 16:56:31    阅读次数:227
LeetCode OJ平台上Maximum Subarray题目O(n)复杂度解决方式
原始题目例如以下,意为寻找数组和最大的子串,返回这个最大和就可以。Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, ...
分类:其他好文   时间:2014-07-23 15:45:59    阅读次数:246
【leetcode刷题笔记】Scramble String
Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation...
分类:其他好文   时间:2014-07-23 15:06:06    阅读次数:320
Hibernate基于注解的双向one-to-many映射关系的实现
在项目中用到了一对多的实体类关系映射,之前接触的都是基于配置文件的映射实现,但是公司的大部分都是基于注解的,因此自己参考之前的代码捣鼓了基于注解的一对多的映射关系实现。 背景: 一的一端:QingAoCenterInfo:青奥场所信息, 多的一端:QingAoPlaceInfo:青奥场馆信息, 其中一个青奥场所下可以包含多个青奥场馆 one端:QingAoCenterIn...
分类:系统相关   时间:2014-07-23 13:10:46    阅读次数:246
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!