2,304
reputation
1
7
22

VLAZ

To be, or not to be, that is the question

Translating it into code, we get

theQuestion = 2b || !2b

This returns true for any value of 2b, making the evaluation redundant. We can optimise it by removing the expression and substituting with the result.

theQuestion = true

5
answers
8
questions
~7k
people reached
  • Member for 2 years, 11 months
  • 163 profile views
  • Last seen 1 hour ago

Top tags (28)

Score 42
Posts 5
Posts % 38
Score 17
Posts 2
Score 16
Posts 2
Score 16
Posts 2
Score 16
Posts 2
Score 9
Posts 2

Top posts (13)

View all questions and answers

Badges (30)

Gold

1

Rarest

Silver

7

Rarest

Bronze

22

Rarest