Robbie Hatley's Solutions To The Weekly Challenge #269
For those not familiar with "The Weekly Challenge", it is a weekly programming puzzle with two parts, cycling every Sunday. You can find it here: The Weekly Challenge The Weekly Challenge for the week of 2024-05-12 through 2024-05-18 is #269. Its tasks are as follows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 269-1: Bitwise OR Submitted by: Mohammad Sajid Anwar You are given an array of 2-or-more positive integers, @ints. Write a script to find out if it is possible to select two or more elements of @ints such that the bitwise OR of those elements has at least one trailing zero in its binary representation. Example 1 input: (1, 2, 3, 4, 5) Expected output: true Say we pick 2 and 4; their bitwise OR is 6. The binary representation of 6 is 110. Return true since we have one trailing zero. Example 2 input: (2, 3, 8, 16) Expected output: true Say we pick 2 and 8; their bitwise OR is 10. The binary representation of 10 is 1010. Return true sinc