본문 바로가기

[자료구조] 이중 배열로 데이터 처리 ** 읽고 의견 주시면 감사하겠습니다! 고민하고 있는 문제라서요!! 반복문으로 탐색 vs 인덱스배열 참조 예를들어 토너먼트와 같은 데이터 처리에서 101001010 을 정렬해서 11110000 으로 해서 처리 A배열은 값 B배열은 정렬된 A의 인덱스 접근은 B의 인덱스로 접근 class user{ private String name; private int age; private boolean survive; } ArrayList userList = new ArrayList(); 1 2 3 4 5 6 7 name a b c d e f g age 1 2 3 4 5 6 7 survive true true false false false true false 이렇게 값이 세팅됐다고 치자. 그럼 이제 surviv.. 더보기
[facebook] 사용자 정보 제공 facebook api를 보다가 재미있는 걸 읽게 되었다. ☞ 원문 Basic InformationWhen a user allows you to access their basic information in an auth dialog, you have access to their user id, name, profile picture, gender, age range, locale, networks, user ID, list of friends, and any other information they have made public. To get access to any additional information about the user or their friends you need to ask for s.. 더보기
[android] R.java 공유 R.java 파일은 단 하나다. 하나의 패키지 밑에 꽁꽁 숨어있다. 그런데, 패키지를 나눠서 프로그래밍을 하다보면, 해당 패키지에는 R.java가 없음을 눈치채게 된다. 앗!!!!!! 어떡하지? 다른패키지인데? import해주면된다. 참조해서 쓴다면 아무 문제 없어요~ 더보기