Found at: https://bitbucket.org/atadrala/linqworkshop
- Ex1_CalculateAverageLengthOfWords: Calculate the average length of the provided words.
- Ex2_ConcatenatesInArrayWithColonSeparator: Concatenate numbers
1..10into a comma-separated string (without loops and withoutstring.Join). - Ex3_SelectAllDistinctCharactersFromWordListInAscendingOrder: Get all distinct characters from all words and return them sorted ascending.
- Ex4_ForeachCharCountWordsThatStartsWithIt: Build a mapping of character -> number of words starting with that character.
- Ex5_SplitListInToListOfListEachContainingThreeSubsequentElements: Split alphabet characters into chunks of 3 (last chunk may be smaller).
- Ex6_CalculateCategoryAveragePrice: Join categories and products and calculate average product price per category (0 for empty categories).
- Ex7_CalculateTriangleSolutionNumberLessThen100: Count Pythagorean triples
(a,b,c)wherea^2 + b^2 = c^2and0 < a,b,c <= 100. - Ex8_CalculateFiftiethFibonacciNumber: Compute the 50th Fibonacci number.
- Ex9_CalculatePolynomialValue: Evaluate a polynomial at a point based on coefficient/power pairs.
- Ex10_SelectGreatestProductFromGrid: Find the greatest product of four adjacent numbers in a 20x20 grid (horizontal, vertical, diagonal).