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
| public interface IHeap<T> where T : IComparable<T> | |
| { | |
| static abstract List<T> Heapify(List<T> collection); | |
| void Push(T element); | |
| T Pop(); | |
| T Peek(); | |
| int Count { get; } | |
| bool IsEmpty { get; } | |
| } |
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
| var path = @""; | |
| if (!Directory.Exists(path)) | |
| { | |
| throw new ArgumentException("Invalid directory path"); | |
| } | |
| PrintFileSystemEntries(path); | |
| return; | |
| void PrintFileSystemEntries(string path) | |
| { |
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
| void BFS(string startingPath) | |
| { | |
| var paddingFactor = 2; | |
| var paddingMultiplier = 1; | |
| var format = (int padding, string arg1, string arg2) => String.Format("{0}: {1}", arg1.PadLeft(padding * paddingMultiplier, ' '), arg2); | |
| var traversalQueue = new Queue<DirectoryWithMeta>(); | |
| traversalQueue.Enqueue(new DirectoryWithMeta(path, 0)); | |
| while (traversalQueue.Count != 0) |
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
| .cm-s-obsidian .list-bullet::after { | |
| content: ''; | |
| width: 7px; | |
| height: 7px; | |
| border-radius: 50%; | |
| background-color: var(--text-muted); | |
| position: relative; | |
| z-index: 1; | |
| box-shadow: none; | |
| /* explicit reset */ |