Examness

Intermediate C#

2 अभ्यास · सिखाने के क्रम में

  1. 1Squares of evens, with LINQWrite `static List<int> EvenSquares(List<int> nums)` returning the squares of the even values, preserving order.WhereSelectmethod chains9m
  2. 2Word frequenciesWrite `static int MaxWordCount(string text)` returning how many times the most frequent word appears. Split on spaces, compare case-insensitively. Empty text returns 0.DictionaryTryGetValueSplit10m