1
我有以下數據結構:找出哪些球員我已經見過
public class Match
{
public List<Player> Participants;
}
public class Player
{
public string Name;
}
現在,我得到下面的示例數據:
Match 1
- PlayerA
- PlayerB
- PlayerC
Match 2
- PlayerA
- PlayerB
- PlayerD
- PlayerE
根據這個數據,如果PlayerA
會想知道他打哪個球員的答案是PlayerB, PlayerC, PlayerD and PlayerE
。
我的問題是,現在什麼是最邏輯和易於查詢的數據結構,如果我想顯示哪個球員打了誰和多久。畢竟我要顯示給用戶這樣的圖表(超級油漆技能):
線具有每個球員保持一個'列表名稱' /他們見過的人的身份。對於*頻率*,'T'必須包含一個計數器 –
Plutonix