<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>tina_98.log</title>
        <link>https://velog.io/</link>
        <description>Java Developer</description>
        <lastBuildDate>Tue, 17 May 2022 04:18:54 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>tina_98.log</title>
            <url>https://velog.velcdn.com/images/tina_98/profile/2a17e190-855c-46d5-9194-191054e544cf/image.jpg</url>
            <link>https://velog.io/</link>
        </image>
        <copyright>Copyright (C) 2019. tina_98.log. All rights reserved.</copyright>
        <atom:link href="https://v2.velog.io/rss/tina_98" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[WMI 공급자에 연결할 수 없습니다. [0x8004100e]]]></title>
            <link>https://velog.io/@tina_98/ErrorWMI-%EA%B3%B5%EA%B8%89%EC%9E%90%EC%97%90-%EC%97%B0%EA%B2%B0%ED%95%A0-%EC%88%98-%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.-0x8004100e</link>
            <guid>https://velog.io/@tina_98/ErrorWMI-%EA%B3%B5%EA%B8%89%EC%9E%90%EC%97%90-%EC%97%B0%EA%B2%B0%ED%95%A0-%EC%88%98-%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.-0x8004100e</guid>
            <pubDate>Tue, 17 May 2022 04:18:54 GMT</pubDate>
            <description><![CDATA[<blockquote>
<p><a href="https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&amp;blogId=phoo38&amp;logNo=220178075824">WMI 공급자에 연결 할 수 없습니다. ERROR</a></p>
</blockquote>
]]></description>
        </item>
        <item>
            <title><![CDATA[[Level1]x만큼 간격이 있는 n개의 숫자]]></title>
            <link>https://velog.io/@tina_98/Level1-x%EB%A7%8C%ED%81%BC-%EA%B0%84%EA%B2%A9%EC%9D%B4-%EC%9E%88%EB%8A%94-n%EA%B0%9C%EC%9D%98-%EC%88%AB%EC%9E%90</link>
            <guid>https://velog.io/@tina_98/Level1-x%EB%A7%8C%ED%81%BC-%EA%B0%84%EA%B2%A9%EC%9D%B4-%EC%9E%88%EB%8A%94-n%EA%B0%9C%EC%9D%98-%EC%88%AB%EC%9E%90</guid>
            <pubDate>Tue, 17 May 2022 00:49:38 GMT</pubDate>
            <description><![CDATA[<h2 id="문제">문제</h2>
<ul>
<li>정수 x와 자연수 n을 입력받아 x부터 시작해 x씩 증가하는 숫자를 n개 갖고 있는 리스트를 리턴하는 함수 작성</li>
</ul>
<h3 id="조건">조건</h3>
<ul>
<li>x는 -10000000이상 , 10000000이하인 정수</li>
<li>n은 1000이하인 자연수</li>
</ul>
<h3 id="입출력-예시">입출력 예시</h3>
<table>
<thead>
<tr>
<th>x</th>
<th>n</th>
<th>answer</th>
</tr>
</thead>
<tbody><tr>
<td>2</td>
<td>5</td>
<td>[2,4,6,8,10]</td>
</tr>
<tr>
<td>4</td>
<td>3</td>
<td>[4,8,12]</td>
</tr>
<tr>
<td>-4</td>
<td>2</td>
<td>[-4,-8]</td>
</tr>
</tbody></table>
<hr>
<h4 id="접근-방법">접근 방법</h4>
<blockquote>
<ol>
<li>return Type이 long[]으로 지정되어 있어 배열 갯수를 미리 지정해준다.</li>
<li>x를 n만큼 반복하여 곱하여 미리 정해둔 배열에 저장한다. </li>
<li>저장한 long 배열을 return 해준다.</li>
</ol>
</blockquote>
<h3 id="java-code">Java Code</h3>
<pre><code>class Solution {
    public long[] solution(int x, int n) {
        long[] answer = new long[n];  
        for (int i = 0; i &lt; answer.length; ++i) {
        answer[i] = (long)x*(i+1);
        }
        return answer;
    }
}</code></pre><br/>

<h3 id="javascript-code">Javascript Code</h3>
<pre><code>function solution(x, n) {
    var answer = [];

    for(var i =1; i&lt;=n;i++){
        answer.push(x*i)
    }
    return answer;
}</code></pre>]]></description>
        </item>
    </channel>
</rss>