摘要:
varchar(n)类型中,n最大到8000。弱存储英文,则占一个字节,存储汉字,则占两个字节。 nvarchar(n)类型中,n最大到4000。无论存储英文还是汉字,都占用两个字节。 如果是存储汉字的字段,使用nvarchar比较合适,若使用varchar存储汉字,可能在MySQL中出现???的乱 阅读全文
阅读排行榜
Bsee64算法,编码实现
2017-09-11 11:02 by FTD_W, 530 阅读, 收藏,
摘要:
代码是阿帕奇开源代码,C语言实现。使用位运算,可以更快地实现算法,下面会详细介绍如何使用位运算进行编码。 因为有些网络传送渠道并不支持所有的字节,例如传统的邮件只支持可见字符的传送,像ASCII码的控制字符就 不能通过邮件传送。这样用途就受到了很大的限制,比如图片二进制流的每个字节不可能全部是可见字 阅读全文
318_Maximum Product of Word Lengths
2016-01-12 16:12 by FTD_W, 501 阅读, 收藏,
摘要:
Given a string arraywords, find the maximum value oflength(word[i]) * length(word[j])where the two words do not share common letters. You may assume t... 阅读全文
260_Single Number III
2015-12-17 09:42 by FTD_W, 465 阅读, 收藏,
摘要:
Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements t... 阅读全文
319_Bulb Switcher
2016-01-04 13:24 by FTD_W, 418 阅读, 收藏,
摘要:
There arenbulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every th... 阅读全文
浙公网安备 33010602011771号