₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,427 members, 8,445,438 topics. Date: Wednesday, 15 July 2026 at 04:53 AM

Toggle theme

DONADAMS's Posts

Nairaland ForumDONADAMS's ProfileDONADAMS's Posts

1 2 3 4 5 6 7 8 ... 66 67 68 69 70 71 72 73 74 (of 97 pages)

Music/RadioRe: Korede Bello – My People Ft. Lil Kesh (Video) by DONADAMS(m): 12:27pm On Sep 02, 2017
Korede my guy
Science/TechnologyRe: A Colossal Asteroid "Florence" Will Cruise By Earth Today, Visible To Human Eyes by DONADAMS(m): 12:17pm On Sep 02, 2017
alienware:
.
You look broke.. Dirty background and inferior top.
lol..i dont remember telling you i'm rich..thanks for the compliment tho.. Cheers!
Forum GamesRe: Who Is The Survivor In The Puzzle? by DONADAMS(m): 11:21am On Sep 02, 2017
Enouwem:
73 is the answer!

How?

Consider a case when there 2^numbers in circle. Each time the number reduces by half and finally at the last number 1 will remain.
example – 2^2 = 4
round 1 – 2 and 4 will be killed.
round 2 – 3 will be killed. One Remains

So our aim here should be to reach to a figure when 2^n number will come and person who will be holding the sword at that moment will survive.

when there are 100 people – closet 2^number will be 64.
so here our target it to find the person who is holding the sword when 64 people are remaining.

64 people remaining means 36 people killed.
As every alternate person is being killed so double of 36 i.e 72. So 72 person was killed at that moment and the sword was passed to 73 from 71 after killing 72.

so the moment when 64 people were remaining, 73 was holding the sword,
so 73 will survive the killings!!!

.
.
.
.
.

OR,

Use the Circular Left Shift method

There are 100 people.
100 in binary is 1100100.
Circular left shift 1100100.
We get 1001001.
Convert it back to base 10.
73rd is the last man standing.


OR,

MATHAMATICAL WAY THAT EVERY NIGERIAN WILL UNDERSTAND

First 1,3,5,7,9,11,13,15,17;19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99(got sword, passed to 1)

Then 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97(sword passed to again)

Then 1,9,17,25,33,41,49,57,65,73,81,89,97(sword passed to 9)

Then 9,25,41,57,73,89(sword passed to 9 again)

Then 9,41,73(sword passed to 9 again)

Then 9,73(73 got sword & killed 9)

Thus the answer is “73"



Oh! And for the programmers or coders.

PYTHON CODE

# find the survivor
n = 100
peeps = range(1, n+1)
idx = 0
while len(peeps) > 1:
peeps.pop((idx + 1) % len(peeps))
# Trivia: because of changing index and len(peeps),
# the code below is not exactly equal to "idx = (idx + 1) % len(peeps)"
idx = 0 if (idx >= len(peeps)-1) else (idx + 1)

print peeps[0]


Output: 73


JAVASCRIPT

// populate the array for 100 people
var team = new Array();
for (var i = 1; i <= 100; i++) {
team[i - 1] = i;
}

var current;
var next;

var j = 0.
while (team.length > 1) { // loop until only 1 exists
current = team[j];
team.push(team[j]); // move current to the end
team.shift(); // remove from existing
next = team[j];
team.shift(); // delete next
document.writeln("Number " + current + " kills number " + next + "<br />"wink;
}
document.writeln("The last one is number " + team[0]);
//alert(team[0]);
na was oh...tiri gbosa for you!!!
Science/TechnologyRe: A Colossal Asteroid "Florence" Will Cruise By Earth Today, Visible To Human Eyes by DONADAMS(m): 11:10am On Sep 02, 2017
Nothing we no go see
RomanceRe: Man Or Woman: Who Cries More When Relationship Breaks? by DONADAMS(m):
girls oh...truth be told,,I've cried over a girl oh.. buh na fake one,that was wen I got admitted into the university and she was still home,,told her i'uld be leaving soon...she cried like madt!!out of pity na so I start to shed one one drop of tear make she no talk say I no love her...secondary school days sha...later broke up on ethnic grounds sha...buh the next girl after her really entered deep into me...the day she broke up with me ehn,,I couldn't eat very well for days and I'll always wake up midnight thinking..I couldn't believe it...buh cryhuhi dont think so...love no good oh
EducationRe: Bayero University Kano Post-UTME 2017/2018 Aptitude Test Announced by DONADAMS(m): 10:14pm On Aug 31, 2017
Naijacost22:
Nonsense. No be school where aboki they get 100 for jamb and still get admitted to do Mechanical engineering and Medicine? Abeg this secondary school standard university should be begging Southerners to come give the school value.

Edit: If you no like my post please go drink rat Poison. I dey wait you for my house, come fight me.
exhibition of monumental ignorance for free!!...emancipate your self ASAP!
CelebritiesRe: Follower Compares Hushpuppi To Bill Gates, Hushpuppi Blasts Her by DONADAMS(m): 5:34pm On Aug 31, 2017
shey them dey use etisalat for Malay??
CrimeRe: Russian Woman Set Up By Her Nigerian Lover, Caught With Cocaine. by DONADAMS(m): 5:13pm On Aug 31, 2017
INVINCIBLECSP:
the screen shot on the first page. U will see it
bro,,I didn't see any
RomanceRe: 'Edo Ladies In Italy Have Sex In The Bush, I'm Ashamed Of Them" - Edo Guy by DONADAMS(m): 5:06pm On Aug 31, 2017
bet why is he smiling?
CrimeRe: Russian Woman Set Up By Her Nigerian Lover, Caught With Cocaine. by DONADAMS(m): 5:02pm On Aug 31, 2017
INVINCIBLECSP:
I was hoping to read lots of comments as usual from my fellow NLs, but you guys have failed me. Everybody is rushing to the site with free recharge card and data. Poverty still looms in this country. SMH
biko,,na which site be that?
CrimeRe: Three Hunters Who Killed Antelopes In Bauchi Arrested & Jailed (Photos) by DONADAMS(m): 4:53pm On Aug 31, 2017
Balkan:
The law is actually made for the poor. I dont know what is wrong with Africans especially Nigeria.
A bush meat that does not belong to anybody. This poor men killed to have a living you jailed them.
may God look upon you and Judge.

People are stealing billions of Naira everyday and you celebrate them.
when is killing Bush meat a crime in Nigeria?

Afonja God is watching you.
lol..very funny..buh wetin carry afonja enter this matter?
FamilyRe: Mothers And Daughters Who Look The Same Age (Unbelievable Photos) by DONADAMS(m): 1:11pm On Aug 31, 2017
explorers...bia,,I refuse to believe this...lol..nothing person no go see...never knew omo sexy's daughter is this grown
CelebritiesRe: 9ice To NBC: "I Am Releasing More Songs You Will Have To Ban" by DONADAMS(m): 1:04pm On Aug 31, 2017
he should go and sit down jare...he has outlived his usefulness
CrimeRe: Female Journalist Attacked And Beaten In Owerri By Rampaging Hoodlums (Photos) by DONADAMS(m): 1:03pm On Aug 31, 2017
CellTabRepair20:
What is happening in Owerri biko
'Ember' Months are here. Did you finally get that job yet? Before the year ends U can still make real cool cash fixing high-end stuff.
Get "Mobile Phones and Tablets Repairs: A Complete Guide..." book and see how useful it is for your training

Don't waste the next 3 months. Click link below
the links isn't connecting
PhonesRe: Phone Engineers On Nairaland Willing To Assist You - Part II by DONADAMS(m): 10:34pm On Aug 30, 2017
please how much do I fix m-horse S72 touch pad?..thanks
CelebritiesRe: Tboss Idowu On Set Of "Death Island” (Photos) by DONADAMS(m): 4:42pm On Aug 30, 2017
martha89:
Dont mind them, they cant tell the difference between being on set and real life. She is transformed to look ulgy because of the role she is playing.
cool
martha89:
Dont mind them, they cant tell the difference between being on set and real life. She is transformed to look ulgy because of the role she is playing.
absolutely!
CelebritiesRe: Tboss Idowu On Set Of "Death Island” (Photos) by DONADAMS(m): 4:22pm On Aug 30, 2017
Spadelicious:
SO THIS IS WHAT TBOSS REALLY LOOKS LIKE WITHOUT ALL THAT PILE OF MAKE UP? WONDERS. SHE IS JUST TOO ORDINARY TO THE POINT OF BEING UNATTRACTIVE
you definitely did not watch BB naija...
PoliticsRe: Donald Trump Is To Visit Nigeria For Biafra Talk - Channels TV by DONADAMS(m): 1:22pm On Aug 30, 2017
LMAO!!these people are funny!!
CultureRe: Glo Renews Sponsorship Of Ofala Festival For The Next 3 Years by DONADAMS(m): 12:54pm On Aug 30, 2017
PearlStreet:
General Tukur Buratai is the sponsor of this year's Nsala day.

He has a lot of surprises for you guys. cheesy cheesy
lmao!!!!!!!
CultureRe: Glo Renews Sponsorship Of Ofala Festival For The Next 3 Years by DONADAMS(m): 12:53pm On Aug 30, 2017
they'll turn this thread to an e-war battle ground..watch and see
EducationRe: UNN Rejects Jamb's 120 Cut-off Mark, Fixes Post-utme Dates by DONADAMS(m): 12:52pm On Aug 30, 2017
now..that's good
EducationRe: ASUU Gives FG 6 New Conditions To End Strike by DONADAMS(m): 11:38am On Aug 30, 2017
this people no know say buhari no 1 hear anything about TSA.. na that one be him major problem..he'll never exempt them from the TSA
CrimeRe: Air Force Operatives Descend On Tax Force Men In Calabar. Photos by DONADAMS(m): 11:29am On Aug 30, 2017
Nigeria!BTW is task force please...buh na wa oh..ordinary task force 1 arrest soldier for this Nigeria??these people seem to forget easily that we are in Nigeria
CelebritiesRe: Toke Makinwa And Toyin Aimakhu Spotted On Set [PICS] by DONADAMS(m): 11:26am On Aug 30, 2017
these two gets me confused...I don't even know thier faces sef
SportsRe: Conor Mcgregor Set To Overtake Cristiano Ronaldo On Forbes Athlete Rich List by DONADAMS(m):
mc Gregor can never overtake ronaldo...why??he's been fighting since God knows when..yet nobody knows him,,he only became this rich cos he fought with the best...he can never..I mean never make this much money if he fights any other person.. it's that simple
PhonesRe: Which Data Subscription Or Free Browsing Are U Using now by DONADAMS(m): 9:20pm On Aug 29, 2017
Sunkyphil:
no zapping
sure?? then I'll opt for it
PhonesRe: Which Data Subscription Or Free Browsing Are U Using now by DONADAMS(m): 9:19pm On Aug 29, 2017
Rick9:
I just tire oh, e be like I go gat to stop am dey buy from mtn direct.
me sef dey think am..haba..this SME data no dey last @all
PhonesRe: Which Data Subscription Or Free Browsing Are U Using now by DONADAMS(m): 12:59pm On Aug 29, 2017
Sunkyphil:
Airtel 150% data bonus 1k for 3.75gig
1k for 3.75gbhuhthe zapping no go be 4 here
PhonesRe: Which Data Subscription Or Free Browsing Are U Using now by DONADAMS(m): 12:56pm On Aug 29, 2017
Rick9:
Same here jare I buy more than 4 times in a month
same here too..the thing don taya me..I done it more than thrice this month..and I only use it for WhatsApp,nairaland,little fb
Nairaland GeneralRe: NIMC: National ID Card Pre-enrolment Portal Issues by DONADAMS(m): 12:27pm On Aug 29, 2017
TourismMan:
The country needs total deliverance rather. Waiting to receive ID card from any govt agency in this country especially one thrown open to the general public, is like waiting to see the day Dangote will be feeding from waste bins because he has gone so broke.
lol..very funny!!!I begin to wonder when we'll develop if simple things like this can take more than 5years..

1 2 3 4 5 6 7 8 ... 66 67 68 69 70 71 72 73 74 (of 97 pages)