Available question text
Given an array and up to k doublings (multiply an element by 2 each time), maximize the bitwise OR of all elements by choosing where to apply the operations; the core challenge is selecting which element(s) to shift to set the most significant bits (n up to 1e5, k ≤ 15) and computing the resulting OR efficiently.
Related questions
Continue with questions that share topics or the same question type.
- All the Pairs With the Maximum Number of Common Followers
Coding
- Average Salary Excluding the Minimum and Maximum Salary
Coding
- Binary Tree Maximum Path Sum
Coding · Binary Tree · Depth-First Search · DP on Trees
- Build Array Where You Can Find The Maximum Exactly K Comparisons
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Microsoft
Leetcode 2680. Maximum OR
Reported Apr 26, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source