leetcode刷题全刷-Leetcode-cheatsheet:Leetcode备忘单

时间:2021-06-30 10:10:24
【文件属性】:
文件名称:leetcode刷题全刷-Leetcode-cheatsheet:Leetcode备忘单
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-30 10:10:24
系统开源 leetcode 刷题全刷备忘单 动机 这是为了帮助我在刷 leetcode 时重新认识一些语法和概念。 C++ 句法技巧 STL & 数组相关 List< int []> p1 = new ArrayList< int []>(); p1.add( new int []{a,b,c}); vector> C ( 2 *M, vector< int >( 2 *N, 0 )); 通过引用循环 STL 容器 std::unordered_map mymap; for ( auto & x: mymap) { std::cout << x. first << " : " << x. second << std::endl; } Python 重要的图书馆: 分裂(): 带括号的区别: print ( re . split ( r'(\(.*\))' , 'abc(>_<)' )) #['abc', '(>_<)', ''] print ( re . split ( r'\(.*\)' , 'abc(>_<)' )
【文件预览】:
Leetcode-cheatsheet-master
----readme.md(4KB)

网友评论