码迷,mamicode.com
首页 > 其他好文
Problem Word Break
Problem Description:Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more diction...
分类:其他好文   时间:2014-07-07 16:02:11    阅读次数:219
Problem Palindrome Partitioning
Problem Description:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ...
分类:其他好文   时间:2014-07-07 16:02:55    阅读次数:259
Problem Valid Palindrome
Problem Description:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a...
分类:其他好文   时间:2014-07-07 16:03:32    阅读次数:168
Problem Single Number
Problem Description:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Solution: 1 public int singleNumber(int...
分类:其他好文   时间:2014-07-07 16:04:12    阅读次数:178
Problem Best Time to Buy and Sell Stock III
Problem Description:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit...
分类:其他好文   时间:2014-07-07 16:05:24    阅读次数:229
Bitmap和Drawable相互转换方法
很多开发者表示,不知道Android的Drawable和Bitmap之间如何相关转换。下面Android123给大家两种比较简单高效的方法。一、Bitmap转DrawableBitmap bm=xxx; //xxx根据你的情况获取BitmapDrawable bd=BitmapDrawable(bm...
分类:其他好文   时间:2014-07-07 16:06:03    阅读次数:183
Problem Linked List Cycle
Problem Description:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Solution: 1 public bo....
分类:其他好文   时间:2014-07-07 16:08:01    阅读次数:151
FlashBuilder启动时一闪而过
晚上的时候把项目目录直接剪切走了 早晨就打不开了去workspace看log .\workspace\.metadata\.log发现如下代码!MESSAGE Could not read metadata for '项目名字'.…………!ENTRY org.eclipse.core.jobs 2 ...
分类:其他好文   时间:2014-07-07 16:09:26    阅读次数:201
Problem Single Number II
Problem Description:Given an array of integers, every element appearsthreetimes except for one. Find that single one.Solution:1 Arrays.sort(A...
分类:其他好文   时间:2014-07-07 16:10:04    阅读次数:174
Topcoder SRM 626 DIV2 SumOfPower
本题就是求所有连续子数列的和开始拿到题目还以为求的时数列子集的和,认真看到题目才知道是连续子数列循环遍历即可 int findSum(vector array) { int sum = 0; for(int i = 0 ; i < array.size(); ++...
分类:其他好文   时间:2014-07-07 16:10:42    阅读次数:179
如何判断SharedPreferences 记录存在
private EditText et; private String ettext; SharedPreferences settings; Editor editor; //设置settings = getSharedPreferences("nick", 0); ...
分类:其他好文   时间:2014-07-07 16:11:16    阅读次数:267
Problem Clone Graph
Problem Description:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.Solution: 1 public UndirectedGraph...
分类:其他好文   时间:2014-07-07 16:11:57    阅读次数:192
敏捷开发全程实战(北京站 2014-7-26)
1.课程概述?敏捷过于理想,无法实施??项目团队没有凝聚力,除了项目经理其他成员似乎不太关注项目成败;?项目需求变来变去,客户喜欢你先做出来看看,一直无法形成书面的需求文档;?项目计划要么成为摆设,要么没有计划;?……本课程将会针对上述问题,为你分享各种最佳实践!项目管理中存在各式各样的问题,项目管...
分类:其他好文   时间:2014-07-07 16:13:17    阅读次数:239
C#接口的经典案例
C#接口(interface)实例子(简单而经典)2008/12/04 10:04using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace AppTest{ ...
分类:其他好文   时间:2014-07-07 16:12:33    阅读次数:174
破解之总结(一)
1、 汇编2、 脱壳1)5种常见的语言特征(也是判断是否到达OEP的一种方法)2)附加数据的处理3)自校验的处理 1) 如果是调用错误提示——F12堆栈调用法 2)如果是文件/数据损坏错误提示——2OD对比法(bp CreateFileA)4) BC++程序的手动查找IAT3、 破解1>一般破解目标...
分类:其他好文   时间:2014-07-07 16:13:57    阅读次数:248
畅通工程&&How Many Tables
http://acm.hdu.edu.cn/showproblem.php?pid=1232 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int n,m; 7 int bin[2005]; 8 in...
分类:其他好文   时间:2014-07-07 16:14:33    阅读次数:145
Design Model---Observer Model
昨天看了Head First设计模式这本书,这本书写得真不错,简单易懂。我是第一次接触设计模式,觉得这东西挺高端大气的,和别人侃的时候,我用啥XX设计模式,是不是觉得很屌的感觉?哈哈,开玩笑了,主要是学习前人的经验,这样让自己的代码设计更加规范。现在就记录一下我学到的第一个设计模式---Obse.....
分类:其他好文   时间:2014-07-07 16:16:24    阅读次数:276
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!