₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,347 members, 8,430,547 topics. Date: Saturday, 20 June 2026 at 04:56 PM

Toggle theme

The Greatest Programmer On Nairaland - Programming (25) - Nairaland

Nairaland ForumScience/TechnologyProgrammingThe Greatest Programmer On Nairaland (77083 Views)

1 2 3 ... 22 23 24 25 26 27 28 ... 39 Reply (Go Down)

Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:46pm On Feb 26, 2016
seunthomas:
I will do it in c but

Correct the following code so that it works properly as it will not work in its current state? Means its broken
A C program is written to count how many nodes are accessible from any of the nodes in th data structure

I assume you want this to be corrected
int count(struct t*a)
{
If (a->m) return 0;
return count(a->b) + count(a->d)+1;
}

and not the struct itself.
Correct wherever you feel a correction is required
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:47pm On Feb 26, 2016
airsaylongcon:
What issues have you got with it? Unlike you, I am willing to explain. You insulted me that we aren't on the same level of understanding when I asked u to further explain your question. But I am willing to explain mine
Now you are making me laugh sha. Do you even know c at all?? Or this is just to wind seunthomas up...
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:49pm On Feb 26, 2016
seunthomas:
Now you are making me laugh sha. Do you even know c at all?? Or this is just to wind seunthomas up...
I gave you a solution to guru01 code in C and you picked it apart highlighting security errors. That's why I chose a C code for you. To exhibit your skills
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:51pm On Feb 26, 2016
airsaylongcon:
I gave you a solution to guru01 code in C and you picked it apart highlighting security errors. That's why I chose a C code for you. To exhibit your skills
So you want to ask me a question you cant solve? Really!!!!!
The rules for the challenge was that you should also be able to solve it na...
Dont get me wrong i will attempt to solve this just want to have some chat fun before digging into it
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:53pm On Feb 26, 2016
seunthomas:
So you want to ask me a question you cant solve? Really!!!!!
The rules for the challenge was that you should also be able to solve it na...
I can and I have solved it. Now get to work as time is running. Remember I'm a lowly warehouse rat and you are the big dog well experienced programmer
Re: The Greatest Programmer On Nairaland by Nobody: 11:54pm On Feb 26, 2016
seunthomas:
Hmm. Still digging right. Ok. Lets get started.
Because i exposed the fact that you took other peoples code... You don dey make am personal ohhhhh...
And i still put it to you that you are completely wrong, yet you insist on your foolishness. Luckily, the repositories are for public consumption.
The codes are visible to the WWW, let people decide for themselves. A thing is what it is - what you say does not matter.

You are too technically incompetent to decipher the difference between dhtmlsql and zebra_database, and that one is not my fault. I owe you no explanation because you are not smart enough to understand. If you think i have stolen the code, then report to the zebra_database dude, stop making mouth for nothing here.
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:55pm On Feb 26, 2016
airsaylongcon:
I can and I have solved it. Now get to work as time is running. Remember I'm a lowly warehouse rat and you are the big dog well experienced programmer
To be sure you know what you asked me to solve and not just checking answers in an online site, create a very simple struct with 2 integer members and a function;
Re: The Greatest Programmer On Nairaland by Nobody: 11:56pm On Feb 26, 2016
seunthomas:
Now you are making me laugh sha. Do you even know c at all?? Or this is just to wind seunthomas up...
Them don talk am, you are nothing but a wind bag!
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:56pm On Feb 26, 2016
dhtml18:
And i still put it to you that you are completely wrong, yet you insist on your foolishness. Luckily, the repositories are for public consumption.
The codes are visible to the WWW, let people decide for themselves. A thing is what it is - what you say does not matter.

You are too technically incompetent to decipher the difference between dhtmlsql and zebra_database, and that one is not my fault. I owe you no explanation because you are not smart enough to understand. If you think i have stolen the code, then report to the zebra_database dude, stop making mouth for nothing here.
Don't let him use u as excuse to dodge my question. Let me crush this "programming since 1998" programmer
Re: The Greatest Programmer On Nairaland by asalimpo(m): 11:57pm On Feb 26, 2016
@Seunthomas
Take a deep breathe. Dont feel cornered.
Read up on structs (you say you're no novice to c), to refresh your memory. I sense that the strange/ugly syntax (*,->,struct) is getting to you!
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:58pm On Feb 26, 2016
dhtml18:
And i still put it to you that you are completely wrong, yet you insist on your foolishness. Luckily, the repositories are for public consumption.
The codes are visible to the WWW, let people decide for themselves. A thing is what it is - what you say does not matter.

You are too technically incompetent to decipher the difference between dhtmlsql and zebra_database, and that one is not my fault. I owe you no explanation because you are not smart enough to understand. If you think i have stolen the code, then report to the zebra_database dude, stop making mouth for nothing here.
Dont worry i wont dig. I dont like to open skeletons am not meant to see. LOL. I dont mind you digging sha but you can ask me rather than make assumptions. Cause assumptions can create uneccessary wahala.
Re: The Greatest Programmer On Nairaland by Nobody: 11:58pm On Feb 26, 2016
airsaylongcon:
Don't let him use u as excuse to dodge my question. Let me crush this "programming since 1998" programmer
The guy has taken too much damage on this thread, and he is yet not conceding defeat. I find this most interesting.
The only problem is that, he cannot out-talk himself from your challenge, let us see how he intends to bail himself mouth (hopefully not with his mouth).
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:58pm On Feb 26, 2016
seunthomas:
To be sure you know what you asked me to solve and not just checking answers in an online site, create a very simple struct with 2 integer members and a function;
My word! You really are a windbag. A chatter box. I did not ask you to prove your competence when you asked me to solve your challenge
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:59pm On Feb 26, 2016
asalimpo:
@Seun
Take a deep breathe. Dont feel cornered.
Read up on structs (you say you're no novice to c), to refresh your memory. I sense that the strange/ugly syntax (*,->,struct) is getting to you!
Na, but it feels very unfair for me to ask a question that i dont know the answer na. I am not computer that should solve his problems na. The object of a challenge is to test the prowess of both of us. Enough talk. If he cant create a struct i will attempt and provide my solution. Mind you am half way already. So many errors.lol
Re: The Greatest Programmer On Nairaland by Nobody: 12:01am On Feb 27, 2016
*This is interesting*
Re: The Greatest Programmer On Nairaland by seunthomas(op): 12:01am On Feb 27, 2016
airsaylongcon:
My word! You really are a windbag. A chatter box. I did not ask you to prove your competence when you asked me to solve your challenge
Ok ohhh. But you ask me a question, you cant solve it. Whats the point?? I explained the solution to question i asked you na. So if i concede this one can you explain it to me??
Re: The Greatest Programmer On Nairaland by airsaylongcon: 12:01am On Feb 27, 2016
asalimpo:
@Seunthomas
Take a deep breathe. Dont feel cornered.
Read up on structs (you say you're no novice to c), to refresh your memory. I sense that the strange/ugly syntax (*,->,struct) is getting to you!
Some one who has been programming since 1998 would have gone through basic,pascal, fortran, maybe COBOL before settling on Java php and python. Don't you think so? So a simple ugly looking C code should not intimidate him
Re: The Greatest Programmer On Nairaland by FincoApps(m): 12:02am On Feb 27, 2016
seunthomas:
I disagree with you. Its just that some languages are harder to do things in. This could be done in python in minutes-1 hour but may take sometime in c for me. It does not mean i dont know or mastered c.
Not quite. I put it to you that a C expert would do what ever you feel is harder with C without breaking a sweat.

A friend of mine working in BlackBerry once told me "The set of people that worked on Fb Ajax system probably don't know even 2 + 2". It's an exaggeration, but he meant they particularly studied only that part of web tech

Have you seen a Job listing from a company like BlackBerry or other Big companies ? See example in the screenshot... this is from BB I think

My point is, they require specific skills, you don't see them say applicants should be good in Java, C, C++ Javascript, Node, Php MySql, AngularJs etc like most smaller companies... common no one can master everything

Re: The Greatest Programmer On Nairaland by seunthomas(op): 12:04am On Feb 27, 2016
FincoApps:
Not quite. I put it to you that a C expert would do what ever you feel is harder with C without breaking a sweat.

A friend of mine working in BlackBerry once told me "The set of people that worked on Fb Ajax system probably don't know even 2 + 2". It's an exaggeration, but he meant they particularly studied only that part of web tech

Have you seen a Job listing from a company like BlackBerry or other Big companies ? See example in the screenshot... this is from BB I think

My point is, they require specific skills, you don't see them say applicants should be good in Java, C, C++ Javascript, Node, Php MySql, AngularJs etc like most smaller companies... common no one can master everything
You will be shocked. That you cant does not make it impossible for others. When you work for a company and your boss asks you to solve a problem in c/c++ or java or etc. Tell him "Boss common no one can master everything" lol. Anyway when you get to a point you find the middle qround and then comes understanding..
Re: The Greatest Programmer On Nairaland by airsaylongcon: 12:05am On Feb 27, 2016
seunthomas:
To be sure you know what you asked me to solve and not just checking answers in an online site, create a very simple struct with 2 integer members and a function;
struct individual {
int height;
int weight;
};

What do you want the function to do?
Re: The Greatest Programmer On Nairaland by Nobody: 12:05am On Feb 27, 2016
airsaylongcon:
Some one who has been programming since 1998 would have gone through basic,pascal, fortran, maybe COBOL before settling on Java php and python. Don't you think so? So a simple ugly looking C code should not intimidate him
I am very surprised too. A Programming Doctor with phd Programming since 1998 for that matter?
Re: The Greatest Programmer On Nairaland by seunthomas(op): 12:07am On Feb 27, 2016
airsaylongcon:
struct individual {
int height;
int weight;
};

What do you want the function to do?
Now look at your struct and see what you sent? Make comparison am waiting.....
Re: The Greatest Programmer On Nairaland by airsaylongcon: 12:10am On Feb 27, 2016
seunthomas:
Now look at your struct and see what you sent? Make comparison am waiting.....
You asked for a struct with integers. I provided

The struct I sent you involves pointers. You know what they are right?
Re: The Greatest Programmer On Nairaland by FincoApps(m): 12:10am On Feb 27, 2016
airsaylongcon:
Don't let him use u as excuse to dodge my question. Let me crush this "programming since 1998" programmer
Anytime I see this 1998 statement, I literally LAUGH OUT LOUD. It has been mentiond like 50 times on this thread but the OP only mistakenly said it once o cheesy
Re: The Greatest Programmer On Nairaland by seunthomas(op): 12:10am On Feb 27, 2016
airsaylongcon:
You asked for a struct with integers. I provided

The struct I sent you involves pointers. You know what they are right?
Is that a proper way for declaring a struct??
Re: The Greatest Programmer On Nairaland by Nobody: 12:12am On Feb 27, 2016
FincoApps:
Anytime I see this 1998 statement, I literally LAUGH OUT LOUD. It has been mentiond like 50 times on this thread but the OP only mistakenly said it once o cheesy
It is a fact now, phD programmer since 1998, is not a laughing matter at all. He is a real don. . .
Re: The Greatest Programmer On Nairaland by Nobody: 12:12am On Feb 27, 2016
airsaylongcon:
Why you dey run mouth? How many hours e take you to ask me your own?. I will modify this post with the question so look out

*modified*
A data structure is "built" using nodes. Each node has exactly two pointers that point to other nodes. None of the pointers is null. A C program is written to count how many nodes are accessible from any of the nodes in th data structure. The code use an "indicator" field (initialized to zero for all nodes). Correct the following code so that it works properly as it will not work in its current state

struct t (int i,m; struct t*b, *d)
int count(struct t*a)
{
If (a->m) return 0;
return count(a->b) + count(a->d)+1;
}
Bro you are good. Shikena, please keep quiet!
Let the real purpose of the thread be fulfilled.
Re: The Greatest Programmer On Nairaland by airsaylongcon: 12:12am On Feb 27, 2016
FincoApps:
Anytime I see this 1998 statement, I literally LAUGH OUT LOUD. It has been mentiond like 50 times on this thread but the OP only mistakenly said it once o cheesy
Someone who has been programming since that year is a veteran o! 16years in programming nobi beans
Re: The Greatest Programmer On Nairaland by seunthomas(op): 12:13am On Feb 27, 2016
dhtml18:
It is a fact now, phD programmer since 1998, is not a laughing matter at all. He is a real don. . .
Relax na. Since the guy did not even create a proper struct if i answer how can he mark it?? Can a teacher mark question that he does not know the answer?
Re: The Greatest Programmer On Nairaland by Nobody: 12:14am On Feb 27, 2016
seunthomas:
Is that a proper way for declaring a struct??
Yes it is, at least according to my knowlege of C, but you may not believe it, so check the link below:
https://en.wikipedia.org/wiki/Struct_(C_programming_language)
Re: The Greatest Programmer On Nairaland by seunthomas(op): 12:15am On Feb 27, 2016
Ok. Firstly your struct declaration is wrong. Even a struct with pointer to itself is not written like so.
Now i assuming i gave you the solution how would you know?
Re: The Greatest Programmer On Nairaland by FincoApps(m): 12:15am On Feb 27, 2016
dhtml18:
I am very surprised too. A Programming Doctor with phd Programming since 1998 for that matter?
This 1998 stuff ehn... you guys dhtml and airsaylongcon are not serious at all grin grin grin grin grin grin
1 2 3 ... 22 23 24 25 26 27 28 ... 39 Reply

The Most Popular Programmer On Nairaland 2016 Edition (verification Round)Seunthomas - The Greatest Programmer On NairalandThe most popular programmer on Nairaland 2016 Edition234

10 Reasons Why .NET Is Better Than JavaHow To Hack Your Girlfriend's Whatsapp And Fb AccountMeet Tanmay Bakshi, Boy Who Works For Google And Earns Over N450m Annually