Skip to content

Instantly share code, notes, and snippets.

View keeproll's full-sized avatar

Jewoong Ku keeproll

  • Korea
View GitHub Profile
@keeproll
keeproll / Left Rotation.cpp
Created September 4, 2018 01:30
HackerRank - Left Rotation
#include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Code Start ========================================================
void leftRotate(const int& p_iRotate, vector<int> p_vList) {
for(int i = 0; i < p_iRotate; ++i) {
int iFront = p_vList.front();
@keeproll
keeproll / Dynamic Array.c
Created September 4, 2018 01:02
HackerRank - Dynamic Array
//Guilherme Benner Martelli
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
int N;
int Q;
@keeproll
keeproll / Dynamic Array.cpp
Created September 4, 2018 01:00
HackerRank - Dynamic Array
#include <bits/stdc++.h>
using namespace std;
string ltrim(const string &);
string rtrim(const string &);
vector<string> split(const string &);
// Complete the dynamicArray function below.
vector<int> dynamicArray(int n, vector<vector<int>> queries) {
@keeproll
keeproll / Min Max Riddle.cpp
Created August 30, 2018 00:21
HackerRank - Min Max Riddle
#include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the riddle function below.
vector<long> riddle(vector<long> arr) {
vector<long> vRst;
for ( long i = 0; i < arr.size(); ++i )

[공통] 마크다운 markdown 작성법

1. 마크다운에 관하여

1.1. 마크다운이란?

Markdown은 텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌으며 쉽게 쓰고 읽을 수 있으며 HTML로 변환이 가능하다. 특수기호와 문자를 이용한 매우 간단한 구조의 문법을 사용하여 웹에서도 보다 빠르게 컨텐츠를 작성하고 보다 직관적으로 인식할 수 있다. 마크다운이 최근 각광받기 시작한 이유는 깃헙(https://github.com) 덕분이다. 깃헙의 저장소Repository에 관한 정보를 기록하는 README.md는 깃헙을 사용하는 사람이라면 누구나 가장 먼저 접하게 되는 마크다운 문서였다. 마크다운을 통해서 설치방법, 소스코드 설명, 이슈 등을 간단하게 기록하고 가독성을 높일 수 있다는 강점이 부각되면서 점점 여러 곳으로 퍼져가게 된다.

1.2. 마크다운의 장-단점

1.2.1. 장점

@keeproll
keeproll / Markdown Test.md
Last active August 27, 2018 08:26
마크다운 테스트

첫번째 레벨의 목록(# 하나)입니다.

두번째 레벨의 목록(# 둘)입니다.

세번째 레벨의 목록(# 셋)입니다.

제목입니다.

@keeproll
keeproll / Largest Rectangle.cpp
Created August 27, 2018 01:22
HackerRank - Largest Rectangle
#include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the largestRectangle function below.
long largestRectangle(vector<int> h) {
long iMax = 0;
@keeproll
keeproll / Balanced Brackets.cpp
Created August 20, 2018 07:04
HackerRank - Balanced Brackets
#include <bits/stdc++.h>
using namespace std;
// Complete the isBalanced function below.
string isBalanced(string s) {
std::stack<char> st;
for(auto c : s) {
switch (c) {
@keeproll
keeproll / Taum and B'day.cpp
Created August 10, 2018 09:38
HackerRank - Taum and B'day
#include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
#define ULL unsigned long long
// Complete the taumBday function below.
ULL taumBday(ULL b, ULL w, ULL bc, ULL wc, ULL z) {
@keeproll
keeproll / Hash Tables: Ice Cream Parlor.cpp
Created August 9, 2018 01:45
HackerRank - Hash Tables: Ice Cream Parlor
#include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the whatFlavors function below.
void whatFlavors(vector<int> cost, int money) {
int iFirst = 0, iSecond = 0;
unordered_map<int, int> mp;