Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Thursday, January 26, 2012

[C++] Alphabet Soup (Facebook Hacker Cup 2012)

          Hello, Reader ^^! Back again with source code ^^! This time the source code is Alphabet Soup which is from Facebook Hacker Cup 2012. The source code is written in C++. This application can count how many HACKERCUP word can be made from H, A, C, K, E, R, U, and P letters which is obtained from input. I made this one when I competed in qualification round but didn't pass ( a small mistake, but fatal ). Oh well, rather I regret my time wasted making this code, I better posted it in here instead :). Okay, that's all I can say. Thank you for reading ^^!





Extra Credit:
- Problem case and example (in alphabet_soup.txt and alphabet_soup_example.txt) from Facebook Hacker Cup 2012 Qualification Round

Download/View Source Code:
- Dropbox
- Dropbox (Repository)
GitHub
- GitHub (Repository)






Monday, November 14, 2011

[C++] Auto-Sudoku Application

          Several days ago, I made an application called Auto-Sudoku for the assignment of Algorithm Strategy course. I used C++ for making the application. This Sudoku application is for solving the Sudoku input from a file. Brute Force algorithm must be used in that assignment to solve the Sudoku. It took around 2 days for me to make it. Not only that, there was some bug that need to be fixed. There reason why I posted the finished application is because rather not used for long time or never after finished, I chose to publish and share it with the world.

          Now, for the solution, I first take an input from the file, then scan whether the number in the slot can be changed. After that, I check per slot whether there is same number in the above, below, left, or right and whether the number in the slot break the 3x3 sudoku rules. After that, the printing is executed to display the solved sudoku.

          You can freely use this application and the source code. Be sure to include me in credit if used on your project. 

Screenshot (Solved Sudoku) :





Download :

Application Only
MediaFire
4shared
Ziddu

Source Code Only
MediaFire
4shared
Ziddu

Full
MediaFire
4shared
Ziddu