Category: c / c++
oj.leetcode.com is an online judge website that provides quick exercise to programming tasks. This is helpful before you go for an interview for a software company. The tasks seem easier …
April 6, 2013
algorithms, assembly language, c / c++, code, compiler, implementation, interpreter / compiler, math, object pascal, optimization, programming languages, tricks
In mathematics, the absolute function is defined as: This function is simple, and quite in popular usages. The absolute value is considered as one of the fundamental operations in …
Timus online judge is my favorite. There are many compilers that are on windows platform, for example, Visual Studio. Does the judge accept program that embeds inline assembly ? …
Return in Try-Finally for Python What do you think the following will return in Python? #!/usr/bin/env python # https://helloacm.com def test(): try: return True finally: return False print test() …
The fork() is one of the important methods that allows multiprocess/multitasking in Linux operating system. The following C code can be compiled in Linux. #include <unistd.h> int main() { …