Skip to content

Instantly share code, notes, and snippets.

View mincoding1's full-sized avatar

mincoding mincoding1

View GitHub Profile
@mincoding1
mincoding1 / 교재
Last active July 8, 2025 22:57
SEMES UnitTest (Google Test) 특강
# 교재 다운로드
url.kr/w8gt9k
@mincoding1
mincoding1 / asdfa.java
Created June 1, 2025 23:52
sdfasdfasdf
afasdfasd
fasd
fa
sdf
asdfasdfasdfsdfasdfsdfsdfasd
@mincoding1
mincoding1 / tennis1.cpp
Created May 30, 2023 23:58
테니스 풀이
#include <string>
using std::string;
class Tennis {
public:
const string tennis_score(int p1Score, int p2Score) {
if (isDeuce(p1Score, p2Score)) return "Deuce";
if (isAdvantageForP1(p1Score, p2Score)) return "Advantage player1";
if (isAdvantageForP2(p1Score, p2Score)) return "Advantage player2";
if (isWinForP1(p1Score, p2Score)) return "Win for player1";
@mincoding1
mincoding1 / customer_test.cpp
Last active August 14, 2025 04:15
DS_VideoRental_UnitTest
#include "gmock/gmock.h"
#include "customer.cpp"
TEST(CustomerTest, StatementForNoRental) {
//arrange
Customer customer{ string{"NAME_NOT_IMPORTANT"} };
//act
string statement = customer.statement();
@mincoding1
mincoding1 / Main.java
Created November 21, 2022 11:21
test
class Sum {
public int getSum(int a, int b) {
System.out.println("기능을 추가한다.");
System.out.println("기능을 또 추가한다.");
return a + b;
}
}
public class Main {
public static void main(String[] args) {
@mincoding1
mincoding1 / wheel.cpp
Last active February 8, 2022 00:21
Wheel of Fourtune - cpp
#include <iostream>
#include <string>
#include <vector>
std::vector<std::string> strs;
int map[5][50];
std::string userdata;
int n;
int main()
@mincoding1
mincoding1 / gist:c1431f0d4a6c13470684212ed6d4cb06
Created January 31, 2021 06:53
3개 중 가장 긴 문자열 삼각형 출력
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char vect[3][100] = {
"ABC",
"ABCDEFG",
"BTS",
@mincoding1
mincoding1 / gist:806dc8d06b75cb2bb52d95bfebbaebc5
Created January 30, 2021 11:14
슬라이딩윈도우 + DAT
#include <iostream>
#include <string>
#include <vector>
using namespace std;
string str = "ABABAKJKAJKAJSLKJATTATTSAKLA";
int main()
{
int dat[200] = { 0 };