码迷,mamicode.com
首页 >  
搜索关键字:example    ( 17798个结果
leetcode -day21 Longest Substring Without Repeating Characters
?? 1、Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter...
分类:其他好文   时间:2014-05-26 05:03:19    阅读次数:172
CSS经验分享:如何书写可维护的CSS代码01
转自:http://www.cnblogs.com/hxling/archive/2013/02/21/2920520.html一、在样式表开头添加一个注释块,用以描述这个样式表的创建日期、创建者、标记等备注信息。Example Source Code:/*---------------------...
分类:Web程序   时间:2014-05-26 02:14:12    阅读次数:273
编译boost asio http/server 方法
这段时间学习boost 的asio 编程,想编译asio自带的http/server的程序,无奈在网上根本找不到方法,只能自己摸索学习。 登陆boost asio 的example 目录,(我 boost 安装在/opt目录下) cd /opt/boost_1_55_0/libs/asio/exam...
分类:其他好文   时间:2014-05-26 00:39:54    阅读次数:346
Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.思路:这道...
分类:其他好文   时间:2014-05-26 00:06:39    阅读次数:250
LeetCode: Rotate List [060]
【题目】 Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. 【题意】 给定一个链表L,和非负数K,要求把链表的后k个节点移到链表前 【思路】 先将指针指向指向倒数第K个节点,然后...
分类:其他好文   时间:2014-05-25 18:20:06    阅读次数:252
LeetCode: Insert Interval [056]
【题目】 Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their start times. Example 1: Given intervals [1,3],[6,9], insert and mer...
分类:其他好文   时间:2014-05-25 12:56:43    阅读次数:271
LeetCode: Spiral Matrix II [058]
【题目】 Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ] ] 【题意】 给定整数n, 将1,2,3...nxn个数按螺旋旋转的方式填入n...
分类:其他好文   时间:2014-05-25 07:08:17    阅读次数:235
android_常用UI控件_01_TextView2
显示图片和文字MainActivity.javapackagecom.example.android_textview_showqqface; importjava.lang.reflect.Field; importandroid.os.Bundle; importandroid.app.Activity; importandroid.graphics.Color; importandroid.graphics.drawable.Drawable; importandroid.text.H..
分类:移动开发   时间:2014-05-24 16:41:39    阅读次数:486
Light0J-1068 - Investigation
An integer is divisible by 3 if the sum of its digits is also divisible by 3. For example, 3702 is divisible by 3 and 12 (3+7+0+2) is also divisible by 3. This property also holds for the integer 9. ...
分类:其他好文   时间:2014-05-24 14:30:47    阅读次数:208
LeetCode——Palindrome Partition
Palindrome Partitioning   Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "...
分类:其他好文   时间:2014-05-24 14:29:45    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!