₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

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

Toggle theme

PrinceNN's Posts

Nairaland ForumPrinceNN's ProfilePrinceNN's Posts

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

GamingRe: Mk9 Pros In Lagos by PrinceNN(op): 12:45pm On Sep 23, 2012
I'd be there on tuesday...I'm nt sure where I would stay but I'd contact you through dis thread yea?
ProgrammingRe: Programming Challenge by PrinceNN(op): 11:56pm On Sep 22, 2012
Floor iz wide open ...
ProgrammingRe: Programming Challenge by PrinceNN(op): 11:52pm On Sep 22, 2012
Javanian: http://pastebin.ca/2206823

15 lines...this is the best i can go...
Nice work..I am also goin 2 try 2 implement it in java...who knows, might be shorter
ProgrammingRe: Programming Challenge by PrinceNN(op):
omo_to_dun: Ok, this lecturer is boring me. Here we go. Python: 9 lines

def word(s):
a, s = [0] * 26, s.lower()
for c in s:
i = ord(c) - 97
if i > -1 and i < 26: a[i] = a[i] + 1
for i in xrange(26):
if a[i] == 0: print("No {0}'s".format(chr(i + 97)))
else: print("{0} {1}'s".format(a[i], chr(i + 97)))
word("The quick brown Fox jumps over the lazy Dog")



Javanian: I'll do yours later
Cool......but...still knock out a lil...I noticed u used ascii method...nice approach
GamingMk9 Pros In Lagos by PrinceNN(op): 10:55pm On Sep 22, 2012
Ok so I'm coming to lagos next week...any mk9 pros wanna go a few rounds?
ProgrammingRe: Programming Challenge by PrinceNN(op): 9:28pm On Sep 22, 2012
omo_to_dun: Python: 15 lines

def word(s):
a = [0] * 26
s = s.lower()
for c in s:
i = ord(c) - 97
if i > -1 and i < 26:
a[i] = a[i] + 1
return a
def emit(a):
for i in xrange(26):
if a[i] == 0:
print("No {0}'s".format(chr(i + 97)))
else:
print("{0} {1}'s".format(a[i], chr(i + 97)))
emit(word("The quick brown Fox jumps over the lazy Dog"))
Wow...magnificent....bravo....shortest so far... but. 15 lines? Knock out a few and u hav it .... Floor is still open sha...smiley
ProgrammingRe: Programming Challenge by PrinceNN(op): 7:10pm On Sep 22, 2012
floor is still open...@otuabaroku and @javanian gr8 job but still too much lines sha grin
ProgrammingRe: Programming Challenge by PrinceNN(op): 7:06pm On Sep 22, 2012
naija_swag: The number of lines of your code does not determine how efficient it is.I will rather code for shorter running time than for shorter lines of code.
The shorter the code the more complex the algorithm. and besides fewer code pays off when issues like size or readability is an issue
i need an answer with far less lines because it displays how skilled the programmer is with algorithm or and how easy or complex it is to implement such in various programming languages. i had implemented this in python before asking and it occupied far less lines...
ProgrammingRe: Programming Challenge by PrinceNN(op): 3:42pm On Sep 22, 2012
ok remove as much as u can.... The floor is still open smiley
ProgrammingRe: Programming Challenge by PrinceNN(op): 3:30pm On Sep 22, 2012
Javanian has 142 lines...anybody?
ProgrammingRe: Programming Challenge by PrinceNN(op): 3:26pm On Sep 22, 2012
Javanian: I did this in a hurry its quite lengthy but it works

http://pastebin.ca/2206694

I'll see if i can write a shorter version...
gr8 effort...thnx... smiley
tho the main challenge is getting d job done in fewer lines of code
User input isn't rilly required cus I supplied a default text to process.....
ProgrammingRe: Programming Challenge by PrinceNN(op): 1:39pm On Sep 22, 2012
lordZOUGA: I would use a dynamically allocated memory... No need allocating memory for a 'z' when it might not be there...
Pls could u shed more light on dat?
ProgrammingProgramming Challenge by PrinceNN(op): 11:46am On Sep 22, 2012
Write code in any language dat processes a sentence(text only) and prints out the occurence of each letter of the alphabet in the sentence using the format

3 a's
2 b's
....
No z's

Default Text = "The quick brown Fox jumps over the lazy Dog"

Its sounds easy but I'm looking for the 'smallest' 'fool-proof' code
GamingRe: Any MK9 Pros In Port Harcourt? by PrinceNN(op): 11:30am On Sep 22, 2012
Prince nnamdi@ gmail.com dats ma email....pls just alert me of such

And for dat final level, I finished it, but the tin is...u hav to try it over and over again.. after each try, the game assists u, so just keep retrying and watch ur life bar
CrimeRe: Man Caught With Dead Baby In Suitcase In Abuja ! by PrinceNN(m): 3:37pm On Sep 16, 2012
Wonders shall never end undecided angry
CelebritiesRe: Fans Insults PSquare For Deleting May-D's Tracks From Youtube by PrinceNN(m): 2:31pm On Sep 16, 2012

eduson44: He is asking if u pay b4 visiting lagos
i dont get u huh

naptu2: It depends on who owns the rights to the songs. If P-Square own the rights they can get Youtube to mute the audio from any posting, no matter who uploaded the song.

For example, it is extremely difficult to get any of Prince's songs on Youtube. Even Ginuwine's remix of "When Doves Cry" was muted by Youtube because of a rights claim by Prince.
Wow that explains a lot smiley
GamingRe: Any MK9 Pros In Port Harcourt? by PrinceNN(op): 2:23pm On Sep 16, 2012
shocked shocked wow where in lagos do they do the tournaments?
and yea im pretty sure my tag team would best ur scorpion/sector combo grin
CelebritiesRe: Fans Insults PSquare For Deleting May-D's Tracks From Youtube by PrinceNN(m): 2:20pm On Sep 16, 2012
lacicrips: I thought YouTube was free. Cant he just upload the damn music back to another account? Shoooo!
Exactly what i wanted to ask undecided undecided
Music/RadioRe: Pusha-T - The Morning Ft. D'banj And Other GOOD Music Artists by PrinceNN(m): 7:12pm On Sep 13, 2012
His humming was even autotuned undecided undecided just saying
PhonesRe: Android, Anyone? Part II by PrinceNN(m): 5:20pm On Sep 13, 2012
4llerbuntu: grin grin grin

some guys sha. if fone dey long like dis, na who go buy am
BUAHAHAHAHAHA I love dat pic...funny cheesy
CelebritiesRe: I-Go-Dye Buys Escalade And Range-Rover-Evogue Worth N38M by PrinceNN(m): 11:14am On Aug 28, 2012
wow...gud for him...he deserves it
PhonesEtisalat Best Promo Ever by PrinceNN(op): 10:39pm On Aug 18, 2012
Who needs an aeroplane when u can win more.... shocked shocked angry angry
https://i50.tinypic.com/n6t6k0.jpg
Lolz
Jokes EtcElectricity Will Be Cut Off by PrinceNN(op): 2:06pm On Aug 03, 2012
Electricity will be cut off tomorrow from 10am to 4pm for the following reason


https://up.q8bbm.com/bb/620c1318574301.gif
grin angry angry
GamingAny MK9 Pros In Port Harcourt? by PrinceNN(op): 10:07pm On Jul 29, 2012
since my isp has a high ping i cant play online for now sad cry cry
so any MK9 pros in PH city wanna duel?simply indicate cool
im yet to see any serious challenge from my friends

Favourite player: Cyrax
Favourite Tag Team Players: Cyrax, Smoke, Kano, Kitana, Kenshi, Rain, and Sonia Blade wink

https://images3.wikia.nocookie.net/__cb20110303215252/mk/images/0/02/Ermac_mk9.jpg
[img]http://kreativeme.files./2010/08/mk9_4.jpg[/img]
https://www.mojodojo.co.za/wp-content/uploads/2011/04/Tag-team-466x262.jpg
https://www.freevideoclip.org/wp-content/uploads/img_114_mortal-kombat-9-official-tag-team-ninja-gameplay-2011-mk9-hd.jpg
[img]http://1.bp..com/_hytSzAsi1vA/TQuyR30oCKI/AAAAAAAAACI/jc-kP7b-YrQ/s1600/Kratos-MK9-TQ570.jpg[/img]
GamingRe: PS3 Online by PrinceNN(op): 12:29pm On Jul 28, 2012
what network do u use?
GamingPS3 Online by PrinceNN(op): 11:31pm On Jul 24, 2012
if you are in nigeria and you play online, pls i would like to know
1. your isp
2. your ping (pingtest.net)
i have a fast connection, but my ping is very high and this realy prevents me from playing online. i did a traceroute to google.com and to my greatest suprise it went through about 16 nodes huh huh angry
ps....i use etisalat
GamingRe: Best Fighting Game On PS3 by PrinceNN(m): 11:24pm On Jul 24, 2012
mk9 is the best
PoliticsRe: Jonathan: I Can Rule Beyond 8 Years by PrinceNN(m): 2:29pm On Jul 24, 2012
*just passing by* undecided
WebmastersRe: Facebook "Sponsored Search Results" by PrinceNN(m): 10:12am On Jul 23, 2012
they for don do am tey tey nau...more profit
GamingRe: Which Video Game Scared The Hell Out Of You. by PrinceNN(m): 9:50am On Jul 20, 2012
Resident Evil 4 is, but it all has to do with strategy...some people just waste ammo taking down 1 zombie nd some dnt evn upgrade Or purchase ammo...some forget to disarm the ones wielding weapons...some just stand @ a place while shooting....with one shot I can kill a zombie, no matter d gun..

I'm suprised no one mentioned AREA 51...or am I d only person dat played it?...I first played d demo of d game in mk deception, so I bought d disc...talk about fast paced scare
AutosRe: PHOTOS: £135,000 Ferrari With Leather "Exterior"! by PrinceNN(m): 8:25pm On Jul 13, 2012
i like exotic rides... smiley
Christianity EtcRe: T.B Joshua's 1st Child Graduates From LSE With 2.1 by PrinceNN(m): 7:47pm On Jul 13, 2012
ifihearam: The aproko that brought this news ought to have uploaded his daughter's pix and not that of his becos we knw what he looks like already

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