摘要: The following sulutions are from chatGPT and has been verified. # 1. To copy a Conda environment from one Linux machine to another, you can use the co 阅读全文
posted @ 2023-01-06 14:49 shendawei 阅读(128) 评论(0) 推荐(0)
摘要: Note In C, all function arguments are passed by value. (including arrays: This means that when an array is passed as an argument to a function, a copy 阅读全文
posted @ 2023-01-06 14:37 shendawei 阅读(69) 评论(0) 推荐(0)
摘要: https://www.geeksforgeeks.org/introduction-to-linked-list-data-structure-and-algorithm-tutorial/ Array vs. Linked List 阅读全文
posted @ 2023-01-04 14:25 shendawei 阅读(21) 评论(0) 推荐(0)
摘要: # kill all processes on any GPU fuser -k /dev/nvidia* # kill all processes on certain GPU fuser -k /dev/nvidia2 阅读全文
posted @ 2022-12-27 09:30 shendawei 阅读(56) 评论(0) 推荐(0)
摘要: 19.55 Algorithms and Data Structures Tutorial - Full Course for Beginners https://www.ytb*.com/watch?v=8hly31xKli0&t=334s 1. Algorithm 1.1 Introductio 阅读全文
posted @ 2022-12-26 21:01 shendawei 阅读(24) 评论(0) 推荐(0)
摘要: Big-O https://leetcode.com/explore/interview/card/leetcodes-interview-crash-course-data-structures-and-algorithms/715/introduction/4654/ O: order of m 阅读全文
posted @ 2022-12-26 11:45 shendawei 阅读(70) 评论(0) 推荐(0)
摘要: https://www.geeksforgeeks.org/scope-of-variables-in-c/ 阅读全文
posted @ 2022-12-23 10:57 shendawei 阅读(19) 评论(0) 推荐(0)
摘要: 1. do not need exception message try { // } catch (...) { // } 2. need exception message try { // } catch (const std::exception& e) // reference to th 阅读全文
posted @ 2022-12-22 18:18 shendawei 阅读(33) 评论(0) 推荐(0)
摘要: 1. initial // https://en.cppreference.com/w/c/language/array_initialization 2. get max or min element // array int a[6] = { 1, 45, 54, 71, 76, 12 }; a 阅读全文
posted @ 2022-12-22 14:39 shendawei 阅读(71) 评论(0) 推荐(0)
摘要: 1. get the unicode of a character // python code = ord(u"印") print(code, type(code)) """ Result: 21360 <class 'int'> """ 阅读全文
posted @ 2022-12-22 10:45 shendawei 阅读(16) 评论(0) 推荐(0)