行动
在了实践之前,希望大家看一下上面的学习资源,了解一下基本操作.
数据连接初始账号密码
账号:admin
密码:admin
首先我们建立一个文件:mongodb.php,设置需要连接账号密码,连接数据库
php
/**
* Mongodb Test
*
* Tools:
* Zend Studio 8.x
* Eclipse Plug :Toggle Va...
分类:
数据库 时间:
2014-05-15 14:49:56
阅读次数:
442
Given an array of integers, every element appears twice except for one. Find that single one....
分类:
其他好文 时间:
2014-05-15 07:20:39
阅读次数:
264
题意:从底往上按层遍历二叉树
思路:
思路和Binary Tree Level Order Traveral 一样,
即从上往下按层遍历二叉树,将每一层的节点存放到该层对应的数组中
最后将得到的数组倒转一下就可以了
按层遍历二叉树可用bfs,也可用dfs,但都要记录节点所在的层
复杂度:时间O(n), 空间O(n)...
分类:
其他好文 时间:
2014-05-15 06:32:14
阅读次数:
278
CentOS 6.3(Linux version 2.6.32-279.el6.x86_64)
gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)
本次配置
Nginx 1.5.8
Apache 2.4.7
php 5.3.26
FASTCGI...
分类:
编程语言 时间:
2014-05-15 05:52:51
阅读次数:
421
configure: error: mysql configure failed. Please check config.log for more information....
分类:
数据库 时间:
2014-05-15 05:15:02
阅读次数:
318
三个界面来学习$_SESSION的使用
第一个界面:
对应的代码:
我的商品列表
三国演义
水浒传
红楼梦
鲁迅全集
西游记
查看购物车
第二个界面:
对应代码:
<?php
echo "购买商品成功";
...
分类:
其他好文 时间:
2014-05-15 05:08:43
阅读次数:
376
leetCode-002 Median of Two Sorted Arrays
【题目】
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
【题意】
有两个有序的数组,找出这两数组整合后的中位数,要求时间复杂度O(nlogn)...
分类:
其他好文 时间:
2014-05-15 04:42:05
阅读次数:
274
在php开发中遇到两个问题
(1)Cannot send session
cache limiter
解决方式 找到 php.ini 修改php.ini中的 session.auto_start = 0 为 session.auto_start
= 1
(2)Cannot modify header information
解决方式 找...
分类:
Web程序 时间:
2014-05-14 14:28:55
阅读次数:
396