Skip to content

cieciurm/linq-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LINQ Workshop

Found at: https://bitbucket.org/atadrala/linqworkshop

Exercises summary (per test)

  • Ex1_CalculateAverageLengthOfWords: Calculate the average length of the provided words.
  • Ex2_ConcatenatesInArrayWithColonSeparator: Concatenate numbers 1..10 into a comma-separated string (without loops and without string.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) where a^2 + b^2 = c^2 and 0 < 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).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages