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
| #include <iostream> | |
| #include <utility> | |
| using namespace std; | |
| // templates are for losers! | |
| // (this is a part of task where templates is forbidden) | |
| typedef int ElementType; | |
| struct Node |
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
| #include <iostream> | |
| using namespace std; | |
| typedef int ElementType; | |
| const int maxSize = 101; | |
| class Stack | |
| { | |
| private: |
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
| #include <iostream> | |
| #include <stdexcept> | |
| using namespace std; | |
| // templates are for losers! | |
| // (this is a part of task where templates is forbidden) | |
| typedef int ElementType; | |
| class StackOnArray |
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
| #include <iostream> | |
| using namespace std; | |
| typedef int ElementType; | |
| struct Node | |
| { | |
| ElementType data; | |
| Node *next; |
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
| #include <iostream> | |
| typedef int ElementType; | |
| struct Node | |
| { | |
| ElementType data; | |
| Node *previous; | |
| Node *next; | |
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
| // | |
| // Created by PARTH GODHANI on 5/3/18. | |
| // | |
| #include<iostream> | |
| #include <list> | |
| using namespace std; | |
| class Graph { |
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
| #include <iostream> | |
| using namespace std; | |
| class Nodo { | |
| public: | |
| int dato; | |
| int fe; // factor de equilibrio | |
| Nodo* izquierdo; | |
| Nodo* derecho; |
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
| // Вставить в непустой список L, | |
| // элементы которого изначально упорядочены по не убыванию их значений, | |
| // новый элемент со значением E так, | |
| // чтобы сохранить упорядоченность элементов списка. | |
| // < Основной файл main.cpp > | |
| #include <iostream> | |
| #include <locale> | |
| #include "modulSpi.h" |
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
| // Вариант 39: | |
| // Подсчитать количество слов списка, | |
| // которые оканчиваются той же литерой, | |
| // что и следующее слово. | |
| // Brute-force: (Вариант 1) | |
| // пройтись по тексту -- преобразовать текст в список из слов | |
| // пройтись по списку -- посчитать слова | |
| // вывести счётчик |
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 ProblemSet01.Task_03 | |
| { | |
| using System; | |
| /// <summary> | |
| /// Class provides method for fancy array sorting | |
| /// </summary> | |
| public class ArraySorting | |
| { | |
| /// <summary> |
OlderNewer