Day 0: Hello, World. Objective In this challenge, we review some basic concepts that will get you started with this series. You will need to use the same (or similar) syntax to read input and write output in challenges throughout HackerRank. Check out the Tutorial tab for learning materials and an instructional video!Task To complete this challenge, you must save a line of input from stdin to a variable, print Hello.. 더보기 Most Frequently Occurring Item in an Array Most Frequently Occurring Item in an Array (Java)Find the most frequently occurring item in an array.Example: The most frequently occurring item in [1, 3, 1, 3, 2, 1] is 1.If you're given an empty array, you should return null (in Java) or None (in Python).You can assume that there is always a single, unique value that appears most frequently unless the array is empty. For instance, you won't be.. 더보기 Introduction to Algorithms (19/103) Insertion Sort까지 완료 더보기 Introduction to Algorithms (11/103) Total 103 section 중 11 section 완료 (bubble sort) 더보기 Udemy 강의 현재 강의가 세일중이라 우선 3개만 구입했다. 파이썬으로 인터뷰 준비하는게 더 편하다는 평이 많아서 파이썬으로 구매할까 했는데... 일도 워낙 바쁜 관계로 좀 더 친숙한 자바로 하는게 나을 듯(초창기 api개발 때 장고로 같이 짰는데 지금 안드로이드만 해서...ㅠㅠ) 더보기 리스트에 중복된 값 제거하기 영어로 찾으면 how to remove duplicate value in list? 이정도일려나 -_-;; 사실 알고리즘이라고 하기에도 그렇지만 그냥 간단한거라도 적어볼려고 한다 stackoverflow나 인터넷에 찾오면 set을 이용한게 가장 많이 나오는데 재밌는 점은 set을 이용할 경우 list의 순서가 보장되지 않는 다는 댓글이 있었다 list의 순서까지 보장을 원한다면 LinkedHashSet을 이용하자! List idList = new ArrayList();idList.add(1);idList.add(2);idList.add(3);idList.add(1);idList.add(1);idList.add(3);idList.add(4); - 이부분이 중복제거해주는 부분idList = new Array.. 더보기 Realm 과 Jack Option 결론적으로 지금까지는 둘이 같이 사용이 불가능 람다식을 사용할려면 jack 말고 그냥 retrolambda를 이용하자 (realm하고도 같이 사용가능함) https://github.com/evant/gradle-retrolambda 더보기 Glide Svg 이미지관련 벡터이미지 적용하려고 했었는데 에러가 남... (예전이라 에러메세지는 못 적음) 아마 다른라이브러리랑 Glide를 같이 이용해서 svg 도 적용가능할텐데 현재 svg는 아이콘으로 사용함으로(oom이 발생안하니까 라고 하고 귀찮으니까) 걍 Glide안 쓰고 사용하자 더보기 RealmList와 Realm + Rx2 사용 이슈 1. 최근 Rx를 Rx2로 바꾸면서 발생한 이슈 (ClassNotFoundException인가 발생함)- rx패키지의 Observable 더미 클래스를 만들어줌package rx; public class Observable { } 2.RealmList 이슈- https://github.com/realm/realm-java/issues/575RealmList names;public class RealmString extends RealmObject { private String name; // getter & setter 더보기 Dagger2, MVP, annotation (좀 더 내 취향의 코드) 회사에서도 만들고 있지만, 다른 개발자와의 협업을 위해 중간중간 로직에 대해 논의하고 코드를 짜고 있음 (다같이 이해하기 쉬운쪽으로 배려해줘야 하니까) 현재 이 코드는 회사에서 사용 안하고 있지만 좀 더 내 취향에 맞는 Dagger2와 MVP사용 방식이라 올려둠(github에 회사말고 새로운 내 프로젝트를 만들려고 했는데, 지금 좀 바쁜시기라 나중에 하기로...) 먼저 BaseActivity - activity_base xml은 툴바만 있는 레이아웃- 툴바가 있는 화면과 없는 화면을 구분하기 위해 setToolbarHidden을 만듬(아니면 그냥 Toolbar 없는 클래스를 하나 더 만들어도 될 듯)@EActivity(R.layout.activity_base) public abstract class Ba.. 더보기 이전 1 ··· 5 6 7 8 9 다음