码迷,mamicode.com
首页 >  
搜索关键字:reverse bits    ( 8842个结果
[leetcode]Add Two Numbers
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:其他好文   时间:2014-07-23 16:51:51    阅读次数:251
8位灰度图在LCD上显示
一、概述1、灰度 灰度使用黑色调表示物体,即用黑色为基准色,不同的饱和度的黑色来显示图像。每个灰度对象都具有从 0%(白色)到灰度条100%(黑色)的亮度值。 使用黑白或灰度扫描仪生成的图像通常以灰度显示。 像素值量化后用一个字节(8 bits)来表示。如把有黑-灰-白连续变化的灰度值量化为25.....
分类:其他好文   时间:2014-07-23 14:49:06    阅读次数:769
STL源码剖析 容器 stl_hashtable.h
hashtable --------------------------------------------------------------------------- 二叉搜索树具有对数平均时间的表现,它建立在输入数据有足够的随机性的假设 hashtable 有常数平均时间的表现,基于统计,不需依赖输入元素的随机性 hashtalbe 的简单实现: 所有元素都 16-bits 不带正负号的整数,范围 0~65535,配置一个 array,索引号码为 0~65535,初值全部为 0 。 每一个元素...
分类:其他好文   时间:2014-07-23 13:23:47    阅读次数:379
Evaluate Reverse Polish Notation
Valid operators are +, -, *, /. Each operand may be an integer or another expression. Some examples: ["2", "1", "+", "3", "*"] -> ((2 + 1) * 3) -> 9 [...
分类:其他好文   时间:2014-07-23 11:37:06    阅读次数:216
Reverse Words in a String
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Clarification: What consti...
分类:其他好文   时间:2014-07-22 23:41:47    阅读次数:380
leetcode reverse integer
public class Solution { public int reverse(int x) { int ret=0; while(x!=0) { int t=x%10; ret=ret*10+t; ...
分类:其他好文   时间:2014-07-22 23:25:57    阅读次数:213
LeetCode Evaluate Reverse Polish Notation
class Solution {public: int evalRPN(vector &tokens) { int len = tokens.size(); if (len stack; for (int i=0; i= '0' && p[0] 1...
分类:其他好文   时间:2014-07-22 22:45:14    阅读次数:184
添加nginx为系统服务(service nginx start/stop/restart)
1、在/etc/init.d/目录下编写脚本,名为nginx #!/bin/sh  #  # nginx - this script starts and stops the nginx daemon  #  # chkconfig:   - 85 15  # description: Nginx is an HTTP(S) server, HTTP(S) reverse \  ...
分类:其他好文   时间:2014-07-22 22:39:13    阅读次数:321
【leetcode刷题笔记】Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:其他好文   时间:2014-07-22 22:35:53    阅读次数:230
POJ 2993 Emag eht htiw Em Pleh 模拟
Emag eht htiw Em Pleh Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 2661   Accepted: 1778 Description This problem is a reverse case of the problem 2996....
分类:其他好文   时间:2014-07-22 14:34:04    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!