Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,161,289 members, 7,846,318 topics. Date: Friday, 31 May 2024 at 02:05 PM |
Nairaland Forum / Mxxpunkxx's Profile / Mxxpunkxx's Posts
(1) (2) (3) (4) (5) (6) (7) (8) ... (11) (12) (13) (14) (15) (16) (17) (of 17 pages)
Programming / Re: Algorithm Workout! by mxxpunkxx: 1:16am On Jul 25, 2011 |
naija_swag: suicide!, for HIM , lol |
Programming / Re: Coding Challenge 1: Permutations by mxxpunkxx: 4:12pm On Jul 06, 2011 |
************AND HERE COMES THE CODE***************** JAVA************* public class Permutation{ public static void main(String []args) { permute("key" } private static void permute(String str) { int length = str.length(); boolean used[] = new boolean[length]; StringBuffer out = new StringBuffer(); char[] in = str.toCharArray(); doPermute(in, out, used, length, 0); } private static void doPermute(char[] in, StringBuffer out, boolean []used, int length, int level) { if(level == length) { System.out.println(out.toString()); return; } for(int i = 0; i < length; i++) { if(used[i]) continue; out.append(in[i]); used[i] = true; doPermute(in, out, used, length, level+1); used[i] = false; out.setLength(out.length()-1); } } } kapish!!!!!!!!!!!!!!! c'est finis!! |
Programming / Re: Coding Challenge 1: Permutations by mxxpunkxx: 3:57pm On Jul 06, 2011 |
*************NO TIME,,,,,,,,,,,LEMME JUST SKETCH (ROUGH WORK)**************** Lets say we wanna generate permutation for the word SLEEVE this aint really hard to do> i would have given the code straight up, but cos of my busy schedule, i'ma just explain what i intend to do, maybe somebody can help spit the code. Permutation means the number of ways letters can be arranged to form a word (whether they make sense or not) . In this case, we have 6 letters in SLEEVE. that 6 * 5 * 4 * 3 * 2 * 1, thats 6! (six factorial), i will loop this (downward counting loop). and the iteration of each value must be multiplied against the value. 1st loop = 6 2nd loop = 6 * 5 = 30 3rd loop = 4 * 30 = 120 4th loop = 3 * 120 = 360 . . . complete the remaining loops yourslves Then its easy to make a factorial function that handles the factorials. this really depnds on whether we are putting order into consideration or not, Formula n_P_k = n! / (n - k)! Thus SLEEVE & permutation 2 will yield, 6_P_2 = 6! / (6 - 2)! = 6! / 4! = 6 x 5 = 30 perms. easily done,,,,create a 2-parameter function 1= number of objects 2= permutations plugging this into the equation along with a couple of calls to the new factorial functions will return the interger value kapish!!!!!!!!!!!!!!! c'est finis!! |
Autos / Re: 2007 Nissan Pathfinder Se(mileage Of 4438km)just Cleared,. by mxxpunkxx: 2:56am On Jun 21, 2011 |
you lied about the odometer's reading, u blew d 1st step toward keeping your integrity |
Phones / Re: Blackberry Sucks! by mxxpunkxx: 1:41pm On Jun 13, 2011 |
patholaw: WORD !!! |
Autos / Re: **security Tips Against Customers** by mxxpunkxx: 3:34pm On Jun 11, 2011 |
msochi: Now, he's at a loss for words !!! msochi: And what makes you think he won't disappear with the car? After-all he only paid 50%, and the car is supposed to worth 100% not 50 !!! CONCLUSION :- This guy just wants recognition here; but sadly he got the wrong footing !! Thats why i love Nairaland, no illiterates in here !!! |
Phones / Re: Blackberry Sucks! by mxxpunkxx: 3:11pm On Jun 11, 2011 |
Mr official i feel ya jare All those shit mafia4life posted, are just 3rd-party apps We got a BB appworld, so if na to download app, dats no biggie I dont even downloads apps as much, i just love the communication and the secure- data encryption by RIM, the best ever !!! |
Phones / Re: Why Is Airtel Stealing My Money Arbitrarily? by mxxpunkxx: 1:20pm On Jun 10, 2011 |
i had this problem with MTN, always deducting ma credit even after subscription i called them, i swear, those peeps, dont know nada! just do a SECURITY WIPE backup only your contacts and bbm (no settings plz) . . . restore your backup and you're good to go! |
Phones / Re: Blackberry Sucks! by mxxpunkxx: 1:17pm On Jun 10, 2011 |
@OP ABEG, u're a exaggerating . . .! or you got yaself an "adulterated" version of it i use the bb torch, 8 gb, and i can open anytin i want . . yes i use MTN, is there a download limit, lol? cos i am always downloading, and my bandwidth never runs out . . . so whats ya problem? i swear, most of these peeps, its mere gainsaying . . . i have not seen a Nigerian so far, dat doesn't love d BB . . lets call a spade a spade |
Phones / Re: Mtn Wahala With Blackberry Torch by mxxpunkxx: 2:58am On Jun 06, 2011 |
nairaland, plz reply nah |
Phones / Re: Bb Zaps Credit Even After Bis by mxxpunkxx: 9:54pm On Jun 05, 2011 |
HMMMM, NA WA OOOO I TOT AS MUCH OHH COS MY FRIEND DAT JUST PAID HIS MTN RAN TO ETISALAT . . . . 3 DAYS LATER UNCLESAMTECH, WATS YA ADVICE ON THIS ONE?? SEE ME SEE WAHALA, AFTER 3K, NA WA OOOO, |
Phones / Bb Zaps Credit Even After Bis by mxxpunkxx: 5:52pm On Jun 05, 2011 |
i use a bb torch on mtn just paid for the mthly BIS, and i stll had airtime in my fone . . today, after some hours of pinging and browsing, i dsicovered my airtime went flat to N0.00 i have not made any call or sent a single text since yesterday damn! what could have happnd cos rite now am cnfused n scared to load . . house, plz help !!! |
Autos / Re: 2007 Honda Pilot Lather Seat Suv Buy Me 2.5 Million by mxxpunkxx: 2:25pm On Jun 01, 2011 |
EOD - PILOT crossbreed |
TV/Movies / Re: Who Remembers This Children's Tv Program From The 80's/90's by mxxpunkxx: 2:06pm On May 30, 2011 |
It's so pitiful kids these days watch "rubbish." |
Webmasters / Re: Need Help On Html Mailto Form by mxxpunkxx: 2:00pm On May 29, 2011 |
@DualCore i already fixed it . . . . . . . and sent him the emails with the d php and html files 2wice! Thread closed, please! Or lets wait for his "thank you, mxxpunkxx", EDIT: for the sake of newbies, i attached a pdf, it should be of help!, the codes were not mine, but at least i deserve some credit for the colorful illustrations
|
Webmasters / Re: Need Help On Html Mailto Form by mxxpunkxx: 1:06pm On May 29, 2011 |
fd4all234: hey man! i got ur email, ur codes were pretty messed up big time. but i fixed it, i uploaded them on my server and tested them, and baaam! i got all data fields in my email so check your email, i am sending back the corected files with instruction, am glad to help! dont forget to say thank you! |
Romance / Re: Is This True About Jehovah Witness Girls? by mxxpunkxx: 9:49pm On May 28, 2011 |
jobless perverts, how i wish the world really ended on May 21st |
Romance / Re: Is This True About Jehovah Witness Girls? by mxxpunkxx: 12:19am On May 28, 2011 |
Sripturally n honestly, premarital sex is wrong. Let's stop deceiving ourselves. But if a JW chooses to go astray, don't blame it on the religion. Blame it on his conscience. After all he has an accounting with God and not you. Besides outta every 12, there must be a Judas. Am living proof, the bible warns against immodest body piercings e.g. Tattoos. buh my left hand is totally covered with tattoos, yes from my left shoulder to the fingertips and I plait my hair, pierced ears. Yes I've been a JW since foetal conception. So who's to blame? The religion? Or me? (food for thought) 4 Likes |
Webmasters / Re: Need Help On Html Mailto Form by mxxpunkxx: 4:10pm On May 27, 2011 |
i feel ya but if there is a millisecond delay in eating the fish; mxxpunkxx is here to force the fish into his mouth |
Webmasters / Re: Need Help On Html Mailto Form by mxxpunkxx: 2:16pm On May 27, 2011 |
and dont forget to put this line of code in the page that has the form <form action="Bleep.php" method="POST"> replace Bleep.php with the name of your php file . . . . . and if your host supports php, it should send e'thin straight to the email address configured in the php file . . . no outlook! |
Webmasters / Re: Need Help On Html Mailto Form by mxxpunkxx: 2:12pm On May 27, 2011 |
na wa o, help dis dude out na, it only takes some seconds @OP send me the php code that's giving your error (as notepad attachment) . . i will correct it and send back to you as .php file, and upload it to your server as-is charlescutt@yahoo.com |
Art, Graphics & Video / Re: Hp Dv6 2066dx With 6gb Ram 320mb Ati Catalyst by mxxpunkxx: 1:48pm On May 27, 2011 |
grandtener: dude, you need some spanking? why not learn what a Gigabyte is 1st b4 u come here to post ish !!!! |
Celebrities / Re: Psquare Attacked And Robbed At Gun Point In Lagos (3rd Mainland) by mxxpunkxx: 12:33pm On May 27, 2011 |
selective crime ~~ attacking only celebs now am scared of becoming one |
Autos / Re: A Naija Used 2006 Nissan Murano Jeep 4 Sales@1.7m-08029091965 by mxxpunkxx: 11:59am On May 26, 2011 |
use Microsft paint,,,,,,,,,,,make it 100 x 100 pixels and we can still see clearly wtf!!!!!!!!!! |
Autos / Re: 2005 Eod For Sale@ 1m by mxxpunkxx: 3:08pm On May 25, 2011 |
Legend4, u sell cars. I buy them. U need me to survive, feed ur kids n ya entire familyyyyyy!!!!! I pity d buyer tho |
Religion / Re: How Many Here Have Read The Bible From Cover To Cover. by mxxpunkxx: 3:04pm On May 25, 2011 |
Over 12 times |
Autos / Re: 2005 Eod For Sale@ 1m by mxxpunkxx: 6:47pm On May 24, 2011 |
Dude if u call dat ish a 2005 eod again, I will tel inspired_m to delete your post n ban u, Are u crazy or sum fin, d 2005 has got full red taillights wit a small reverse White light inside |
(1) (2) (3) (4) (5) (6) (7) (8) ... (11) (12) (13) (14) (15) (16) (17) (of 17 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. 31 |