码迷,mamicode.com
首页 >  
搜索关键字:reverse    ( 5099个结果
HNU 13411 Reverse a Road II(最大流+BFS)经典
Reverse a Road II Time Limit: 10000ms, Special Time Limit:25000ms, Memory Limit:65536KB Total submit users: 10, Accepted users: 6 Problem 13411 : No special judgement Problem descr...
分类:其他好文   时间:2015-08-16 21:30:56    阅读次数:149
Palindrome Number && Reverse Number
Problem I:判断数字是不是回文字符串形式Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative int...
分类:其他好文   时间:2015-08-16 13:47:58    阅读次数:151
leetcode - Reverse Words in a String
leetcode -Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky ...
分类:其他好文   时间:2015-08-16 12:00:23    阅读次数:99
实现reverse字符串
不分配额外空间,直接就地反转字符串,另外还要注意null字符。 void reverse(char *str) { char *end = str; char tmp; if (str) { while (*end)//找出字符串末尾 { ++end; } --end;//回退一个字符,最后一个为null的字符 /*从字符串首尾开始交换两个字符,直到两个指针在中间碰头*...
分类:其他好文   时间:2015-08-15 23:10:37    阅读次数:180
CC150-Array and string 1.2
problem:Implement a function void reverse(char *str) in C and C++ which reverse a null-terminated string.The solution:1. use another pointer end point...
分类:其他好文   时间:2015-08-15 06:42:04    阅读次数:147
利用函数调用实现数组初始化、逆置和清零
4.创建一个数组,实现函数init()初始化数组、实现empty()清空数组、实现reverse()函数完成数组元素的逆置。要求:自己设计函数的参数,返回值。#include<stdio.h>//数组变化voidinit(intarr[],intlen)//数组初始化{ inti=0; intnum=0; printf("初始化数组。\n"); f..
分类:编程语言   时间:2015-08-14 19:26:43    阅读次数:229
算法竞赛入门经典(一)
例1-2 三位数反转#includeint reverse_3(){ int n; //输入三位数 scanf("%d",&n); printf("%d%d%d\n", n%10 , n/10%10 , n/10...
分类:编程语言   时间:2015-08-14 18:37:33    阅读次数:143
leetcode: Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2015-08-14 11:45:41    阅读次数:88
反向代理服务器的工作原理 (转)
最近有打算研读nginx源代码,看到网上介绍nginx可以作为一个反向代理服务器完成负载均衡。所以搜罗了一些关于反向代理服务器的内容,整理综合。一 概述反向代理(Reverse Proxy)方式是指以代理服务器来接受Internet上的连接请求,然后将请求转发给内部网络上的服务器;并将从服务器上得到...
分类:其他好文   时间:2015-08-12 18:25:12    阅读次数:116
[LeetCode] Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:其他好文   时间:2015-08-12 12:59:19    阅读次数:124
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!