You can find many of them in this list. I'm adding more and more. If you like to contribute, feel free to create Pull requests.
- What and where are the stack and heap?
- Why is printing “B” dramatically slower than printing “#”?
- Why is my program slow when looping over exactly 8192 elements?
- Why are elementwise additions much faster in separate loops than in a combined loop?
- Why is it faster to process a sorted array than an unsorted array? 🌟🌟🌟🌟🌟
- (StackExchange)Which hashing algorithm is best for uniqueness and speed?
- (StackExchange)Which algorithms/data structures should I “recognize” and know by name? [closed]
Basic
- When do you use the “this” keyword?
- How do you set, clear, and toggle a single bit?
- What is the difference between
#include <filename>
and#include “filename”
? - In what cases do I use malloc vs new?
- How to allocate aligned memory only using the standard library?
- What is meant by Resource Acquisition is Initialization (RAII)?
- How do I iterate over the words of a string?
- Declaring variables inside loops, good practice or bad practice?
- What does the explicit keyword mean?
More Complex
- Can a local variable's memory be accessed outside its scope?
- Why should C++ programmers minimize use of 'new'?
- What does the thread_local mean in C++11?
- What is The Rule of Three?
- How do I check if a list is empty?
- Checking whether a variable is an integer or not
- Does Python have a ternary conditional operator?
- How do I check whether a file exists?
- What does the
yield
keyword do? - What is
__init__.py
for? - What does if
__name__ == “__main__”
: do? - How to merge two dictionaries in a single expression?
- Difference between append vs. extend list methods in Python
- What are metaclasses in Python?
- How to clone or copy a list?
- How is set() implemented?
- Python join: why is it string.join(list) instead of list.join(string)
- What is the !! (not not) operator in JavaScript?
- Which equals operator (== vs ===) should be used in JavaScript comparisons?
- How do I remove a particular element from an array in JavaScript?
- How do JavaScript closures work?
- How to check whether a string contains a substring in JavaScript?
- How to replace all occurrences of a string in JavaScript?
- Why does HTML think “chucknorris” is a color? 💪
- What is the best comment in source code you have ever encountered? [closed]
- Why does
++[[]][+[]]+[+[]]
return the string “10”? - Is it possible to disable the network in iOS Simulator? this answer
- What is the “-->” operator in C++?
- GitHub satanically messing with Markdown - changes 666 to DCLXVI