투 포인터 알고리즘

Programming/Algorithm 2018. 5. 2. 11:45 Posted by gaeddong2

배열에서 부분 배열 중 합이 M인 결과의 개수를 구하여라라는 문제가 있을 때 사용하는 알고리즘

(배열 전체가 자연수로 이루어져야 함)


아래 링크 참조


https://m.blog.naver.com/kks227/220795165570

'Programming > Algorithm' 카테고리의 다른 글

merge sort  (0) 2018.08.24
필승 전략 게임 (Sprague–Grundy theorem)  (0) 2018.06.05
DFS을 이용한 순열구하기  (0) 2018.04.09
순열 및 조합 참고 링크  (0) 2018.04.02
[자료구조] TRIE 예제 코드  (0) 2017.12.06

Memory segment 주소 확인하기

Linux/Linux자료 2018. 4. 9. 16:05 Posted by gaeddong2

 etext  This is the first address past the end of the text segment

              (the program code).

edata  This is the first address past the end of the initialized data
              segment.

end    This is the first address past the end of the uninitialized
              data segment (also known as the BSS segment).



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*Program source*/
#include <stdio.h>
#include <stdlib.h>
extern char etext, edata, end/* The symbols must have some type,
                                          or "gcc -Wall" complains */
int
       main(int argc, char *argv[])
       {
           printf("First address past:\n");
           printf("    program text (etext)      %10p\n"&etext);
           printf("    initialized data (edata)  %10p\n"&edata);
           printf("    uninitialized data (end)  %10p\n"&end);
exit(EXIT_SUCCESS);
       }
 
cs



'Linux > Linux자료' 카테고리의 다른 글

VI 편집기 자동 들여쓰기  (0) 2019.05.21
Ubuntu] 공유 폴더 설정  (0) 2014.12.01
Ubuntu 설치 주소  (0) 2014.11.27
Ubuntu] vi 줄번호  (0) 2014.06.02
Ubuntu] apt-get install 시 ctrl +z했을 때  (0) 2014.06.02

블로그에 소스코드 올릴 때 (Color Scripter)

Etc 2018. 4. 9. 15:30 Posted by gaeddong2

https://colorscripter.com/


'Etc' 카테고리의 다른 글

LTE 자료  (1) 2014.12.22
도서) 행운의 절반 친구  (2) 2014.06.13
[HTML]html, css 버튼 만들기  (0) 2014.06.11
Cygwin]설치 시 서버 선택  (0) 2014.03.16
최신 기술 동향  (0) 2014.01.26