879
reputation
2
9
19

VLAZ
Loading…

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

1
answer
2
questions
~12k
people reached
  • Member for 6 years, 3 months
  • 36 profile views
  • Last seen yesterday

Top tags (6)

Score 17
Posts 2
Posts % 67
Score 17
Posts 2
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (3)

Badges (30)

Gold

2

Rarest

Silver

9

Rarest

Bronze

19

Rarest