Leetcode with dani – Telegram
Leetcode with dani
1.31K subscribers
196 photos
14 videos
56 files
240 links
Join us and let's tackle leet code questions together: improve your problem-solving skills
Preparing for coding interviews
learning new algorithms and data structures
connect with other coding enthusiasts
Download Telegram
Happy new year 🎊🎊
4
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
😭
2
6
🧠 The Green-Eyed Prisoners Puzzle

100 people, all perfect logicians, are imprisoned on an island by a dictator.

Each prisoner has either green or non-green eyes, but no one knows their own eye color.

Rules:

Any prisoner may ask to leave at night.

If their eyes are green, they are freed.

If not, they are executed.

No one ever guesses.

Prisoners cannot communicate.

There are no mirrors or reflections.

Every morning, they see each other during a head count.

In reality, all 100 prisoners have green eyes.

You are allowed to make one statement, spoken to everyone at the same time, without giving new information. what should u tell them to make them free ?

You say:

“At least one of you has green eyes.”

Nothing seems to change.

But on the 100th night, all prisoners ask to leave and are freed.

Why does this happen?
Why do they all leave on the same night?
2
let me share u some internships
🔥10
"እነሆ በዳዊት ከተማ መድሃኒት ተወልዶላችኋል!"

ለመላው የክርስትና እምነት ተከታዮች በሙሉ እንኳን ለጌታችን ለመድሀኒታችን ለኢየሱስ ክርስቶስ የልደት በዓል በሰላም እና በጤና አደረሳችሁ ።


መልካም የገና በዓል ❤️

@leetcodeQ
13❤‍🔥1
🔥7😭1
Leetcode with dani
Photo
Ishow speed will be in Ethiopia after 1 hour
Forwarded from Kal Dumps | 加油
🤣13