This file contains hidden or 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 BigO.Core; | |
| using BigO.Interfaces; | |
| using BigO.Models; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| namespace BigO |
This file contains hidden or 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.Collections.Generic; | |
| namespace BigO.Interfaces | |
| { | |
| public interface ISearch | |
| { | |
| string Execute(string path); | |
| IEnumerable<string> Execute(IEnumerable<string> paths); | |
| } | |
| } |
This file contains hidden or 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
| private static void BuildSearchData(int iterations) | |
| { | |
| // build 676 (26*26) unique 2 letter codes... | |
| List<string> pathParts = new List<string>(); | |
| for (char c1 = 'A'; c1 <= 'Z'; c1++) | |
| { | |
| for (char c2 = 'A'; c2 <= 'Z'; c2++) | |
| { | |
| pathParts.Add($"{c1}{c2}"); | |
| } |
This file contains hidden or 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
| namespace BigO.Models | |
| { | |
| public class Route | |
| { | |
| public string Path { get; set; } | |
| public string Endpoint { get; set; } | |
| } | |
| } |
This file contains hidden or 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.Text; | |
| namespace ConsoleApp1.EncoderTask | |
| { | |
| public interface IEncoder { | |
| bool Execute (char source, ref StringBuilder target); | |
| } | |
| } |
This file contains hidden or 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
| This is a test of the gist system... |