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
from time import time | |
class Node: | |
def __init__(self, data, next_node = None): | |
self.data = data | |
self.next_node = next_node | |
class LinkedList: | |
def __init__(self): | |
self.first_node = None |
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 _5_0 | |
{ | |
internal class Person | |
{ | |
public string name = "hero"; | |
public int healthPoint = 44; | |
public Person(string name, int healthPoint) | |
{ | |
this.name = name; |
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 ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string[] firstArray = { "1", "2", "1" }; | |
string[] secondArray = { "3", "1" }; | |
List<string> list = new List<string>(); |
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 _4_3 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Dictionary<string, List<string>> Dossiers = new Dictionary<string, List<string>>() | |
{ | |
{ "lol", ["Иванов Иван Иванович", "Максимов Максим Максимович"] }, | |
{ "dota", ["Данилов Данил Данилович"] } |
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 _4_2 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
List<int> array = new List<int>(); | |
String userInput; | |
int num = 0; | |
bool isWork = true; |
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 _4_1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] array = { 12, 32, 42, 234, 234, 2, 123, 4, 4, 23, 4, 42, 34, 4323, 4 }; | |
Queue<int> amounts = new Queue<int>(array); | |
int amount, sum = 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
namespace _4_0 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Dictionary<string, string> items = new Dictionary<string, string>(); | |
items.Add("кружка", "крупный толстостенный стакан с ручкой"); | |
items.Add("ложка", "столовый прибор, отдалённо напоминающий небольшую лопатку"); | |
items.Add("тарелка", "плоское или вогнутое изделие из керамики, стекла, металла и иных материалов"); |
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 _3_4 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const ConsoleKey moveUp = ConsoleKey.UpArrow; | |
const ConsoleKey moveDown = ConsoleKey.DownArrow; | |
const ConsoleKey moveRight = ConsoleKey.RightArrow; | |
const ConsoleKey moveLeft = ConsoleKey.LeftArrow; |
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.Xml.Linq; | |
namespace _3_3 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string[] names = { | |
"Олегов Олег Олегович", |
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 _3_2 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] arrayOfInegers = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; | |
arrayOfInegers = Shuffle(arrayOfInegers); | |
for (int i = 0; i < arrayOfInegers.Length; i++) |
NewerOlder