Inspirated

 
 

June 30, 2008

Programming Challenges: LCD Display

Filed under: Blog — admin @ 8:35 am

PC/UVa IDs: 110104/706, Popularity: A, Success rate: average, Level: 1

Two-dimensional vectors again, with an array of function pointers to construct the digits’ appearance.
(more…)

Tags: , , , , , , ,

Programming Challenges: The Trip

Filed under: Blog — admin @ 8:31 am

PC/UVa IDs: 110103/10137, Popularity: B, Success rate: average, Level: 1

I have more wrong submissions for this problem than any other one until now. The reason? I was oblivious to the fact that the default rules for type-conversion between double and long in C++ include floor()ing positive values and ceil()ing negative ones.
(more…)

Tags: , , , , ,

Programming Challenges: Minesweeper

Filed under: Blog — admin @ 8:12 am

PC/UVa IDs: 110102/10189, Popularity: A, Success rate: high, Level: 1

Hello two-dimensional vectors.
(more…)

Tags: , , , , ,

Programming Challenges: The 3n+1 problem

Filed under: Blog — admin @ 8:08 am

PC/UVa IDs: 110101/100, Popularity: A, Success rate: low, Level: 1

The Collatz problem. More of an introductory “hello world” for the algorithmic programming than a “challenge”. But still:
(more…)

Tags: , , ,

Programming Challenges

Filed under: Blog — admin @ 7:58 am

There are few better ways of spending your vacations than trying to solve a series of programming problems, especially when you’re trying to learn something new related to those problems.

And this is where Programming Challenges pops in the picture. It is a combination of book containing about one hundred selected problems from various international competitions of the past. There are two online judges for checking solutions, the book’s own website and another site called UVa Online Judge. I will be constantly keep posting code on my blog as I keep solving problems according to the book’s chronological order.

P.S. Since I wanted to practice STL, please bare with its bloated usage that you’re bound to find in my solutions.

Tags: , , , ,