Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")), "application/vnd.android.package-archive");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
[ ์ ์ ] * - * [ ํ๋ก์ ํธ ] (n:m) ์ด ์๋๋ผ
[ ์ ์ ] 1 - 1 [ ํ๋ก์ ํธ๋งด๋ฒ * ํ๋ก์ ํธ ] ์ด๋ ๊ฒ ๋๋ฉ์ธ์ ๊ตฌ๋ถ์ํค๋ฉด ์์กด์ฑ๋ ๋ฎ์ถ๊ณ ๋๋ฉ์ธ๋ ๊ตฌ๋ถ๋๊ฒ ํ ์ ์์.
- Use spaces to fill in the gaps between words.
- Each line should contain as many words as possible.
- Use '\n' to separate lines.
- Gap between words can't differ by more than one space.
- Lines should end with a word not a space.
- '\n' is not included in the length of a line.
์ด ๊ธ์ ์ผ๋ณธ์ omochimetaru๋์ด Qiita์ ์ฌ๋ฆฐ Android ๊ฐ๋ฐ์ ์์ฃผํด์ Kotlin์ ์ ๋๋ก ์จ๋ดค๋๋ ์ต๊ณ ์๋ค.๋ผ๋ ๊ธ์ ๋ฒ์ญํด์ ๋ง๋ค์์ต๋๋ค. ๋ฒ์ญ์ ํ์พํ ํ๋ฝํด์ฃผ์ omochimetaru๋๊ป ๊ฐ์ฌํ๋ค๋ ๋ง์ ๋๋ฆฝ๋๋ค. ๋ํ ๊ธ์์ ํ๊ตญ์์๋ ์ฐ์ด์ง ์๋ ํํ๋ค ๋ฑ์ ๋ํด์๋ ์์ญ์ด ์์ฌ์์ต๋๋ค. ์ด ์ ์ํด ๋ถํ๋๋ฆฝ๋๋ค. ๋ฆ์ ์๊ฐ๊น์ง ์ค์ญ์ ์ฐพ๊ณ ๋ฒ์ญ์ ์ง์ ๋์ด๋๋ฐ ๋ง์ ๋์์ ์ฃผ์๊ณ ์คํ๋ ค ์ ๋ณด๋ค ๋ง์ด ๊ณ ์ํด์ฃผ์ ์ด์ํ๋ชจ์์ pluulove๋, chiyodad๋, lemonade๋๊ป๋ ๊ฐ์ฌํ๋ค๋ ๋ง์ ๋๋ฆฝ๋๋ค. ์ฝ์ด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
๋ฉฐ์น ์ , ์ ๊ฐ ์์๋ Qoncept์์ "๋ฆฌ์ผ ์ ๋์ก๊ธฐ"xํ์งํ ํ์ด๋๋ ๊ฑฐ๋ ์ ์์ง์์๋ถํฐ์ ๋์ฃผ๋ฅผ ๊ฐ๋ฐํ๊ณ ์ถ์ํ์ต๋๋ค.
cold / hot observable
~ cold: ๋ฐ์ดํฐ ๋ค์ด์ค๋ฉด ๋ฐ๋ก ์ฒ๋ฆฌ ~ ~ hot: ๋ฐ์ดํฐ๊ฐ ๋ค์ด์ค๋ฉด ๋ฐ์ดํฐ๋ฅผ ํ๋ํ ์ํ๋ก ๋ญ๊ฐ ๋ค๋ฅธ ์ฒ๋ฆฌ๋ฅผ ํ ์ ์๋๋ก ํด์ค ~
cold: ์ผ๋ฐ์ ์ธ observable. ๊ตฌ๋ ์ ํ ๋๋ง๋ค ์๋ก์ด ์คํธ๋ฆผ ์์ฑ. ๊ทธ๋์ ๋ถ์ด์๋ ๋ชจ๋ ์คํผ๋ ์ด์ ์ด ๊ฐ ์คํธ๋ฆผ๋ง๋ค ์คํ์ด ๋จ-> ํผํฌ๋จผ์ค ์ ํ
์ ํ์๊ฐ(6s) ์ด๊ณผ
###My solution
// 764๋ฒ์งธ -> 5^10 = 9765625
// 764 => 10
function hamming(n) {
- Removes any duplicate query string parameters from the url
- Removes any query string parameters specified within the 2nd argument (optional array)
stripUrlParams('www.codewars.com?a=1&b=2&a=2') // returns 'www.codewars.com?a=1&b=2'
stripUrlParams('www.codewars.com?a=1&b=2&a=2', ['b']) // returns 'www.codewars.com?a=1'