#include <stdio.h> #include <string.h> void unpaired_parenthesis(const char* str); int main(int argc, char* argv[]) { char input[(1<<10) + 1]; fgets(input, 1<<10, stdin)...
Which style do you prefer? if (some_condition) { // do something } or if (some_condition) { // do something } ?
Must I publish my source code if I used a library that is opensource under MPL2 license ?
maybe writing assembly is a better choice if you want more performance ? XD
Hey guys, are there any books suitable for assembly learning ?
complexity of std::unordered_map is O(1) ?
Don't you use vim/emacs ?
And my code should be compiled in cross platforms, need I enclose such a big guy even if I just want an argument parser?
Do you think programming on phone is comfortable? The keyboard on touchscreen is just awful when typing codes.
And are there any online-judge or similar websites that supports linux x86_64 assembly ??
int gcd(int a, int b) {return (0 == b) ? b : gcd(a, a%b);} sometimes the recursive version is somewhat shorter…
Can I pass a type to a function as an argument? e.g. template <typename T> T fun(T);
Can void* be casted into other types implicitly in cpp?
HOW to reduce compiling time when using template ?
wow, use copying & pasting as version contorller?
Complexity O(2n) ? Scan 2 times of input string?
some decades == two decades ?
Due to keyboard issues ?
a[i] is long long but scanf("%d") ?
do everything in one file ?