码迷,mamicode.com
首页 >  
搜索关键字:convert    ( 4765个结果
Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Question:Given an integer, convert it to a r...
分类:其他好文   时间:2014-12-01 11:25:38    阅读次数:191
iOS - 零碎
---恢复内容开始---1、模拟器目录:ProjectNameApk、documents、library(cache、preference、cookies)、temp2、Edit-Refactor(重构)-Convert to Objective-C ARC...3、Product-Profile(...
分类:移动开发   时间:2014-11-30 22:56:14    阅读次数:284
SQL SERVER时间格式化
1 declare @i int=1 2 begin 3 while(@i<=200) 4 begin 5 BEGIN try 6 print convert(varchar(3),@i)+' '+conver...
分类:数据库   时间:2014-11-30 22:53:13    阅读次数:164
装箱、拆箱
2、装箱、拆箱装箱:就是将值类型转换为引用类型。拆箱:将引用类型转换为值类型。int n=10;object o=n;//装箱int nn=(int)o;//拆箱装箱效率会降低很多。//这个地方没有任何类型的装箱或拆箱string str="123";int n=Convert.ToInt32(st...
分类:其他好文   时间:2014-11-30 15:28:34    阅读次数:167
Sql Server系列:数据类型转换函数
T-SQL提供了两个显示转换的函数:CAST函数和CONVERT函数。1. CAST函数 语法:CAST ( expression AS data_type [ ( length ) ] ) 示例:SELECT CAST(100 AS CHAR(3))2. CONVERT函数 语法:CON...
分类:数据库   时间:2014-11-30 13:42:21    阅读次数:203
leetcode Convert Sorted List to Binary Search Tree
把一个有序链表构成成平衡二叉树。和上一题有一点像。思路一:将有序链表存在一个数组里。然后根据每次访问中间节点当做根节点递归左右子树节点即可。代码如下:/** * Definition for singly-linked list. * struct ListNode { * int val;...
分类:其他好文   时间:2014-11-29 22:53:04    阅读次数:271
leetcode Convert Sorted Array to Binary Search Tree
利用更有序数组,构造平衡二叉树。思路,递归,每次中间节点为根节点,然后递归获得左右子树。/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *...
分类:其他好文   时间:2014-11-29 22:52:43    阅读次数:239
【LeetCode】Convert Sorted Array to Binary Search Tree
Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.这题思路参照Conve...
分类:其他好文   时间:2014-11-29 20:07:35    阅读次数:178
Leetcode-Roman to Integer
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Solution: 1 public class Solution { 2 pu...
分类:其他好文   时间:2014-11-29 11:36:32    阅读次数:148
Git for windows 中文乱码解决方案
1.使用 git add 命令添加文件名含中文字符的文件时乱码类似:\316\304\261\276\316\304\265\265.txt解决方案:编辑C:\Git\etc\inputrc文件中对应的行,查找以下2行,并修改其值,原先:set output-meta offset convert-...
分类:Windows程序   时间:2014-11-28 15:54:36    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!