├── AlgorithmsAndStructures ├── GraphAlgorithms │ ├── SpanTree.cs │ ├── CheckOriented.cs │ ├── CheckParallelEdges.cs │ ├── VertexDegree.cs │ ├── Distances.cs │ ├── EdgeListsToMatrix.cs │ ├── Components.cs │ ├── MstPoints.cs │ ├── Game.cs │ ├── Mst.cs │ ├── BipartiteGraph.cs │ ├── TopSort.cs │ ├── HamiltonianPath.cs │ ├── Condensation.cs │ ├── Cycle.cs │ ├── Labyrinth.cs │ └── TwoChinese.cs ├── SimpleTasks │ ├── AplusB.cs │ ├── AplusBB.cs │ ├── Turtle.cs │ ├── SimpleSort.cs │ └── SorlLand.cs ├── AlgorithmsAndStructures.csproj ├── SortingAlgorithms │ ├── AntiQuickSort.cs │ ├── RadixSort.cs │ ├── MergeSort.cs │ ├── InversionsCount.cs │ ├── HeapSort.cs │ ├── SortForRunners.cs │ └── KStaticstic.cs ├── DataStructures │ ├── IsHeap.cs │ ├── Stack.cs │ ├── Queue.cs │ ├── PostfixNotation.cs │ ├── CorrectBracketSequence.cs │ └── PriorityQueue.cs ├── BST │ ├── BstHeight.cs │ ├── IsBst.cs │ └── Bst.cs ├── BinarySearch │ ├── Garland.cs │ └── BinarySearch.cs ├── HashTables │ ├── MySet.cs │ ├── MyMap.cs │ ├── MyLinkedMap.cs │ └── MyMultiMap.cs └── Quack │ └── QuackInterpreter.cs ├── AlgorithmsAndStructures.cpp ├── PrefixFunction.cpp ├── Floyd.cpp ├── Garland.cpp ├── SubStringSearch.cpp ├── KmpMachine.cpp ├── Dijkstra.cpp ├── DijkstraMatrix.cpp ├── AlgorithmsAndStructures.cpp.vcxproj.filters ├── NegativeCycle.cpp ├── Ford.cpp ├── TwoChinese.cpp └── AlgorithmsAndStructures.cpp.vcxproj ├── .gitattributes ├── AlgorithmsAndStrutures.sln ├── .gitignore └── README.md /AlgorithmsAndStructures/GraphAlgorithms/SpanTree.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace AlgorithmsAndStructures.GraphAlgorithms 6 | { 7 | class SpanTree 8 | { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AlgorithmsAndStructures/SimpleTasks/AplusB.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | namespace AlgorithmsAndStructures.SimpleTasks 5 | { 6 | class AplusB 7 | { 8 | public static void Solve() 9 | { 10 | int a, b; 11 | string[] input = File.ReadAllText("aplusb.in").Split(); 12 | a = Int32.Parse(input[0]); 13 | b = Int32.Parse(input[1]); 14 | File.WriteAllText("aplusb.out", Convert.ToString(a + b)); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /AlgorithmsAndStructures/SimpleTasks/AplusBB.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | namespace AlgorithmsAndStructures.SimpleTasks 5 | { 6 | class AplusBB 7 | { 8 | public static void Solve() 9 | { 10 | long a, b; 11 | string[] input = File.ReadAllText("aplusbb.in").Split(); 12 | a = Int64.Parse(input[0]); 13 | b = Int64.Parse(input[1]); 14 | long result = a + b * b; 15 | File.WriteAllText("aplusbb.out", Convert.ToString(result)); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /AlgorithmsAndStructures/AlgorithmsAndStructures.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp2.1 6 | 7 | 8 | 9 | 10 | Never 11 | 12 | 13 | 14 | 15 | 16 | Always 17 | 18 | 19 | Always 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /AlgorithmsAndStructures/SortingAlgorithms/AntiQuickSort.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Linq; 4 | 5 | namespace AlgorithmsAndStructures.SortingAlgorithms 6 | { 7 | class AntiQuickSort 8 | { 9 | private static void Swap