摘要: 摘自:https://zh.wikipedia.org/wiki/算法 在数学和计算机科学/算学之中,算法/演算法/算则法(Algorithm)为一个计算的具体步骤,常用于计算、数据处理和自动推理。精确而言,算法是一个表示为有限长列表的有效方法。算法应包含清晰定义的指令用于计算函数。 算法中的指令描 阅读全文
posted @ 2017-03-05 14:26 Bita 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://www.codeproject.com/Tips/240428/Work-with-bitmap-faster-with-Csharp#_rating 作者:Vano Maisuradze 当你在C#中操作bitmaps时,你可以使用 GetPixel(x ,y) 和 SetPi 阅读全文
posted @ 2017-02-01 17:23 Bita 阅读(494) 评论(0) 推荐(0) 编辑
摘要: MVC模式(Model–view–controller)是软件工程中的一种软件架构模式,把软件系统分为三个基本部分:模型(Model)、视图(View)和控制器(Controller)。 MVC模式最早由Trygve Reenskaug在1978年提出,是施乐帕罗奥多研究中心(Xerox PARC) 阅读全文
posted @ 2016-12-10 19:39 Bita 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 新添加一个收藏,把网页地址改为以下js脚本: 当下载文件时,先点击一次书签栏(收藏栏)的绕过代码书签,再次点击“下载”就可以实现跳过百度云管家直接使用迅雷下载大文件了。 阅读全文
posted @ 2016-11-11 15:57 Bita 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 调用WMI 可以用 Win32_Processor 类里面的 AddressWidth 属性来表示系统的位宽,但 AddressWidth 的值受 CPU 和操作系统的双重影响。 具体的值如下面的表格所示: 用下面的代码得到AddressWidth的值(注意需添加引用System.Managemen 阅读全文
posted @ 2016-11-06 11:26 Bita 阅读(686) 评论(0) 推荐(0) 编辑
摘要: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 翻译 给两个数 a 和 b 阅读全文
posted @ 2016-11-05 10:13 Bita 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
posted @ 2016-11-05 09:42 Bita 阅读(123) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston 阅读全文
posted @ 2016-10-05 14:29 Bita 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes a string as input and returns the string reversed. 翻译:写一个函数,输入一个字符串,返回反转的字符串。 分析: 大水题,转为字符数组,然后直接用系统内置函数反转后再变为字符串,顺利AC。 没想 阅读全文
posted @ 2016-10-05 14:00 Bita 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except 阅读全文
posted @ 2016-10-04 16:44 Bita 阅读(148) 评论(0) 推荐(0) 编辑