분류 전체보기
-
LinkedList (2)과거...../알고리즘 & 자료구조 2011. 4. 18. 15:27
이중 연결 리스트의 구조는 단순 연결 리스트와 비슷하지만, 포인터 공간이 두 개가 있고 각각의 포인터는 앞의 노드와 뒤의 노드를 가리킨다 public class CLinkedList { private ListNode head = null; public CLinkedList(){ this.head = null; } public void insertFirstNode(String data){ ListNode newNode = new ListNode(data); if(this.head == null){ this.head = newNode; this.head.link = head; }else{ ListNode temp = this.head; while(temp.link != head){ temp = temp.li..
-
LinkedList(1)과거...../알고리즘 & 자료구조 2011. 4. 18. 11:01
링크드 리스트 중 간단히 구현할 수 있는 단순 연결 리스트 이다 실상.. 간단하지는 않은 내용이다. 중간에 보변 reverse함수 부분은 유심히 보는 편이 좋을 듯 쉽다. 아래 그림은 단순 연결리스트 구조 이다. class : ListNode public class ListNode { private String data; public ListNode link = null; public ListNode(){ this.data = null; this.link = null; } public ListNode(String data, ListNode node){ this.data = data; this.link = node; } public ListNode(String data){ this.data = data; ..
-
알고리즘 & 자료구조과거...../알고리즘 & 자료구조 2011. 4. 18. 10:53
- 목 적 개인 실력 향상을 위한 프로젝트 - 기 간 11. 4.18 ~ - 목 차 1. 연결 리스트 - 단일 연결 리스트 (자바) - 이중 연결 리스트 (자바) 2. 스택 - history 2011-4-18 알고리즘 & 자료구조 정리 시작 - 자료 출처 리스트 1.http://ko.wikipedia.org/wiki/%EC%97%B0%EA%B2%B0_%EB%A6%AC%EC%8A%A4%ED%8A%B8#.EB.8B.A8.EC.88.9C_.EC.97.B0.EA.B2.B0_.EB.A6.AC.EC.8A.A4.ED.8A.B8 2.http://www.gurubee.net/pages/viewpage.action?pageId=1507898 3.뇌를 자극하는 알고리즘
-
-
ExpandableListView setOnItemLongClickListener카테고리 없음 2011. 4. 1. 11:12
mExpandableListView.setOnItemLongClickListener(new OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView arg0, View arg1, int position, long arg3) { long packedPosition = mExpandableListView.getExpandableListPosition(position); int type = ExpandableListView.getPackedPositionType(packedPosition); Log.i(TAG, "type = " + type ); //check the type if(type == ExpandableListV..