Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // реализовать метод, который разбивает IEnumerable на несколько IEnumerable меньшего размера n
- // items = [1 2 3 4 5], n = 2
- // result = [ [1 2] [3 4] [5] ]
- //
- // items.Count() <= 1_000_000_000
- // n <= 100
- using System.Collections.Generic;
- public class Extensions
- {
- public static IEnumerable<IEnumerable<T>> Split<T>(IEnumerable<T> items, int n)
- {
- }
- }
Add Comment
Please, Sign In to add comment