Educational Services › Re: Thesis Support by Mobinga: 9:08pm On Mar 06, 2012 |
|
Romance › Re: When Your Wife Pushes You Too Far,a Slap Or 2 Could Be Justified by Mobinga: 9:06pm On Mar 06, 2012 |
|
|
Romance › Re: When Your Wife Pushes You Too Far,a Slap Or 2 Could Be Justified by Mobinga: 8:54pm On Mar 06, 2012 |
|
Romance › Re: deleted by Mobinga: 8:50pm On Mar 06, 2012 |
|
Dating And Meet-up Zone › Re: I Need A White Lady Desperately. by Mobinga: 8:49pm On Mar 06, 2012 |
|
Politics › Re: Nigerians In The Diaspora Or @home : Who's Responsible For The Negative Image ! by Mobinga: 8:44pm On Mar 06, 2012 |
|
Politics › Re: Nigeria Owes Obasanjo For His Foresight, Says Pdp by Mobinga: 8:41pm On Mar 06, 2012 |
|
Romance › Re: deleted by Mobinga: 8:37pm On Mar 06, 2012 |
Ban the OP.
I'm tired of seeing these fake repetitive stories. |
Gaming › Re: What Game Are You Currently Playing? by Mobinga: 7:41pm On Mar 06, 2012 |
|
Gaming › Re: Official " New Releases " Thread. Check For Latest Games by Mobinga(op): 8:38am On Mar 06, 2012 |
Olisa74: 3 Days to go,I don't know anyone alive that has their hands on the game, talk less of playing it. I'm hoping it lives up to the hype, as Mass Effect 2 is easily one of the best games ever!! It's on my desktop. Played it lastnight. No bull.shit. I even put a screenshot here https://www.nairaland.com/nigeria/topic-70724.1728.html#msg10337402  |
Gaming › Re: What Game Are You Currently Playing? by Mobinga: 12:54am On Mar 06, 2012 |
|
Gaming › Re: Official " New Releases " Thread. Check For Latest Games by Mobinga(op): 12:53am On Mar 06, 2012 |
Nobody's showing love for Mass Effect 3?  Copped it. |
Programming › Re: Rsa Pin Generator by Mobinga: 7:29pm On Mar 05, 2012 |
|
Phones › Re: Android, Anyone? by Mobinga: 7:27pm On Mar 05, 2012 |
|
|
Christianity Etc › Re: What Do You Expect After Death by Mobinga: 7:24pm On Mar 05, 2012 |
sauer: what do you mean "tenancy"? Then you should prove the tenancy of a soul then! Come on! You are not at liberty to draw conclusions on other people's souls! This is a two way thing. You can't prove it's not there either. https://img683.imageshack.us/img683/8184/bushlaugh.png |
Education › Re: U.s. Student Wants To Do Study Abroad In Nigeria ! by Mobinga: 3:01pm On Mar 05, 2012 |
You better look for a better country. |
|
Politics › Re: Boko Haram Leader (shekau) Escapes Arrest In Kano •wife Arrested by Mobinga: 2:54pm On Mar 05, 2012 |
They're acting like the residents don't know where he is? |
Christianity Etc › Re: Cardinal Arinze Will Be The Next Pope? by Mobinga: 2:50pm On Mar 05, 2012 |
According to Malachys prophecy, Ratzinger is supposed to be the last pope, where the hell did Arinze come from? |
Christianity Etc › Re: What Do You Expect After Death by Mobinga: 2:47pm On Mar 05, 2012 |
As soon as I saw the thread title I knew the Atheists and Agnostics would start their raping spree.
You can't disprove the tenancy of a soul in you.
So, let this thread fade into its miserable oblivion. |
Webmasters › Re: Show Off Your Best Work. by Mobinga: 2:42pm On Mar 05, 2012 |
Ban the OP. Ban. Ban. Ban. Ban. Ban the Thread Starter. Ban. Ban. |
Programming › Re: Creating Multiple Columns In The Db by Mobinga: 12:39pm On Mar 04, 2012 |
What sort of database structure is that that requires 50 columns?
Perhaps you should restructure your database. |
Nairaland General › Re: 30 Days Score Card Of Igp Md Abubakar by Mobinga: 11:42am On Mar 04, 2012 |
|
Programming › Re: Java Collections Question by Mobinga: 11:39am On Mar 04, 2012 |
Fayimora: Hmm you don't get the whole strategy then. My Algorithms and Data Structures prof said this: "NEVER use arrays! However, until you understand arrays, never use Lists."
HE NEEDS TO KNOW HOW TO JOGGLE THE INDICES! Its COMPULSORY!
I know as someone who has gone past the level of zipping arrays, you might be thinking Maps, quite typical. However, you should remember that you started from somewhere. You dont want to push someone to Maps when the best DS he knows is an Array.
Looking at the problem properly, using HaspMaps wouldn't be necessary. You can use 3 arrays(ignoring the description), 1 containing the names, the other containing the corresponding category and a final one containing the corresponding Cost! I guess you should know what to do. However as a challenge, loop through all three arrays at once and get all the information you need, in O(n)(ignore this for now if you dont know what it means).
An alternative, would be to create a small class that holds some data(attributes to store values from file). You would end up with an array of <some_object>. Again you just need to loop once.
I prefer the latter solution as the former is a bit dirty, however the former is a procedural approach! If it suits your needs then use it, In what sense? posy your code here ==> http://pastie.org
[size=3pt]Let me tell you an experience I had. Someone from University of Liverpool mailed me(how she knew me is still a mystery) asking me to write some code to fit a spec for her. I rejected and she refused to leave my mailbox alone. I felt bad for her after a few days and since the deadline was in less that 24hrs, I decided to help. I asked her how far they had gone(syllabus wise) so I don't write code no-one would question. She said anything would be fine. My code was simple but complex. It was a C++ project. She failed the assignment. Not because I wrote bad code but because I didn't know that she knew nothing about OOP! I felt bad and still feel bad even thought she didn't blaming me. You should try to avoid such stuffs. [/size] https://images.yuku.com/image/gif/044159e6e0b6bbae9a223ead74efee75883a7b7.gifOn that Boss poo. OP see also the split(); method in the String class and the StringTokenizer Class. |
Programming › Re: Why Nigerian Start-ups Fails: by Mobinga: 7:37pm On Feb 27, 2012 |
Why is the author so angry at life and himself? |
Art, Graphics & Video › Re: Insane Art Formed By Carving Books With Surgical Tools (pics) by Mobinga: 7:34pm On Feb 27, 2012 |
Insane. |
Politics › Re: Atedo Peterside & Ben Bruce Appointed By Newly Sworn-in Bayelsa Gov Dickson by Mobinga: 7:31pm On Feb 27, 2012 |
Of-course.
He must have heavily funded Dickson's election for something in return.
They are all the same. |
Phones › Re: Android, Anyone? by Mobinga: 11:27am On Feb 27, 2012 |
|
Programming › Re: Can Gurus Help Me With This? by Mobinga: 7:42pm On Feb 24, 2012 |
|
Romance › Re: When A Guy Peck On A Fellow Guy's Cheek, Is He Gayy? by Mobinga: 7:40pm On Feb 24, 2012 |
|