Skip to content

Instantly share code, notes, and snippets.

Erik Erik8979

  • Seoul, South Korea
Block or report user

Report or block Erik8979

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Erik8979
Erik8979 / Big integer multiplication using vector.cpp
Created Mar 30, 2020
Big integer multiplication method using vector! (Elements represent each number in decimal.)
View Big integer multiplication using vector.cpp
#include <iostream>
#include <string>
#include <vector>
long long int reg_factorial(int num) {
long long int res = 1;
for (int i = num; i > 0; i--) res *= i;
return res;
}
std::vector<long long int> spe_factorial(int num) {
@Erik8979
Erik8979 / class_example.cpp
Created Mar 26, 2020
personally designed "class format snippet"
View class_example.cpp
//C++ class example
#include <iostream>
#include <string>
class Box {
private:
int l;
int b;
long long int h;
@Erik8979
Erik8979 / vector_element_connect.cpp
Created Mar 19, 2020
connecting elements in every possible cases.
View vector_element_connect.cpp
// How to connect elements in every possible cases.
#include <iostream>
#include <vector>
int main() {
// n : number of elements in vector
int n; std::cin >> n;
std::vector<int> vec(n);
for (int i = 0; i < n; i++) {
@Erik8979
Erik8979 / vector_element_erasing.cpp
Created Mar 19, 2020
erasing multiple array elements
View vector_element_erasing.cpp
//Deleting multiple elements.
//solution is to make duplicated vector.
#include <iostream>
#include <vector>
int main() {
std::vector<int> array;
std::vector<int> arr;
for (int i = 0; i < array.size(); i++) {
You can’t perform that action at this time.