본문 바로가기

Arrays: Left Rotation A left rotation operation on an array of size shifts each of the array's elements unit to the left. For example, if left rotations are performed on array , then the array would become .Given an array of integers and a number, , perform left rotations on the array. Then print the updated array as a single line of space-separated integers.Input FormatThe first line contains two space-separated int.. 더보기
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.. 더보기
TableView 관련 안드로이드로 치면 listview 나 recyclerview 라 할 수 있는 tableview delegate 와 datasource 잘 참고바람 (각각 프로토콜) 더보기
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.. 더보기
Stable / Unstable Sort의 차이 http://egloos.zum.com/entireboy/v/3516993 강의를 들었지만, 설명이 이해가 안되서 검색해봤다. 이미 잘 정리한 내용이 있어서 다행인 듯 더보기
정렬 알고리즘(버블, 선택, 삽입) 버블정렬 코드 Main.classpublic class Main { public static void main(String[] args) { // write your code here int[] data = {6, 78, 1, 45, 3, 2, 8,11,66}; new BubbleSort(data).sort(); System.out.println(Arrays.toString(data)); } } BubbleSort.classpublic class BubbleSort { private int[] data; public BubbleSort(int[] data) { this.data = data; } public void sort() { for (int i = 0; i < data.length - 1; i++.. 더보기
Introduction to Algorithms (19/103) Insertion Sort까지 완료 더보기
Introduction to Algorithms (11/103) Total 103 section 중 11 section 완료 (bubble sort) 더보기
Udemy 강의 현재 강의가 세일중이라 우선 3개만 구입했다. 파이썬으로 인터뷰 준비하는게 더 편하다는 평이 많아서 파이썬으로 구매할까 했는데... 일도 워낙 바쁜 관계로 좀 더 친숙한 자바로 하는게 나을 듯(초창기 api개발 때 장고로 같이 짰는데 지금 안드로이드만 해서...ㅠㅠ) 더보기
Anko 현재 프로젝트에 Kotlin을 사용하고 있지만 아직 Anko를 적용하지는 않았다. 이전부터 봤었지만 꽤나 흥미롭다. xml을 사용하지 않아 답답한 부분도 있을텐데(preview가 잘 안되는 경우가 있다고 들었음) 계속 개선중이고 개인 토이프로젝트에 사용해볼만한 라이브러리중 하나 인 거 같다. https://antonioleiva.com/anko-layouts-android/ 더보기