India Broadband Forum


programming challenge...

This is a discussion on programming challenge... within the Entertainment and Recreation forums, part of the General offtopic discussions category; Here is something which will surely test your programming skills. You have one character array:- char[] charArray={'a','b','c','d','e','f','g','h','i','j' ,'k','l','m','n','o','p'}; and an ...

Go Back   India Broadband Forum > General > General offtopic discussions > Entertainment and Recreation

India Broadband Forum


Entertainment and Recreation Everything related to entertainment like movies, jokes and other funny stuff goes here

                      

Reply

 

LinkBack Thread Tools Display Modes
Old 08-05-09, 10:50 PM   #1
Gold Member
 
nandini's Avatar
 
Join Date: Jun 2009
Location: Pune
Posts: 487
Rep Power: 3
nandini is a jewel in the roughnandini is a jewel in the roughnandini is a jewel in the rough
Default programming challenge...

Here is something which will surely test your programming skills.

You have one character array:-
char[] charArray={'a','b','c','d','e','f','g','h','i','j' ,'k','l','m','n','o','p'};

and an emtpy 2 dimensional char array:-
char[][] char2DArray=new char[4][4];

Now the challenge is that you've to arrange char2DArray like this:

a c f j
b e i m
d h l o
g k n p


anybody up for game?
nandini is offline   Reply With Quote
Old 08-05-09, 10:52 PM   #2
kirankumargb
Guest
 
Posts: n/a
Default

I am in for it but have time only at week end
  Reply With Quote
Old 08-05-09, 10:53 PM   #3
Jedi knight
 
Luke Skywalker's Avatar
 
Join Date: Jul 2009
Location: IBF
Age: 21
Posts: 1,816
Rep Power: 5
Luke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the rough
Default

Simple use unicode of letter.
Luke Skywalker is offline   Reply With Quote
Old 08-05-09, 10:55 PM   #4
Gold Member
 
nandini's Avatar
 
Join Date: Jun 2009
Location: Pune
Posts: 487
Rep Power: 3
nandini is a jewel in the roughnandini is a jewel in the roughnandini is a jewel in the rough
Default

Quote:
Originally Posted by kirankumargb View Post
I am in for it but have time only at week end
sure!!!

I had got that problem yesterday. I got some leisure time today and managed to code for it successfully (don't know whether it's efficient ).

Solve it whenever you get time.
nandini is offline   Reply With Quote
Old 08-05-09, 10:56 PM   #5
kirankumargb
Guest
 
Posts: n/a
Default

sure, thanks for the time
  Reply With Quote
Old 08-05-09, 10:58 PM   #6
newprouser
Guest
 
Posts: n/a
Default

i guess there is a matrix solution for this
  Reply With Quote
Old 08-05-09, 10:59 PM   #7
Gold Member
 
nandini's Avatar
 
Join Date: Jun 2009
Location: Pune
Posts: 487
Rep Power: 3
nandini is a jewel in the roughnandini is a jewel in the roughnandini is a jewel in the rough
Default

Quote:
Originally Posted by Luke View Post
Simple use unicode of letter.
Look buddy I've not asked for any help, so no need to give any tips. We all know you're a genius. So can you please restrain yourself from enlightening us, atleast in this thread?
nandini is offline   Reply With Quote
Old 08-05-09, 11:00 PM   #8
Platinum Member
 
Join Date: Sep 2008
Posts: 3,140
Rep Power: 10
Punch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to all
Default

I'll try it too. should be able to remember how I did it 10 or 20 years back ;-)

-F
Punch Farce is offline   Reply With Quote
Old 08-05-09, 11:00 PM   #9
kirankumargb
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by newprouser View Post
i guess there is a matrix solution for this
good idea
  Reply With Quote
Old 08-05-09, 11:01 PM   #10
newprouser
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by farce View Post
I'll try it too. should be able to remember how I did it 10 or 20 years back ;-)

-F
you are a genius, u sure know it !!

Quote:
Originally Posted by kirankumargb View Post
good idea
maybe i spoke a lil too early .... anyways i'll try, not good with math
  Reply With Quote
Old 08-05-09, 11:04 PM   #11
Jedi knight
 
Luke Skywalker's Avatar
 
Join Date: Jul 2009
Location: IBF
Age: 21
Posts: 1,816
Rep Power: 5
Luke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the rough
Default

Quote:
Originally Posted by nandini View Post
Look buddy I've not asked for any help, so no need to give any tips. We all know you're a genius. So can you please restrain yourself from enlightening us, atleast in this thread?
I am not a genius.
I just gave a tip.
I think this thread is great & we can post new challenges.
@Farce I did this 3 years ago.
Luke Skywalker is offline   Reply With Quote
Old 08-05-09, 11:04 PM   #12
Gold Member
 
nandini's Avatar
 
Join Date: Jun 2009
Location: Pune
Posts: 487
Rep Power: 3
nandini is a jewel in the roughnandini is a jewel in the roughnandini is a jewel in the rough
Default

Quote:
Originally Posted by farce View Post
I'll try it too. should be able to remember how I did it 10 or 20 years back ;-)

-F
sure Farce!!! just give it a try.

Quote:
Originally Posted by newprouser View Post
maybe i spoke a lil too early .... anyways i'll try, not good with math
you don't need to be good in mathematics in order to solve it.
It'll be good for you NPU.
nandini is offline   Reply With Quote
Old 08-05-09, 11:10 PM   #13
Jedi knight
 
Luke Skywalker's Avatar
 
Join Date: Jul 2009
Location: IBF
Age: 21
Posts: 1,816
Rep Power: 5
Luke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the rough
Default

Quote:
Originally Posted by newprouser View Post
for Farce you are a genius, u sure know it !!
The one & the only here.
Luke Skywalker is offline   Reply With Quote
Old 08-05-09, 11:25 PM   #14
Platinum Member
 
Join Date: Sep 2008
Posts: 3,140
Rep Power: 10
Punch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to all
Default

Quote:
Originally Posted by newprouser View Post
you are a genius, u sure know it !!
Quote:
Originally Posted by Luke View Post
The one & the only here.
enna vachi kaamedy, keemedy pannaliye (in vadivelu voice )

(are you making comedy out of me)

-F
Punch Farce is offline   Reply With Quote
Old 08-05-09, 11:27 PM   #15
Jedi knight
 
Luke Skywalker's Avatar
 
Join Date: Jul 2009
Location: IBF
Age: 21
Posts: 1,816
Rep Power: 5
Luke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the rough
Default

No.
Luke Skywalker is offline   Reply With Quote
Old 08-05-09, 11:28 PM   #16
Jedi knight
 
Luke Skywalker's Avatar
 
Join Date: Jul 2009
Location: IBF
Age: 21
Posts: 1,816
Rep Power: 5
Luke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the rough
Default

No. You are master of all trades & jack of none.
Luke Skywalker is offline   Reply With Quote
Old 08-05-09, 11:29 PM   #17
Platinum Member
 
Join Date: Sep 2008
Posts: 3,140
Rep Power: 10
Punch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to allPunch Farce is a name known to all
Default

Quote:
Originally Posted by nandini View Post
sure Farce!!! just give it a try.
Here's a sort of 'cheating' solution, but very efficient ;-)

> cc ddd.c
> a.out
acfj
beim
dhlo
gknp
>

I'll try a real solution soon.

-F
Punch Farce is offline   Reply With Quote
Old 08-05-09, 11:30 PM   #18
Gold Member
 
nandini's Avatar
 
Join Date: Jun 2009
Location: Pune
Posts: 487
Rep Power: 3
nandini is a jewel in the roughnandini is a jewel in the roughnandini is a jewel in the rough
Default

Quote:
Originally Posted by farce View Post
Here's a sort of 'cheating' solution, but very efficient ;-)

> cc ddd.c
> a.out
acfj
beim
dhlo
gknp
>

I'll try a real solution soon.

-F
I am gonna kill you.
nandini is offline   Reply With Quote
Old 08-05-09, 11:34 PM   #19
newprouser
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by farce View Post
enna vachi kaamedy, keemedy pannaliye (in vadivelu voice )

(are you making comedy out of me)

-F
Ungala poi yaaravadu kindal pannuvangala (moonu pondati purushan )

Quote:
Originally Posted by farce View Post
Here's a sort of 'cheating' solution, but very efficient ;-)

> cc ddd.c
> a.out
acfj
beim
dhlo
gknp
>

I'll try a real solution soon.

-F
pl pl don't post so soon, i wanna try it

Quote:
Originally Posted by nandini View Post
I am gonna kill you.


voldemort had 7-8 copies of himself, no one knows how many farce has :-P
  Reply With Quote
Old 08-05-09, 11:40 PM   #20
Jedi knight
 
Luke Skywalker's Avatar
 
Join Date: Jul 2009
Location: IBF
Age: 21
Posts: 1,816
Rep Power: 5
Luke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the rough
Default

He had 7 as seven is magical number. So had Farce.
Now avoid off topic & post answer only.
Luke Skywalker is offline   Reply With Quote
Reply

Tags
challenge, programming

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Vote: would you like to have a programming section in IBF ? newprouser Suggestions and Complaints 30 08-30-09 12:56 AM
Java Programming : Doubts newprouser Windows 20 08-19-09 11:20 PM
Tata Sky Plus challenge devrajofjaipur Tata sky 2 05-20-09 01:50 PM
Any how to videos for Flash Programming? vishnu54 Windows 0 05-06-09 05:28 PM


All times are GMT +5.5. The time now is 01:42 PM.


India Broadband Forum