Showing 3 of 6 questions
Find the minimum number of operations to reduce a given positive integer to 0. You can either subtract a power of 2 or add a power of 2 in each operation.
#1. Minimum Operations to Reduce an Integer to 0
You are given a binary tree. Place cameras on some nodes such that all nodes are either covered by a camera on itself, or on one of its parents or children. Minimize the number of cameras used.
#2. Binary Tree Cameras
Find the maximum number of lines you can draw between two arrays, where each line connects equal values at different indices and lines cannot cross. The goal is to maximize the number of uncrossed lines.
#3. Uncrossed Lines
Page 1 of 1 · 6 total