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 hintsTopics
Also asked at 5 companies
More Citadel Questions
Sliding Window MaximumHardPalindromic SubstringsMediumCount Palindromic SubsequencesHardBest Time to Buy and Sell StockEasyFind Median from Data StreamHard
View all Citadel questions