Home

0

String constant pool

먼저 코드를 보자 12345678String str1 = "hello";String str2 = "hello";String newString = new String("hello");String intern = newString.intern();System.out.println(str1 == str2); // trueSystem.out.println(str1

0

Runtime의 메모리 정보

Runtime 객체의 memory 관련 메서드 12345678910111213141516171819202122232425262728293031323334/** * Returns the amount of free memory in the Java Virtual Machine. * Calling the * <code>gc</code> me

0

sentences in november 2018

20181116 today’s sentencesWhat do you think ~ What did you think I would live in? What do you think I bought for your bithday party? What did you think I should prepare to get a job? What did you thin

0

Simple Pig Latin

Instructions Move the first letter of each word to the end of it, then add “ay” to the end of the word. Leave punctuation marks untouched. Examples 12pigIt('Pig latin is cool'); // igPay at

0

Highest Scoring Word

Instructions Given a string of words, you need to find the highest scoring word. Each letter of a word scores points according to it’s position in the alphabet: a = 1, b = 2, c = 3 etc. You need to re

0

Persistent Bugger

Instructions Write a function, persistence, that takes in a positive parameter num and returns its multiplicative persistence, which is the number of times you must multiply the digits in num until yo

0

Dubstep

Instructions Polycarpus works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take a couple of old songs and make dubstep remixes

0

20181125

매일 일에 치여 살다보니 매일 공부하는 것도 쉽지가 않다. 알고리즘은 6kyu 문제를 푸는데 턱 막히더라… 무작정 풀기보다는 따로 공부를 해야하나 싶기도 하고 해야될 거는 많고 시간은 없고 이래저래 걱정이 크지만 하나하나 알아가면서 전부 내 것으로 만들거다. go hard

0

CamelCase Method

Instructions Write simple .camelCase method (camel_case function in PHP, CamelCase in C# or camelCase in Java) for strings. All words must have their first letter capitalized without spaces. For inst

0

20181121

요즘 통계를 위해 SQL query를 직접 작성해야 되는데 복잡한 쿼리를 작업해보지 않아 어떻게 쿼리를 짜야할지, 또 데이터를 가져올 때 어떻게 나눠서 가져올지 감이 잘 오질않는다. 지하철로 집에 오는 길에 SQL도 codewars 같은 사이트가 있는지 검색해보았는데 w3resource 라는 사이트가 있었고 여기에 쿼리 연습문제들이 잔뜩 있었다. 당분간 이