转自http://blog.csdn.net/delphiwcdj/article/details/6234383问题 :如何用程序确认当前系统的存储模式(大端还是小端)?写一个C函数,若处理器是Big-endian的,则返回0;若是Little-endian的,则返回1。情况1:利用数组类型#in...
分类:
其他好文 时间:
2014-07-22 22:45:33
阅读次数:
196
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.题解:开始想到的方法比较偷懒,直接遍历一遍数组,把每个ListNode对应的值放到...
分类:
其他好文 时间:
2014-07-22 22:45:13
阅读次数:
271
<?php $ltime=time()-86400*3; ?> {pc:get sql="select * FROM? v9_news where inputtime>$ltime order by id desc"? num="13" page="$page" return="data"} {loop $data $n $r} <li><a target="_blank" href=...
分类:
数据库 时间:
2014-07-22 00:15:35
阅读次数:
252
HDU 1171 Big Event in HDU (动规)
自己的多重背包转换01背包+0MS代码 (顺便求解释)。。。...
分类:
其他好文 时间:
2014-07-22 00:15:35
阅读次数:
242
1 查询单表select * from emp;2 查询单表,并按照deptno降序和job升序排列select * from emp order by deptno desc , job asc;3 查询最高工资和最低工资select max(sal),min(sal) from emp ;4查询...
分类:
数据库 时间:
2014-07-22 00:05:34
阅读次数:
251
java很给力逆序用了Colletcions.reverse();/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; ...
分类:
其他好文 时间:
2014-07-22 00:04:35
阅读次数:
154
Remove ElementGiven an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. ...
分类:
其他好文 时间:
2014-07-22 00:01:37
阅读次数:
221
1.Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
2.Given a singly linked list where elements are sorted in ascending order, convert it to a heig...
分类:
其他好文 时间:
2014-07-21 23:45:53
阅读次数:
264
Problem Description
The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the show itself. The show is hold in the Small hall...
分类:
其他好文 时间:
2014-07-21 22:36:27
阅读次数:
249
{pc:get sql="SELECT * FROM v9_news WHERE catid IN (61,62,63,64,65) order by id DESC" num="10"? return="data" } {loop $data $n $r} ?<LI><SPAN><a href="{$CATEGORYS[$r[catid]][url]}">[{$CATEGORYS...
分类:
其他好文 时间:
2014-07-21 14:08:55
阅读次数:
246