₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

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

Toggle theme

Airsaylongcon's Posts

Nairaland ForumAirsaylongcon's ProfileAirsaylongcon's Posts

1 2 3 4 5 6 7 8 ... 72 73 74 75 76 77 78 79 80 (of 139 pages)

ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:59pm On Feb 26, 2016
dhtml18:
Simply conceding defeat would have been less-shameful.
Funny thing is despite me allowing him have a second try and effectively reducing his choice to just A or C he has gone ahead to make B his final choice. The question asked for which of the following is NOT true. Is it not true that for a recursive procedure to work there must be a path that is not recursive?
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:53pm On Feb 26, 2016
guru01:
B is my choice answer.
Your answer is very wrong. WRONG in capital letters. The question says which of the following IS NOT true. Every recursive function that terminates MUST have a path that is not recursive.
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:37pm On Feb 26, 2016
guru01:
Is my answer correct or not?
Mr. talkative.
Your answer is wrong. And it seems like you are guessing
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:36pm On Feb 26, 2016
guru01:
So you know how to explain the question better and you are here talking too much?
Please explain the question better if you can.
A procedure "CallBack" is recursive for *some* inputs. If this procedure is guaranteed to terminate, then which of the following is not true.

a) CallBack has a local variable
b) CallBack has an path of execution where it is not recursive (doesn't call itself)
C) CallBack refers to a global variable or has one or more parameters

The name of the procedure (or function if you like) is CALLBACK.

This procedure is recursive if it gets certain values (eg 3 or 7 or 199 etc)
For other values it is not recursive.

Irrespective of whether it gets a value that makes it recursive or not recursive it WILL terminate.

Which of the options in A-C is not true given the above qualities of the procedure
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:30pm On Feb 26, 2016
FincoApps:
So disappointed in the simplicity of this question sad. Or are you simply just purposely under estimating your opponent ?
He only gets one shot. He has tossed his shot. I get only one shot. I have tossed mine
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:29pm On Feb 26, 2016
guru01:
Sorry, you question is not clear enough to me.
But i think B is the correct answer.
Am i correct or not.
You *think*? Or B is your answer? And would you like me to explain the question better?
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:27pm On Feb 26, 2016
seunthomas:
Its not about memory, but about someone writing code that would exploit your system because of that code you just wrote. That is why we have hackers exploiting systems because we write bad code na. We are all guilty.....
When dhtml18 said you kept shifting the goal post I thought he was lying but this right here is proof. Initially you said I couldn't write the code. I wrote it and purposely chose C a rarely used language. Now your excuse is that the code is insecure. Where we talking about secure code? Or code that works? Who told u I don't want my system hacked? I want it hacked.

Now yes or no does my code work? Is it functionally correct?
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:24pm On Feb 26, 2016
Guru01

You gave me a question at 2:46pm and at 2:48pm I had a solution ready. I gave you mine at 3:14pm and 10mins after you are still silent. Is everything OK?
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:21pm On Feb 26, 2016
seunthomas:
Oya make i explain myself na before you crucify me. In programming especially in statically typed languages it is always recommended to declare every type before using it. Although code works fine but you did not define the type of i in your loop. Na wahala be dat ohhhh. It will work ohh but you may get segmentation fault or memory corruption.
Semantics. I have abundance of memory I don't care about segmentation fault or memory corruption. The koko is that the almighty problem he gave me was solved. Is this true or not? Wasn't he the same person that you alleged will kill me with an unanswerable question?
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:14pm On Feb 26, 2016
Guru01

Here's you question

A procedure "CallBack" is recursive for *some* inputs. If this procedure is guaranteed to terminate, then which of the following is not true.

a) CallBack has a local variable
b) CallBack has an path of execution where it is not recursive (doesn't call itself)
C) CallBack refers to a global variable or has one or more parameters
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:11pm On Feb 26, 2016
seunthomas:
Na which kind code you write? You go crash ya system ohhh. See memory corruption in the making.....
Hear what you master said when I asked him if my code was correct.

guru01:
I said your answer is ok.
It seems you like talking abi....
So please critique my code
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:06pm On Feb 26, 2016
guru01:
Waiting for your next question.
You haven't told me if my answer is correct or not.
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:03pm On Feb 26, 2016
seunthomas:
Na with mouth you write am? Show us the code na.... Oga warehouse manager
Seunthomas you should learn to read before talking.

Here it is again

Off the top of my head

#include <stdio.h>
int main()
{
char str[100],i;
printf("Enter a string: \n"wink ;
scanf("%s",str);

for(i=0; str[i]!='\0'; ++i);
printf("\nLength of input string: %d",i);

return 0;
}

I have assumed that the maximum length of any string entered is 100. This can be modified upwards or downwards.

I have used '\0' to indicate end of the thread
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:01pm On Feb 26, 2016
guru01:
Ok.
OK means what? That my code is incorrect?
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 3:00pm On Feb 26, 2016
dhtml18:
Here is the solution in PHP (and i can rewrite it nothing less than 20 languages - but that will just be showing off)
I've written mine in C. Let him come and scrutinise it. I even thought he was going to hit me with a very hard question. Anyway you only get one shot and he has had his shot. I am still gonna ask him the same question I asked seunthomas
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:48pm On Feb 26, 2016
guru01:
Write a program that computes the length of a given string with out using the inbuilt string length function of that language.
Duration?

*modified*
Off the top of my head

#include <stdio.h>
int main()
{
char str[100],i;
printf( "Enter a string: \n" ) ;
scanf("%s",str);

for(i=0; str[i]!='\0'; ++i);
printf("\nLength of input string: %d",i);

return 0;
}

I have assumed that the maximum length of any string entered is 100. This can be modified upwards or downwards.

I have also used '\0' to indicate the end of the string
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:47pm On Feb 26, 2016
seunthomas:
dat one na question? abi you wan make i expose you like your broda. See na me and larry page write google ohhh. I sabi all where your secret dey na.
Go and Google it. That's what I expected you to have done since.
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:45pm On Feb 26, 2016
seunthomas:
You own don finish be dat na. Abeg @guru01 take am easy no kill am ohh. na only am him mama born.....
I beat you once already. You alter ego will be no match. You ran your mouth asking me for a battle now you want your friend to battle me? I will give him the same question I gave you.
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:40pm On Feb 26, 2016
guru01:
Lol, stop telling me you are a project manager.
If your agree to be a programmer, I will battle you.
I am a programmer. Let's battle
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:39pm On Feb 26, 2016
seunthomas:
If guru01 beat you i know dey there ohhhhh. You know say your mouth too sharp...
Oh so guru01 is your boss. Cos you failed to beat me you think he can? Someone hiding under "I am Web programmer" wants to beat me? Guru01 please let's battle na
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:38pm On Feb 26, 2016
seunthomas:
Please just write a prolog module to excommunicate yourself from this thread abi make i write am for you??>
Write the Prolog module. If you fit write am then you are good. I will agree that you have solved at least one challenge from me
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:36pm On Feb 26, 2016
seunthomas:
I like the fact you want to be my shadow, but na by force??
Why don't you take up my challenge and prove without reasonable doubt that I'm in your shadow? Or is it that you don't know the answer? I can give you a less difficult one of Dr. SEUNTHOMAS (PhD Programming 1998)
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:34pm On Feb 26, 2016
guru01:
We are not the same, you are a prolog project manager, and am a web programmer. Simple.
Point of correction. Prolog is a language I'm using on a side project. As a hobby. My day job I project manage an ERP written in python and a WMS written in C# and ASAP. NET. I am not a day-by-day developer.

So whether you develop in php or I develop in qbasic the underlying thing is that given a problem we should be able to solve it irrespective of the language we speak.

I ask again are you interested in battling me? Yes or No?
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:30pm On Feb 26, 2016
seunthomas:
Were dat confusionist @airsaylongcon abi dem don give am life sentence too??
I'm still here. I ain't going anywhere. I'm you lifetime nightmare.
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:28pm On Feb 26, 2016
dhtml18:
And I am back with a bang. . . . . . . . . . . . . .
Seunthomas your nemesis is here. Fresh from jail with hot pepper for u. 15 pages on a code battle thread and the op has not come out victorious. The challenge I gave seunthomas and his protégé were pinched from a question bank used to screen graduate recruit Trainees who want to work as software developers at a multinational software company. Shame how they have both underperformed despite their bragging.
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 2:07pm On Feb 26, 2016
donjayzi:
The OP was the one solving the challenge, i just ehm assisted him a bit by modifying his code
He put up a shitty code that you have made more operational. If he was the top coder that he was he would have seen that the question was for a generic range and as such he cannot assume a range of 1 to 1000 (actually 2 to 1000 as his loop started at i=2). Just like I asked his friend larisoft for the worst case scenario for an insertion sort on a k-sorted array and he hurriedly gave me the best case scenario.

Programming is about problem solving and no matter how elegant your solution is if it doesn't completely solve the problem then it is a failed code and the coder is a Dundee United
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 1:52pm On Feb 26, 2016
donjayzi:
If we were to allow the user to determine the range i.e without hard-coding, the whole thing becomes:



And you get an output like:



@op, it is your code still. . . .so i leave you to satisfy the remaining conditions like validating the range
Better refinement of the code. However is say start of 20 and end of 5 not a valid range? Aren't there prime numbers in that range? Will your code be able to handle such a situation?

Note: When we do QA validation this is how we pick code apart until we resolved issues
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 1:48pm On Feb 26, 2016
guru01:
This big for nothing are you still here insulting yourself?
See buffoon ó! Your master nor reach, na you minuscule ant? Do you want to challenge me too?
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 1:47pm On Feb 26, 2016
seunthomas:
Dont worry feel in the blank space. An IOS app needs to land in the store before mid march....
See am as e dey run! Coward. Anyway you just conceded that u can't solve my challenge so I can understand your inability to handle basic stuff
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 1:39pm On Feb 26, 2016
seunthomas:
I dont mind you fork my code as long as you have done the right things na. Informed me say na me get the code and as well make a positive impact by doing what i did better. Na progress be dat na. Unlike some people who just jump from left to right @airsaylongcon i know your problem ohh but i wish i had a solution. Your case don enter market already...
Thanks for conceding that you haven't got a solution to the problem I gave you. Case closed. Now can you throw your own challenge?
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 1:37pm On Feb 26, 2016
donjayzi:
Order! Order in the court!!
*where is my hammer*
You go break person head o!
ProgrammingRe: The Greatest Programmer On Nairaland by airsaylongcon: 1:36pm On Feb 26, 2016
seunthomas:
Now you dey form Gentleman abi? We all know you are not na.
OK I'm not a gentleman. Are you gonna take up my challenge? Yes or No?

1 2 3 4 5 6 7 8 ... 72 73 74 75 76 77 78 79 80 (of 139 pages)