₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,134 members, 8,420,504 topics. Date: Thursday, 04 June 2026 at 10:29 PM

Toggle theme

PrinceNN's Posts

Nairaland ForumPrinceNN's ProfilePrinceNN's Posts

1 2 3 4 5 6 7 8 ... 15 16 17 18 19 20 21 22 (of 22 pages)

PhonesRe: Blackberry Phone Becomes A Source Of Shame For Users by PrinceNN(m): 7:33pm On Oct 16, 2012
RIM forces no one to buy Bbs angry
CrimeRe: Three Monkeys Arrested In Lagos For Theft by PrinceNN(m): 10:58am On Oct 16, 2012
LMAO...i have a huge sum of money with me, should i continue to achieve my goal? no...watching monkeys do acrobatics is way more important cheesy
Music/RadioRe: Morachi Ft NaetoC – Gbogbo Diz Gurlz by PrinceNN(m): 1:42pm On Oct 15, 2012
Nice track there...5 minutes of my life well spent smiley
CelebritiesRe: Video Of Uti Nwachukwu & Bryan Okwara Dancing Azonto on the Streets of London ;D by PrinceNN(m): 1:30pm On Oct 15, 2012
50 Seconds of my life i would never get back cry cry
TV/MoviesRe: The Walking Dead Season 3 by PrinceNN(op): 1:12pm On Oct 15, 2012
johnstar: Pls where can I download dis movie on my mobile phone huh huh
season 1 and 2 can b gottn from any local dvd shop to save you all the stress of downloads sha....i really dont know about downloading it through mobile, use a laptop nd visit dat site, then if you have internet download manager, it would get the video for you

johnstar: Starting 4rm season 1 please, I must watch dis film
you are in for a thrill cheesy
NYSCRe: NYSC Reject Illiterate Graduates Of ESUT by PrinceNN(m): 8:55am On Oct 15, 2012
this is outrageous
TV/MoviesRe: The Walking Dead Season 3 by PrinceNN(op): 7:46am On Oct 15, 2012
TV/MoviesRe: The Walking Dead Season 3 by PrinceNN(op): 7:59pm On Oct 14, 2012
yea for all those who r interested in following it episode by episode,you can watch it here right from season 1 to 3. Episode 1 would be available moro cheesy

http://www.couchtuner.com/the-walking-dead/
TV/MoviesRe: The Walking Dead Season 3 by PrinceNN(op):
PhysicsQED: If this next season is as good as the previous two seasons, this show will probably be considered (by all those that have seen it) one of the best shows ever made by the time it's done.
you said it bro....d drama is just too entertaining and thrilling
i dnt even have a clue of what to expect in this new season cheesy, tho i heard there wud b death of a very importent character cry
PoliticsRe: Water May Wipe Out Parts Of S/west, S/south – Expert by PrinceNN(m): 7:44am On Oct 14, 2012
Hmmm end times undecided...didn't read d whole tin, but make e nor reach ph sha angry
TV/MoviesThe Walking Dead Season 3 by PrinceNN(op): 9:11pm On Oct 13, 2012
The moment nine million of us have been waiting for is finally here: tomorrow, 9pm(US[2am Nigerian time]), Walking Dead Season 3 (S3).


https://www.youtube.com/watch?v=V9_lkap-uFA&feature=player_embedded
ProgrammingRe: Funny Source Code Comments by PrinceNN(m): 8:09pm On Oct 13, 2012
webdezzi: // no comments for you
// it was hard to write
// so it should be hard to read
hahahaha cry


double penetration; // ouch
lipsrsealed i reserve my CUMments
ProgrammingRe: Funny Source Code Comments by PrinceNN(m): 8:07pm On Oct 13, 2012
mkwayisi: I don't think that would compile wink
it must compile ooo grin
and i must get the output.... lemme go buy a 3d printer grin
ProgrammingRe: Funny Source Code Comments by PrinceNN(m): 2:02am On Oct 13, 2012
lmao @
// Dear maintainer:
//
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
//
// total_hours_wasted_here = 42

and


6, // hack for ie browser (assuming that ie is a browser)

// Import world.smart.charming.females
//Supercoolchick hottie = new Supercoolchick()
grin
CrimeRe: Another Lynching In Warri by PrinceNN(m): 1:56am On Oct 13, 2012
shocked shocked sad
ProgrammingRe: Programming Challenge by PrinceNN(op): 5:37pm On Sep 29, 2012
csharpjava: Oya make we see if no be the Java, Python etc loving guys go leave the bar with a black eye grin !
ok first of all, " " (ie space) isnt a letter so it shouldn't print the occurence
secondly, its supposed to print the occurence of all the letters from a-z
thirdly the challenge has a format for output...
so i guess mr c# don enter one chance
ProgrammingRe: Programming Challenge by PrinceNN(op): 5:25pm On Sep 29, 2012
jacob05: php 2 lines

you can save it in an index file =>index.php

and
query it with the string
index.php?string=The Quick Brown Fox Jumps Over The Lazy Dog

list($alph,$search) = array("abcdefghijklmnopqrstuvwxyz",$_GET['string']);
for($i=0;$i<strlen($alph);$i++) printf("%s %s's <br />",preg_match_all('/'.$alph{$i}.'/',$search,$match),$alph{$i});
Your code isnt complete, as it does not convert the input to lower case to be tested against $alph
notice how it says 0 f's and 0 d's...
and the output should follow the format No f's instead of 0 f's
proof: http://ideone.com/Jk7JH
GamingRe: Official NL FIFA 13 Thread by PrinceNN(m):
just gorrit...will test it tonight smiley

ProgrammingRe: Another Programming Challenge by PrinceNN(m): 12:38pm On Sep 29, 2012
mkwayisi: With your implementation, you did not eliminate the possibility of the same number being generated multiple times. So if your random numbers generated are say {1, 1, 2, 2, 3}, you'd end up displaying same lines multiple times as well.
Hahaha lol...thnx for dat...I imagined the possibility of dat occuring in a HUGE file was near impossible so I guess my mind didn't go there...lemme fix it
ProgrammingRe: Another Programming Challenge by PrinceNN(m): 12:58am On Sep 29, 2012
Done in Java
http://pastebin.com/znMpn3TH

Pass the file path as d only arguement

Java fileClass.java c:/file.txt
ProgrammingRe: Another Programming Challenge by PrinceNN(m): 7:07am On Sep 28, 2012
Am On it...expect my submission the moment I arrive my destination..no internet here, just my phone...
ProgrammingRe: Programming Challenge by PrinceNN(op): 1:58pm On Sep 27, 2012
mkwayisi: @lordZouga: Did you just call the C code "sleazy"? Well, guess what? You ain't seen "sleazy" yet!
Perl. 1 line. 71 total characters. BTW, I don't call this "sleazy", rather "nifty". Got it?
$c{$_}++for(split/ */,lc$ARGV[0]);print$c{$_}||'No'," $_\'s\n"for(a..z)
To test it, pass the sentence as an argument to the script. Eg:
$> perl test.pl "The Quick Brown Fox Jumps Over The Lazy Dog"
Write any shorter and I can't compete!
nice code...shortest so far, but you arent rilly supposed to pass any arguements to the program. the rules demanded that you include the default text in the code.
ProgrammingRe: Programming Challenge by PrinceNN(op): 1:45pm On Sep 27, 2012
mkwayisi: Well this is getting interesting. I have my code too in C on a single line. Now don't tell me about readability, you asked for it wink Perhaps you can write a shorter one with no lines at all wink
int main(int i,char**v){if(i>1){int c[26];char *p=v[1];for(i=0;i<26winkc[i++]=0;while(*p!='\0'){if(*p>=97&&*p<=122)*p-=32;if(*p>=65&&*p<=90)c[*p-65]++;p++;}for(i=0;i<26;i++)if(c[i]>0)printf("%cs=%d\n",i+65,c[i]);}return 0;}

After compiling, launch the exe passing the sentence as an argument. A screenshot is shown below.
this is not allowed nau...you just crammed everything into one line...
ProgrammingRe: Programming Challenge by PrinceNN(op): 4:49pm On Sep 24, 2012
Hahaha chill...I'm replying with my phone now...when I arrive my destination I will compare d speed. Let's see if mr c# leaves d bar in a wheelchair
ProgrammingRe: Programming Challenge by PrinceNN(op): 11:49am On Sep 24, 2012
lordZOUGA: not necessarily true... I think you are confusing "syntax" for "algorithm"... That I used
while(i < 8 )
{//code}
or used
for(i = 0; i < 8 ; )
{//code}

does not change the fact that I used a loop in my program or algorithm and probably does not speed up or slow down the program in any way
True but I also stated earlier that it tests both the algorithm and how easy or complex it is to achieve d same result with various languages and their syntax

And for the c++ etc issue I count only the lines in the main methods
ProgrammingRe: Programming Challenge by PrinceNN(op): 7:54am On Sep 24, 2012
ekt_bear: What is the point of optimizing down to X lines if the approach works correctly and doesn't have any major unnecessary steps?
The fewer the lines d more complex d algorithm because u hav to achieve as much as possible with each line. And dat is actually what the challenge was
ProgrammingRe: Programming Challenge by PrinceNN(op): 7:27am On Sep 24, 2012
Lol...thnx mate....your method used less characters tho so I'd giv it to you...bravo
ProgrammingRe: Programming Challenge by PrinceNN(op): 1:51am On Sep 24, 2012
omo_to_dun: @OP, so it looks like I'm the winner (with four lines).
a, s = [0] * 128, "The quick brown Fox jumps over the lazy Dog".lower()
for c in s: a[ord(c)] = a[ord(c)] + 1

for i in range(97,123): print("{0} {1}'s".format('No' if a[i] == 0 else a[i], chr(i)))

Wow.... magnificent...tho u used 3 lines .... But its nt yet over.

http://pastebin.com/j2KdVzCS
ProgrammingRe: Programming Challenge by PrinceNN(op): 1:35am On Sep 24, 2012
xcitedjay: Nice one. I like the way you replaced the '0' with 'No' inside the output parameter.
Thnx mate..... Figured its shorter that way
ProgrammingRe: Programming Challenge by PrinceNN(op): 8:58pm On Sep 23, 2012
@javania i Also tried it in java , took 7 lines too....same approach i used in python

http://pastebin.com/LBdChWkr
ProgrammingRe: Programming Challenge by PrinceNN(op): 8:52pm On Sep 23, 2012
Ok so here is my own...done in python and took 7 lines.

http://pastebin.com/ABFH4nSM

1 2 3 4 5 6 7 8 ... 15 16 17 18 19 20 21 22 (of 22 pages)