Showing 3 of 45 questions
Given a tree with weighted nodes, determine the maximum number of connected components you can form by removing edges such that the sum of node values in every component is identical.
#1. Create Components With Same Value
Given two binary strings of the same length, determine if you can make them equal by repeatedly applying bitwise operations to pairs of bits. You can transform any adjacent or chosen bits using specific logical rules to match the target string.
#2. Apply Bitwise Operations to Make Strings Equal
Given an array of integers and an integer representing the number of operations, you can distribute bits between elements to maximize the sum of their squared values. Return the maximum possible sum after applying the operations efficiently.
#3. Apply Operations on Array to Maximize Sum of Squares
Page 1 of 1 · 45 total