[LeetCode] Shortest Subarray With OR at Least K I

3095. Shortest Subarray With OR at Least K I

You are given an array nums of non-negative integers and an integer k.

An array is called special if the bitwise OR of all of its elements is at least k.

Return the length of the shortest special non-empty subarray of nums, or return -1 if no special subarray exists.

Read more
[AtCoder] G - Smaller SumRead more
[AtCoder] F - Negative Traveling SalesmanRead more
[AtCoder] F - Hop SugorokuRead more
[AtCoder] A - Shuffle and mod KRead more
[AtCoder] F - Christmas Present 2Read more
[Hacker Earth] Sherlock holmes and The temple MysteryRead more
[Hacker Earth] Lucky String JackpotRead more
[Hacker Earth] Roy and SweetsRead more
[Hacker Earth] TerminatorsRead more