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
matrix = [[1, 2, 3, 4], | |
[5, 6], | |
[], | |
[7, 8, 9]] | |
# O(n) | |
# Выполняется цикл, кол-во итераций = кол-ву элементов матрицы + кол-во пустых строк. | |
# Если элементы строки кончились, начинает обрабатываться след. строка. | |
# Для каждой пустой строки предусмотрена отдельная итерация, которая совершает переход на новую строку |
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
PING 0.0.0.0 (0.0.0.0): 56 data bytes | |
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.116 ms | |
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.111 ms | |
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.094 ms | |
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.106 ms | |
--- 0.0.0.0 ping statistics --- | |
4 packets transmitted, 4 packets received, 0% packet loss | |
round-trip min/avg/max/stddev = 0.094/0.107/0.116/0.000 ms | |
. | |
- html |
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
\section*{Задание} | |
Составление глоссария (словаря терминов). | |
Данный вид самостоятельной работы заключается в ознакомлении со словарными словами, новыми терминами, понятиями. Глоссарий * - это словарь определенных понятий или терминов, объединенных общей специфической тематикой. *Данный термин происходит от греческого слова "глосса", что означает язык, речь. В Древней Греции глоссами называли непонятные слова в текстах, толкование которых давалось рядом на полях. Собрание «глоссов» в последствии стали называть глоссарием. | |
Каково назначение глоссария? Глоссарий необходим для того, что студент, изучающий дисциплину, мог без труда для себя найти объяснение мудреных слов и сложных терминов, которые будут встречаться во время изучения дисциплины. | |
Как составить глоссарий? После того, как определена область применения терминов (в нашем случае: «Сетевые технологии», «Сети ЭВМ и телекоммуникации» «Компьютерные сети», «Сетевые протоколы» «Передача данных» и т.д.), требуется подобрать список книг или других рекомендуе |
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
private List<PrimeNumber> primesBetween(@Nullable Long from, @NonNull Long to) { | |
if (from == null || from < MIN_PRIME_VALUE) | |
from = MIN_PRIME_VALUE; | |
Map<Long, Boolean> primes = new HashMap<>(); | |
for (long i = from; i <= to; ++i) { | |
Boolean isPrime = primes.get(i); | |
if (isPrime == null || isPrime) | |
for (long j = MIN_PRIME_VALUE; j <= to; ++j) { | |
primes.put(i * j, false); | |
} |
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
public class A { | |
private Object secretField = new Object(); | |
private void secretMethod() {} | |
void method1(A a) { | |
a.secretMethod(); | |
System.out.println(a.secretField); | |
} | |
static void method2(A a) { | |
a.secretMethod(); |
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
private void Button_Click_1(object sender, RoutedEventArgs e) | |
{ | |
int countThreads = 10; | |
int sleepTime = 1000; | |
for (int i = 0; i < countThreads; i++) | |
{ | |
Thread thread = new Thread(setDataInTextFileLine); | |
thread.Name = i.ToString(); | |
thread.Start(); | |
Thread.Sleep(sleepTime / countThreads); |
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
package com.company; | |
import java.util.ArrayList; | |
import java.util.concurrent.ThreadLocalRandom; | |
import java.util.stream.Collectors; | |
public class JavaSearchByClassType { | |
public static void main(String[] args) { | |
ArrayList<Object> objects = new ArrayList<>(); | |
// запихиваем всякого |
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; | |
using System.Collections.Generic; | |
namespace Exam | |
{ | |
abstract class Rodent | |
{ | |
public string TypeName { get; private set; } | |
public int NumOfTeeth { get; private set; } | |
public float? TailLength { get; private set; } |
NewerOlder