Maximum Total Damage With Spell Casting at Citadel

Medium45.0% acceptance

This problem has 87.5% frequency at Citadel.

Problem Description

A magician has various spells. You are given an array `power`, where each element represents the damage of a spell. Multiple spells can have the same damage value. It is a known fact that if a magician decides to cast a spell with a damage of `power[i]`, they **cannot** cast any spell with a damag...

Read full problem and hints

Topics

Also asked at 5 companies


More Citadel Questions

View all Citadel questions