Could Someone tell the optimal approach

Правка en3, от AJ__20, 2023-06-04 07:08:06

You are given an array of strings A of size N. You need to pick two strings Ai and Aj such that len(Ai)* len(Aj) is maximized. Thanks in advance. Edit : Sry, forgot to add the constraints : there was a condition stating those two strings should have no common characters, then what would be the optimal solution ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский AJ__20 2023-06-04 07:08:06 64
en2 Английский AJ__20 2023-06-04 06:58:23 170
en1 Английский AJ__20 2023-06-02 21:52:39 252 Initial revision (published)