본문 바로가기

작심 24/7

검색하기
작심 24/7
프로필사진 모닝수박

  • 분류 전체보기 (156)
    • 백준 (128)
    • SWEA (9)
      • D2 (2)
      • D3 (1)
      • D4 (2)
      • D5 (1)
      • 역량 테스트 (2)
    • 프로그래머스 (5)
      • Level 2 (3)
      • Level 3 (1)
      • Level 4 (1)
    • 개념 (10)
    • 크롤링 (2)
    • 기타 (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • 중복 순열
  • 빠른 입출력
  • 그리디
  • lis
  • 링크드리스트
  • 이분 탐색
  • 피보나치 수
  • DP
  • 조합
  • 문자열
  • 클래스
  • 크루스칼
  • 순열
  • SSAFY
  • BeautifulSoup
  • 세그먼트 트리
  • dfs
  • 분할 정복
  • 비트마스크
  • 메모리풀
  • 재귀
  • 완전 탐색
  • Knapsack
  • 스택
  • BFS
  • 백트래킹
  • 시뮬레이션
  • 큐
  • 우선순위 큐
  • MST
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록메모리풀 (1)

작심 24/7

[SWEA] 1230번 암호문 3 (C++)

SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 링크드 리스트를 직접 구현하여 풀었다. 메모리 풀을 이용하여 메모리를 아껴준다. #include using namespace std; struct Node { int data; Node *next; }; Node memPool[10000]; // 사용할 노드 미리 정의 (메모리 풀) Node *head; // 링크드 리스트의 대가리 int N, M, num, memPoolCnt, x, y, s; char order; Node *getNode(int num) { memPool[memPoolCnt].data = num; memPool[memPoolCnt].next =..

SWEA/D3 2022. 1. 27. 19:49
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바