码迷,mamicode.com
首页 >  
搜索关键字:ever    ( 3292个结果
190. Reverse Bits (Binary)
>>>表示无符号右移,左边空出的位以0填充>>=右移赋值>>>=无符号右移赋值<<= 左移赋值<<左移 ...
分类:其他好文   时间:2018-07-31 11:17:48    阅读次数:165
xml转换csv
/// /// xml文件转换为CSV /// /// xml格式文件 /// true - CSV转换成功 private static bool ToCSV(string fileName) { var xmlFilePath = @"e:\ceshi.... ...
分类:其他好文   时间:2018-07-30 23:31:41    阅读次数:209
Problem L Visual Cube
Problem L Visual Cube 题目: Problem L. Visual Cube http://acm.hdu.edu.cn/showproblem.php?pid=6330 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 5 ...
分类:其他好文   时间:2018-07-30 20:19:44    阅读次数:228
Python--常用的内置函数
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author:Huanglinsheng ''' Python 内置函数 https://www.runoob.com/python/python-built-in-functions.html ''' #... ...
分类:编程语言   时间:2018-07-30 16:36:27    阅读次数:210
【Leetcode】605. Can Place Flowers
Description Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent ...
分类:其他好文   时间:2018-07-30 13:32:10    阅读次数:161
as3 二进制、八进制、十进制、十六进制之间的相互转换
var a:int=1234;//十进制 trace("十进制转二进制",a.toString(2));//二进制 trace("十进制转八进制",a.toString(8));//八进制 trace("十进制转十六进制",a.toString(16));//十六进制 var b:String="1... ...
分类:其他好文   时间:2018-07-30 12:13:54    阅读次数:145
链表常见问题解析
找到链表的倒数第n个结点 方法1: 从链表的第一个结点开始,统计当前结点后面的结点个数。如果后面结点的个数小于n 1,那么算法结束并返回消息"链表中的结点个数不足"。如果数量大于n 1,则移动到下一个结点。重复该过程直至当前结点后面的结点个数等于n 1。 [时间复杂度O(n^2),空间复杂度O(1) ...
分类:其他好文   时间:2018-07-30 00:30:35    阅读次数:262
[cpyhon源代码]dict对象原理学习
Cpython 2.7 分支中,dict 对象的源代码 lookdict 搜索算法 两个问题无法理解: 1.1 dict 对象搜索算法中,进入【2】处已经说明了 ep->me_key!=key 这个条件成立,但是 【2】那里为啥要再次比较一次 me_key 和 key 呢? 百思不得其解!!! 原因 ...
分类:其他好文   时间:2018-07-29 22:19:10    阅读次数:136
django restframework版本和认证
封装request 请求分发之前先执行initial方法,其中的参数request是封装后的request对象 在initial(request)的外层有异常捕获,即使认证,权限,节流raise错误也无关紧要。这些组件就是通过raise错误来表示认证失败等 版本 基于url的get传参方式 如:/u ...
分类:其他好文   时间:2018-07-29 17:58:47    阅读次数:140
832. Flipping an Image
题目描述: Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally m ...
分类:其他好文   时间:2018-07-29 11:49:14    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!