Write a function to find the longest common prefix string amongst an array of strings. 1 class Solution { 2 public: 3 string longestCommonPrefix(v...
分类:
其他好文 时间:
2015-05-22 11:05:54
阅读次数:
131
这一题,简单的贪心就OK了。
下面是AC的代码:
#include
#include
#include
using namespace std;
class data
{
public:
int price, height;
};
int M, N;
data Date[1005];
int cmp(const data &a, const data &b)
{
re...
分类:
其他好文 时间:
2015-05-22 09:47:46
阅读次数:
124
/**
* 书本:《Thinking In Java》
* 功能:批量修改文件的名字
* 文件:Restaurant.java
* 时间:2015年5月9日09:20:13
* 作者:cutter_point
*/
package Lesson18IO;
import java.io.File;
public class ChangeName
{
public void isDirOrNot...
分类:
编程语言 时间:
2015-05-22 09:42:17
阅读次数:
113
/**********Demo.java************/
package N皇后问题;
public class Demo {
public static void main(String[] args) {
//n皇后问题
Queen_place qp = new Queen_place(4);
qp.trial(0);
System.out.println(...
分类:
其他好文 时间:
2015-05-22 09:42:12
阅读次数:
93
一.滑动界面:
第一次启动时除了启动动画外,可能还有着滑动功能介绍界面,现在记录一下这种界面的实现方式,接着上篇启动动画之后的效果附加上。
效果图:
界面:
public class SlideActivity extends Activity{
private ViewPager mViewPager;
private Ima...
分类:
移动开发 时间:
2015-05-22 09:41:59
阅读次数:
197
public class Solution { public int searchInsert(int[] nums, int target) { if(nums == null || nums.length == 0) { return 0; ...
分类:
其他好文 时间:
2015-05-22 09:32:24
阅读次数:
108
帝国备份王(Empirebak) \class\functions.php、\class\combakfun.php GETSHELL vul
分类:
Web程序 时间:
2015-05-22 09:20:47
阅读次数:
228
从前往后扫一遍, 相邻两个数之差大于零的话就加到结果。public class Solution { public int maxProfit(int[] prices) { if (prices == null || prices.length == 0) { ...
分类:
其他好文 时间:
2015-05-22 08:16:27
阅读次数:
105
public class Solution { public int maxProfit(int[] prices) { if(prices == null || prices.length == 0) { return 0; } ...
分类:
其他好文 时间:
2015-05-22 08:12:02
阅读次数:
148
discuz的微信登录是非常实用的功能亮点,但discuz的界面丑陋。
把discuz的微信登录的功能抽出来放在俺们网站上 ez-home.ca 。
主页跳转怎么解决呢?
看我的:
文件在:
/forum/source/plugin/wechat/response.class.php
函数在(大约 123行)
public static function redirect($type) {
self::_init();
global $_G;
$r01="http://cn.ez-ho...
分类:
微信 时间:
2015-05-22 07:07:24
阅读次数:
537