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
#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++) { |
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
// | |
// 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]) { |
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
// 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 | |
} |
NewerOlder