文章分类 -  C#

347. 前 K 个高频元素 C#
摘要:原文地址:https://www.361shipin.com/blog/1513951384511184896 思路: 使用字典Dictionary<int, int>存储每个数出现的次数,并对次数进行排序。有两种方法; 1.将Dictionary转为List,实现Sort的CompareTo方法; 阅读全文

posted @ 2022-09-07 16:01 ZhYQ_note 阅读(21) 评论(0) 推荐(0) 编辑

Convert a Dictionary to a List of KeyValuePair in C#
摘要:原文地址:https://www.techiedelight.com/convert-a-dictionary-to-a-list-of-keyvaluepair-in-csharp/ 1. Using Dictionary<TKey,TValue>.ToList() Method A simple 阅读全文

posted @ 2022-09-07 15:34 ZhYQ_note 阅读(29) 评论(0) 推荐(0) 编辑

Cannot implicitly convert type 'System.Collections.Generic.List<System.Collections.Generic.List<int>>' to 'System.Collections.Generic.IList<System.Collections.Generic.IList<int>>'
摘要:原文地址:c# - Unable to convert List<List<int>> to return type IList<IList<int>> - Stack Overflow 12 For level order traversal why does this exception occ 阅读全文

posted @ 2022-08-18 11:31 ZhYQ_note 阅读(396) 评论(0) 推荐(0) 编辑

Create a List of a given size in C#
摘要:原文地址:Create a List of a given size in C# | Techie Delight This post will discuss how to create a List of a given size in C#. 1. Using List<T> construc 阅读全文

posted @ 2022-08-01 14:18 ZhYQ_note 阅读(29) 评论(0) 推荐(0) 编辑

Sort a Dictionary by value in C#
摘要:原文地址:Sort a Dictionary by value in C# This post will discuss how to sort a dictionary by value in C#. 1. Using OrderBy() Method The idea is to sort th 阅读全文

posted @ 2022-07-26 15:53 ZhYQ_note 阅读(24) 评论(0) 推荐(0) 编辑

C#(99):单问号和双问号的用法整理
摘要:原文地址:https://www.cnblogs.com/springsnow/p/10455585.html C#(99):单问号和双问号的用法整理 目录 一、可空类型修饰符(?) 二、三元运算符(?:) 三、null合并运算符(??) 四、NULL条件运算符(?.) 五、?[]"运算符: 一、可 阅读全文

posted @ 2021-10-25 14:38 ZhYQ_note 阅读(189) 评论(0) 推荐(0) 编辑

i&1的用法
摘要:原文:https://blog.csdn.net/weixin_38195506/article/details/70953003 if(i&1==1) 表示 如果是 奇数 则。。。 i&1 – 按位与运算,取 2进制整数 i 的最低位,如果最低位是1 则得1,如果最低位是0 则得0。 奇数 i 的 阅读全文

posted @ 2020-08-28 14:11 ZhYQ_note 阅读(2609) 评论(0) 推荐(0) 编辑

C# 中的委托和事件
摘要:原文地址:http://www.cnblogs.com/JimmyZhang/archive/2007/09/23/903360.html C# 中的委托和事件 文中代码在VS2005下通过,由于VS2003(.Net Framework 1.1)不支持隐式的委托变量,所以如果在一个接受委托类型的位 阅读全文

posted @ 2016-09-07 13:34 ZhYQ_note 阅读(71) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示