Skip to content

Instantly share code, notes, and snippets.

View xmichael446's full-sized avatar

Michael xmichael446

View GitHub Profile
@jin-x
jin-x / merge_lists0a.cpp
Last active June 18, 2021 13:34
@jinxonik / UniLecs #271
/***********************************************************************************************************************
Задача UniLecs №271: https://telegra.ph/Anons-271-Obedinenie-otsortirovannyh-svyazannyh-spiskov-05-27
Алгоритм №0A решения задачи об объединении отсортированных связных списков (самый быстрый и правильный алгоритм) :)
Алгоритм с использованием приоритетной очереди.
________________________________________________________________________________________________________________________
Добавим в приоритетную очередь итераторы, указывающие на начало каждого списка (только для непустых списков).
@jin-x
jin-x / eratosthenes_sieve.cpp
Last active May 14, 2021 08:54
Sieve of Eratosthenes
// Sieve of Eratosthenes
// (c) 2021 Jin X ([email protected])
#include <vector>
#include <cmath>
#include <stdexcept>
// Sieve of Eratosthenes class
class EratosthenesSieve
{
@xmichael446
xmichael446 / bot.py
Last active June 20, 2020 12:21
Transformers Education Bot
import json
import logging
from aiogram import Bot, Dispatcher, executor, types
TOKEN = '1170507053:AAEV4pYWfIerISpthd2ULz9-_36SyeCkPi0'
logging.basicConfig(level=logging.INFO)
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)

How do I do this thing?

I'm not aware of how to use Google, how do I do this basic thing in Language X?

tagged coding, question

edited by Grammar Nazi (2.5M), asked by 1337z0r (2)

Answer 1 (12)