上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: #46 全排列 https://leetcode-cn.com/problems/permutations/submissions/ 给定一个 没有重复 数字的序列,返回其所有可能的全排列。 class Solution { public: vector<vector<int>> result; v 阅读全文
posted @ 2020-06-08 12:01 Fflyqaq 阅读(200) 评论(0) 推荐(0) 编辑
摘要: #96 不同的二叉搜索树 https://leetcode-cn.com/problems/unique-binary-search-trees/ 总数 = 分别以每一个节点做根节点的种数相加。 F(n) = S(1) + S(2) + ... + S(n)。 S(i) = F(i的左子树) * F 阅读全文
posted @ 2020-06-05 20:49 Fflyqaq 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #10 正则表达式匹配 https://leetcode-cn.com/problems/regular-expression-matching/ 本来想找用C#正则表达式做的题,而这道题是需要自己写正则。。。 下面那道是正则匹配问题 public static bool IsMatch(strin 阅读全文
posted @ 2020-06-05 19:36 Fflyqaq 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 介绍 实例 ^\s* 匹配开头所有的空白字符 \s*$ 匹配结尾所有空白字符 [+-]? 匹配+ - 字符,也可以没有 (\d+|(?=.\d)) 匹配小数点前面的整数 刷题 https://www.cnblogs.com/Fflyqaq/p/13051600.html 阅读全文
posted @ 2020-06-03 21:03 Fflyqaq 阅读(189) 评论(0) 推荐(0) 编辑
摘要: [Toc] 4个资源路径介绍 Application.datapath 1. 返回程序的数据文件所在的文件夹的路径(只读)。例如在Editor中就是Assets。 2. 此路径在PC上无论是Editor还是运行都很好用,但是在基本不用在手机上。 3. 相对路径,不同平台位置不同。 Applicati 阅读全文
posted @ 2020-05-19 11:10 Fflyqaq 阅读(609) 评论(0) 推荐(0) 编辑
摘要: [Toc] 1、C 迭代器 1.1、IEnumerable和IEnumerator C 中的迭代器封装在IEnumerable和IEnumerator和他们的泛型接口中。 IEnumerable :定义了一个可以获取IEnumerator的方法 GetEnumerator()。 IEnumerato 阅读全文
posted @ 2020-05-18 12:37 Fflyqaq 阅读(694) 评论(0) 推荐(0) 编辑
摘要: [Toc] const和readonly https://www.cnblogs.com/aehyok/p/3529079.html 静态常量:是指编译器在编译时候会对常量进行解析,并将常量的值替换成初始化的那个值。 动态常量的值则是在运行的那一刻才获得的,编译器编译期间将其标示为只读常量,而不用常 阅读全文
posted @ 2020-05-16 11:01 Fflyqaq 阅读(311) 评论(0) 推荐(0) 编辑
摘要: [Toc] 1、.NET是什么 .NET是微软搭建的开发者平台,主要包括: 1.支持(面向)该平台的编程语言(如C 、Visual Basic、C++/CLI、F 、IronPython、IronRuby...), 2.用于该平台下开发人员的技术框架体系(.NET Framework、.NET Co 阅读全文
posted @ 2020-05-14 10:43 Fflyqaq 阅读(1606) 评论(0) 推荐(0) 编辑
摘要: 剑指Offer-面试题15 二进制中1的个数 二进制中1的个数 https://leetcode-cn.com/problems/er-jin-zhi-zhong-1de-ge-shu-lcof/ 使用一个位运算的小技巧即可。 public int HammingWeight(uint n) { i 阅读全文
posted @ 2020-05-14 10:04 Fflyqaq 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 目录 剪绳子1 剪绳子2 剑指Offer-面试题14 剪绳子 剪绳子1 https://leetcode-cn.com/problems/jian-sheng-zi-lcof/ 给你一根长度为 n 的绳子,请把绳子剪成整数长度的 m 段(m、n都是整数,n>1并且m>1),每段绳子的长度记为 k[0 阅读全文
posted @ 2020-05-14 09:42 Fflyqaq 阅读(202) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页