Study/Algorithm

    [Algorithm - 문자열] Find digit in string

    /****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include #include #include int isNumeric(std::string const &str) { std::vector nums; s..

    [Algorithm-Dynamic] 시간계획표

    /****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include #include #include #include struct s{ int st; int en; int v; }; bool comp(cons..

    [Algorithm-DFS] 최소차이

    /****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include #include #include #include int n, res = INT_MAX, can[2][21], ch[21]; void dfs..

    [Algorithm-stack] 순서정렬

    /****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include #include #include #include #include #include int main() { int n; std::cin>>n;..

    [Algorithm - 구현] 보물찾기

    grid(w,h)와 보물개수, 사각형 /****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include #include #include #include using namespace std; int main..

    [Algorithm - 문자열] 공통문자열 찾기

    N개 문자열 중에 공통된 문자열 찾기 /****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include #include #include #include using namespace std; int main..