Skip to content

Instantly share code, notes, and snippets.

View lectricas's full-sized avatar

alexey polusov lectricas

  • Saint-Petersburg
View GitHub Profile
#include <vector>
#include <iostream>
int main() {
int n, m;
std::cin >> n;
std::cin >> m;
std::vector<int> nv(n);
std::vector<int> mv(m);
for (int i = 0; i < n; i++) {
//
// Created by lectr on 10.03.2021.
//
#include <iostream>
#include <vector>
void sort(std::vector<int> &arr, int n) {
bool isSorted = true;
for (int j = 0; j < n - 1; j++) {
if (arr[j] > arr[j + 1]) {
@lectricas
lectricas / DataItem.kt
Last active October 18, 2018 08:09
Simple spinner, but based on EditText
// sample data item, you can make your own
data class DataItem(
private val title: String,
private val id: Int
): EditTextSpinner.PopItem {
override fun getTitle() = title
override fun getId() = id
}