NeilZ2023 Install Machine Learning Packages in Anaconda on Windows 10Python 3.11/Jupyter Notebook/pandas/numpy/sci-kit learn/xgboost/lightgbmDec 10, 2023Dec 10, 2023
NeilZWhy `s.size() < n` can be `true` when `n < 0` for a nonempty string `s` in C++?Because expressions that mix signed and unsigned data can have surprising results when the signed value is negative. It is essential to…May 2, 2023May 2, 2023
NeilZWhy one shouldn’t use a `const unordered_map&` as argument ina function if `operator[]` is used?In the following function foo , if const unordered_map<int, vector<int>>& myMap is passed in as an argument, there’ll be compile error due…Apr 30, 2023Apr 30, 2023
NeilZHow to use “pair<int,int>” as key in C++ “unordered_map”?If you want to use pair<int,int> as key in the C++ unordered_map, such as unordered_map<pair<int,int>, string> myMap; It won’t work, as the…Apr 29, 20231Apr 29, 20231
NeilZHow to Change C++ std::priority_queue ordering from the default of max-heap to min-heap?How to Change std::priority_queue to min-heap?Apr 29, 2023Apr 29, 2023
NeilZWhen to use single quote and double quote in C++?Single quote is used for a character literal, which has a type of `char`.Apr 28, 2023Apr 28, 2023
NeilZWhat are the differences between iterable, iterator?Directly from Python Documention.Apr 21, 2023Apr 21, 2023
NeilZCan we use set/dict/tuple comprehension in addition to list comprehension?Yes.Apr 20, 2023Apr 20, 2023
NeilZWhen do we want to use Python Generator?One could use generator to read a large size of data in a streaming style, e.g. line by line.Apr 19, 2023Apr 19, 2023