This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def build_root(self, iterable): | |
collection = list(iterable) | |
assert(len(collection) != 0) | |
if len(collection) % 2 != 0: | |
collection.append(collection[-1]) | |
collection = [self.__Node(self.digest(x)) for x in collection] | |
return self.__build_root(collection) | |
def __build_root(self, collection): | |
size = len(collection) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Wintellect.PowerCollections; | |
public class Organization : IOrganization | |
{ | |
MultiDictionary<string, Person> people = | |
new MultiDictionary<string, Person>(true); |