题目链接:串联字符串的最大长度 题目描述: 题解: class Solution { public: int maxLen = 0; void backTracking(vector<string>& arr, int index, vector<int>& letters) { int len = ...
分类:
其他好文 时间:
2021-06-19 19:33:37
阅读次数:
0
关于~运算的使用 “~”即“非”运算,在二进制里对数字的每一位进行取反 在实际表现上则是-num-1即~1=>-2 ~-1=>0 在运算时NaN被当作0来运算 根据这个特性可以在String.indexOf()的结果中直接判断有没有查找的字符 所以!!~string.indexOf("somethi ...
分类:
其他好文 时间:
2021-06-19 19:15:14
阅读次数:
0
1.实习笔试 妈蛋string转int绝了:不能直接拿“xxx”-'0',得一个字符一个字符转 题目是判断在不在一个子网 ip地址转32位二进制 再和子网掩码mask(转32位二进制) 做与运算 再转成10进制 与运算:直接&&不行 如何求两个数的最小公倍数: 1.1 输入m,n 通过判断变化使得大 ...
分类:
其他好文 时间:
2021-06-19 19:14:12
阅读次数:
0
package leetcode; public class demo_79 { //全局变量,如果找到就返回 int flag=0; public boolean exist(char[][] board, String word) { int[][] visited=new int[board. ...
分类:
其他好文 时间:
2021-06-19 19:08:36
阅读次数:
0
string类型 构造函数 public string(char[] value) public string(char[] value,int offset,int count) 拼接字符串: + or += 比较字符串 public static int Compare(string strA, ...
//遍历part表达式 void twb_xd_std::cycle_part_exp( tag_t part_tag, std::vector<string> &part_exp ) { try { int number_of_exps = 0;//表达式数量 tag_t * exps ; UF_ ...
分类:
其他好文 时间:
2021-06-19 19:03:00
阅读次数:
0
redis学习 五大数据类型,开发必会的技能 老师的博客 https://www.cnblogs.com/pyyu/p/9467279.html string,字符串类型 hash,哈希类型,如同python的dict Set,无序集合 Zset,有序集合 List,双向队列,向左插入数据,向右插入 ...
分类:
其他好文 时间:
2021-06-19 18:53:25
阅读次数:
0
BOOL IsFolderEmpty(string path) { string str = path + "\\*.*"; CFileFind ff; BOOL bFound; bFound = ff.FindFile(str.c_str()); while (bFound) { bFound = ...
分类:
编程语言 时间:
2021-06-19 18:41:36
阅读次数:
0
Vue.js 允许你自定义过滤器,可被用于一些常见的文本格式化。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, ini ...
分类:
Web程序 时间:
2021-06-18 20:08:22
阅读次数:
0
DI依赖注入 set方式注入【重点】 依赖注入:set注入 依赖:bean对象的创建依赖于容器 注入:bean对象中的所有属性,由容器来注入 【环境搭建】 1.真实测试对象 2.复杂类型 @Data public class Student { private String name; privat ...
分类:
其他好文 时间:
2021-06-18 19:53:42
阅读次数:
0