随笔分类 -  # 常用算法

摘要:static void Main(string[] args) { //字典排序 var dic = new SortedDictionary<string, string>(); dic.Add("1000", "1000"); dic.Add("100000", "100000"); dic.A 阅读全文
posted @ 2021-05-12 10:26 蓝创精英团队 阅读(6) 评论(0) 推荐(0)
摘要:这是我的算法脑图。 阅读全文
posted @ 2021-03-13 09:58 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:这是我自己总结的脑图。 阅读全文
posted @ 2021-03-13 09:57 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:/// <summary> /// 获取一个key的Md5 Hash值 /// </summary> /// <param name="key"></param> /// <returns></returns> public int HashCode(string key) { int HashCo 阅读全文
posted @ 2020-03-09 15:36 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:--方法1:循环截取法 CREATE FUNCTION fun_split( @s varchar(8000), --待分拆的字符串 @split varchar(10) --数据分隔符 )RETURNS @re TABLE(col varchar(100)) AS BEGIN DECLARE @s 阅读全文
posted @ 2019-01-04 13:31 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:一、DesignRules(设计规则) 【01】、Abstract types should not have constructors(抽象类型不应具有构造函数) 【02】、Declare types in namespaces(在命名空间中声明类型) 【03】、Define accessors 阅读全文
posted @ 2019-01-02 10:18 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:var g_sUA = navigator.userAgent.toLowerCase(); var android = g_sUA.match(/(android)\s+([\d.]+)/); var ios = g_sUA.match(/(ipad|iphone|ipod).*os\s([\d_ 阅读全文
posted @ 2018-12-28 08:56 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:<system.web> <compilation debug="true" targetFramework="4.0" /> <webServices> <protocols> <add name= "HttpPost"/> <add name= "HttpGet"/> </protocols> 阅读全文
posted @ 2018-12-28 08:51 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:/// <summary> /// 间隔指定的时间 /// </summary> public class Times { /// <summary> /// 内置一个时间 /// </summary> private DateTime Time = DateTime.Now; /// <summa 阅读全文
posted @ 2018-12-28 08:44 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:Convert.ToInt32(hex, 16); 阅读全文
posted @ 2018-12-28 08:44 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:/// <summary> /// CRC校验 /// </summary> /// <param name="buf"></param> /// <param name="nEnd"></param> /// <returns></returns> private static UInt16 Ge 阅读全文
posted @ 2018-12-27 09:56 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:string abc = "我是abced"; int a = abc.Length; byte[] b = Encoding.ASCII.GetBytes(abc); foreach (var item in b) { if (item == 83) { } } 阅读全文
posted @ 2018-12-27 09:51 蓝创精英团队 阅读(0) 评论(0) 推荐(0)
摘要:其中java的实现方式 public int hashCode() { int h = hash; if (h == 0 && value.length > 0) { char val[] = value; for (int i = 0; i < value.length; i++) { h = 3 阅读全文
posted @ 2018-12-24 10:13 蓝创精英团队 阅读(0) 评论(0) 推荐(0)