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; | |
namespace DataStructuresLab | |
{ | |
class Node<K, V> where K : IComparable where V : IComparable | |
{ | |
private K key; | |
private V data; | |
public Node<K, V> rightNode; | |
public Node<K, V> leftNode; |
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
#include <iostream> | |
using namespace std; | |
class Sort { | |
private: | |
bool isSorted = false; | |
char* sortedBy; | |
int* data; | |
int n, c = 0, m = 0; |
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
#include <iostream> | |
using namespace std; | |
class Arg | |
{ | |
private: | |
int _n; | |
int _a; | |
Arg* _der; |
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
#include <string> | |
using namespace std; | |
struct Stack | |
{ | |
char x; | |
Stack* prev; | |
}; |
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
#include <fstream> | |
#include <iostream> | |
using namespace std; | |
struct Node | |
{ | |
float x; | |
Node* prev; | |
Node* next; |
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
#include <fstream> | |
#include <iostream> | |
using namespace std; | |
typedef Node* pnode; | |
void addFirst(pnode &first, int x); | |
void addLast(pnode &last, int x); | |
void createList(pnode &first, ifstream &f, char* name); |
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
/* | |
Дан текстовый файл f. | |
Слова в файле разделены одним или группой пробелов. | |
Удалить из файла все однобуквенные слова и лишние пробелы. | |
Результат записать в файл g. | |
*/ | |
#include <iostream> | |
#include <fstream> | |
#include <string> |
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
/* | |
Дан файл f, компоненты которого являются целыми числами. | |
Число компонент файла делится на 2n. | |
Записать в файл g наибольшее значение первых 2n компонент файла f, затем следующих 2n и т.д. | |
*/ | |
#include <iostream> | |
#include <fstream> | |
using namespace std; |
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
#include <iostream> | |
using namespace std; | |
int b_max(int b1[]) //Èùåì íàéáîëüøèé ýëåìåíò âåêòîðà | |
{ | |
int max1; | |
max1 = b1[0]; | |
for (int i = 1; i < 5; i++) | |
{ | |
if (b1[i] > b1[i - 1]) |
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
{ | |
"name": "someModule", | |
"environment": "webSite", | |
"layouts": { | |
"layouts.column1": { | |
"depends": [ | |
"yii.jquery" | |
], | |
"files": { | |
"js": [ |
NewerOlder