Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,155,835 members, 7,828,052 topics. Date: Tuesday, 14 May 2024 at 10:49 PM

Danmc's Posts

Nairaland Forum / Danmc's Profile / Danmc's Posts

(1) (of 1 pages)

Religion / Re: Biblical Prophecies. Book Of Daniel And Revelation by danmc: 9:52pm On Sep 21, 2014
It is well known that Cyrus is the one who conquered Babylon but it is believed that he let his half-countryman Darius the Mede take the seat. But Darius soon died (approx. 1 year) and Cyrus himself took over.
Programming / Re: How To Create A Simple Calculator Using Java Programing Language GUI by danmc: 12:57am On Aug 25, 2013
Programming / Re: Code Challenge [1]: Pseudo-code, C#, JAVA (apply Object Oriented Principles) by danmc: 9:20pm On Jun 24, 2013
WhiZTiM: The algorithm can be implemented recursively to further beat down the SLoC by a meagre factor...
i removed it like u said and now it works well. just to quote linus torvalds: "talk is cheap. show me the code", pls implement what u just said. i'd love to see it.
Programming / Re: Code Challenge [1]: Pseudo-code, C#, JAVA (apply Object Oriented Principles) by danmc: 5:22pm On Jun 24, 2013
WhiZTiM: Here is a closely coupled working program that solves authurowens problem.
Its only 30lines;... I could explain the code and make the it more readable on anybody's request... so ask if you wanna understand grin....
NB: I made slight modification to the initially rough snippet I wrote from my mobile phone...
tanx boss for the proggie but it still isn't perfect yet. try inputting a 3x3 matrix e.g. "1 2 3", "4 5 6" and "7 8 9". the output misses the last item in the spiral i.e. "5"! pls fix it grin
Programming / Re: Code Challenge [1]: Pseudo-code, C#, JAVA (apply Object Oriented Principles) by danmc: 9:21am On Jun 24, 2013
WhiZTiM: HERE is my OPTIMAL CODE in C++: Its currently the FASTEST implementation I reasoned...
---this code is what I presume you may call 'software engineering'?.
//just feed it in with a 2D array of cstrings and sz the size of one dimension
man, u can't just copy and paste some portion of ur code and tell us to feed it with blah blah blah. it compiled fine but couldn't run it. crash!!! i beg check ur algo well and pls show us a working proggie.
Programming / Re: Code Challenge [1]: Pseudo-code, C#, JAVA (apply Object Oriented Principles) by danmc: 5:09am On Jun 24, 2013
WhiZTiM: Here is my code in python, well commented; and with very good explanation for easy comprehension....
your code works well but is highly insecure and wasteful. reasons:
1. when proggie asks for input, enter "1 2" and "3" the second time. boom, index out of range!!!
2. when proggie asks for input, just hit enter. boom, proggie asks for input infinitely!!!
3. proggie allocates memory 3x for this simple algo: array, state_grid and rtn. boom, why oh why!!!
Programming / Re: Code Challenge [1]: Pseudo-code, C#, JAVA (apply Object Oriented Principles) by danmc: 7:17pm On Jun 23, 2013
lordZOUGA:
no problem, after tonight's match.
hmmm.. ok will be waiting. good luck 9ja smiley
Programming / Re: Code Challenge [1]: Pseudo-code, C#, JAVA (apply Object Oriented Principles) by danmc: 7:15pm On Jun 23, 2013
jacob05: You can add as much array to the list bro. An example to explain what you mean pls?
he's saying make it dynamic so that it can handle any number of items in the matrix. what u have so far is static. anyway, it's good that u tried.
Programming / Re: Code Challenge [1]: Pseudo-code, C#, JAVA (apply Object Oriented Principles) by danmc: 7:10pm On Jun 23, 2013
lordZOUGA: this is trivial. you just have print a 2 dimensional data structure in a different way.
are you sure sir? i tried attempting it but couldn't do it. if it's trivia show us a solution (no offense)

1 Like

(1) (of 1 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.