TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Spike
NA
1
0
Recursive algorithm - datatype
Mar 5 2010 11:24 AM
Hi,
I am stuck with the following recursive problem:
Create a rectangular space with a given height (n) and width (m) that's divided into random rectangular rooms.
Rooms are divided by walls, a wall has a width of 1, the space between two walls is d>=1.
For example:
+++++++++++++++++++++++++++++++++
+..+....+.............+.........+
+..+....+.............+.........+
+..+....+.............+.........+
+..+....+++++++++++++++++++++++++
+..+....+...+.....+........+....+
+++++++++...+.....+........+....+
+....+..+++++++++++++++++++++++++
+....+..+......+..+......+......+
+....+..+......+..+......+......+
+++++++++++++++++++++++++++++++++
I have already tried a two dimensional array but I got stuck, so I thought of using a double arraylist but I am not quite sure, could anyone give me a helping hand?
Thanks a lot!
Reply
Answers (
1
)
image processing - levelset method
Microsoft 70-291 Exam Content Management On Demand Practice Tests