Tag: acm
The problem is from Timus Online Judge: . The problem asks you to print the square root in reverse order. Pay attention to the input size, which is no …
Remember a couple days ago, we discussed the O(n) and O(n^2) solutions to Single Number ? Question: Given an array of integers, every element appears three times except for one. Find …
November 24, 2013
6502, 8 bit, c / c++, code, compiler, implementation, interpreter / compiler, Nintendo Entertainment System, programming languages, windows
In the last tutorial, I have shown you how to create a ‘Hello World’ program for 6502 CPU (it works perfectly in NES emulator). Now, in this tutorial, I …
A Stack is a data structure that satisfies Last-In-First-Out. It can be considered as a pile of plates where you always take the top plate (you put on last). …
Question: Given an integer (maximum 100), compute the number of distinct ways to split the number using non-negative integer numbers. For example, given 5, there are 7 ways to …