Showing posts with label OODesign. Show all posts
Showing posts with label OODesign. Show all posts
Wednesday, November 9, 2016
Design a Tic Tac Toe Game
Write me a function for the game of tic-tac-toe in C
Useful Links:
http://www.codercaste.com/2011/01/26/how-to-code-a-tic-tac-toe-game-in-c-including-artificial-intelligence-opponent/
http://stackoverflow.com/questions/6572194/review-my-design-tic-tac-toe-game-using-oo-methodology
Useful Links:
http://www.codercaste.com/2011/01/26/how-to-code-a-tic-tac-toe-game-in-c-including-artificial-intelligence-opponent/
http://stackoverflow.com/questions/6572194/review-my-design-tic-tac-toe-game-using-oo-methodology
Efficient data structure for storing and calculating the total resistance
Given a Circuit (with resistors), we need to calculate the total resistance. Input will be like AB-5ohm, BC-6ohm, BC-10ohm, BC-20 ohm, CD-5 ohm. BC has been repeated twice implying they are in series. "Write a program by implementing efficient data structure for storing and calculating the total resistance
Sunday, November 6, 2016
Design a Chess Game
Object oriented design for chess game
Object Oriented design represents the real world objects in code.
https://xmruibi.gitbooks.io/interview-preparation-notes/content/OOD/DesignExamples/ChessGame.html
http://massivetechinterview.blogspot.in/2015/07/design-chess-game-using-oo-principles.html
Object Oriented design represents the real world objects in code.
https://xmruibi.gitbooks.io/interview-preparation-notes/content/OOD/DesignExamples/ChessGame.html
http://massivetechinterview.blogspot.in/2015/07/design-chess-game-using-oo-principles.html
Tuesday, September 13, 2016
Design a Server to keep track of shares and clients
Design an object oriented design system for an server that keeps track of shares and clients can ask the server to get the most up to date information about value of the shares.
Tuesday, July 19, 2016
Saturday, June 25, 2016
Design an online multiplayer game
Design an online multiplayer game
Design a Payment Gateway
Design a Payment Gateway
Wednesday, June 22, 2016
Design a Task scheduler
Given the interface below, implement a task scheduler.
interface Task {
void Run();
Set<Task> GetDependencies();
}
Additionally, the task scheduler should follow two rules.
1. Each task may only be executed once.
2. The dependencies of a task should be executed before the task itself.
http://shirleyisnotageek.blogspot.in/2015/03/task-scheduler.html
Tuesday, June 21, 2016
Design an online Teaching System
In an online teaching system,there are n number of teachers and each one teaches only one subject to any number of students.
And a student can join to any number of teachers to learn those subjects.
And each student can give one preference throuch which he can get updates about the subject or class timings etc.
Those preferences can be through SMS or twitter/facebook or email..etc.
Design above system and draw the diagram for above.
And a student can join to any number of teachers to learn those subjects.
And each student can give one preference throuch which he can get updates about the subject or class timings etc.
Those preferences can be through SMS or twitter/facebook or email..etc.
Design above system and draw the diagram for above.
Monday, June 20, 2016
Saturday, June 18, 2016
Design a Library System
Object oriented design for a library to borrow and renew books
Design a musical jukebox using OO principles [CCIB]
Solution:
Cracking the Coding Interview: Page 321 - 6th Edition
http://massivetechinterview.blogspot.in/2015/07/design-musical-jukebox-using-oo.html
Cracking the Coding Interview: Page 321 - 6th Edition
http://massivetechinterview.blogspot.in/2015/07/design-musical-jukebox-using-oo.html
Design a cloud based file storage system like OneDrive
Design a cloud based file storage system like OneDrive
Dictionary data structure
How to preprocess dictionary so that below operations are best supported
a) Search in dictionary
b) given a string find all valid anagrams in a dictionary
c) typing prefix of a valid string suggests valid words
http://www.geeksforgeeks.org/data-structure-dictionary-spell-checker/
http://stackoverflow.com/questions/10017808/best-data-structure-for-implementing-a-dictionary
a) Search in dictionary
b) given a string find all valid anagrams in a dictionary
c) typing prefix of a valid string suggests valid words
http://www.geeksforgeeks.org/data-structure-dictionary-spell-checker/
http://stackoverflow.com/questions/10017808/best-data-structure-for-implementing-a-dictionary
Subscribe to:
Posts (Atom)