Lauren Green 6 년 전
부모
커밋
d81e298bac
2개의 변경된 파일151개의 추가작업 그리고 154개의 파일을 삭제
  1. 140
    147
      .idea/workspace.xml
  2. 11
    7
      arraz/src/main/java/Arraz.java

+ 140
- 147
.idea/workspace.xml 파일 보기

@@ -2,8 +2,8 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="3455511b-a100-4bbd-b07c-68f009bc8dbc" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
5 6
       <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" afterDir="false" />
6
-      <change beforePath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
7 7
     </list>
8 8
     <ignored path="$PROJECT_DIR$/arraz/target/" />
9 9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -13,110 +13,119 @@
13 13
     <option name="LAST_RESOLUTION" value="IGNORE" />
14 14
   </component>
15 15
   <component name="CoverageDataManager">
16
-    <SUITE FILE_PATH="coverage/ArraysGoneWild$All_in_arraz.ic" NAME="All in arraz Coverage Results" MODIFIED="1544032699038" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
16
+    <SUITE FILE_PATH="coverage/ArraysGoneWild$All_in_arraz.ic" NAME="All in arraz Coverage Results" MODIFIED="1544057740062" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
17
+  </component>
18
+  <component name="CoverageViewManager">
19
+    <option name="myElementSize" value="207" />
17 20
   </component>
18 21
   <component name="FUSProjectUsageTrigger">
19 22
     <session id="1944976257">
20 23
       <usages-collector id="statistics.lifecycle.project">
21 24
         <counts>
25
+          <entry key="project.closed" value="1" />
22 26
           <entry key="project.open.time.4" value="1" />
23 27
           <entry key="project.opened" value="1" />
24 28
         </counts>
25 29
       </usages-collector>
26 30
       <usages-collector id="statistics.file.extensions.open">
27 31
         <counts>
28
-          <entry key="java" value="4" />
32
+          <entry key="java" value="6" />
29 33
           <entry key="md" value="1" />
30 34
         </counts>
31 35
       </usages-collector>
32 36
       <usages-collector id="statistics.file.types.open">
33 37
         <counts>
34
-          <entry key="JAVA" value="4" />
38
+          <entry key="JAVA" value="6" />
35 39
           <entry key="Markdown" value="1" />
36 40
         </counts>
37 41
       </usages-collector>
38 42
       <usages-collector id="statistics.file.extensions.edit">
39 43
         <counts>
40
-          <entry key="java" value="5252" />
44
+          <entry key="java" value="5263" />
41 45
         </counts>
42 46
       </usages-collector>
43 47
       <usages-collector id="statistics.file.types.edit">
44 48
         <counts>
45
-          <entry key="JAVA" value="5252" />
49
+          <entry key="JAVA" value="5263" />
50
+        </counts>
51
+      </usages-collector>
52
+    </session>
53
+    <session id="807235596">
54
+      <usages-collector id="statistics.lifecycle.project">
55
+        <counts>
56
+          <entry key="project.closed" value="1" />
57
+          <entry key="project.open.time.1" value="1" />
58
+          <entry key="project.open.time.2" value="1" />
59
+          <entry key="project.opened" value="2" />
60
+        </counts>
61
+      </usages-collector>
62
+      <usages-collector id="statistics.file.types.edit">
63
+        <counts>
64
+          <entry key="JAVA" value="5" />
46 65
         </counts>
47 66
       </usages-collector>
48 67
     </session>
49 68
   </component>
50 69
   <component name="FileEditorManager">
51
-    <splitter split-orientation="horizontal" split-proportion="0.5">
52
-      <split-first>
53
-        <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
54
-          <file pinned="false" current-in-tab="false">
55
-            <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
56
-              <provider selected="true" editor-type-id="text-editor" />
57
-            </entry>
58
-          </file>
59
-          <file pinned="false" current-in-tab="false">
60
-            <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
61
-              <provider selected="true" editor-type-id="text-editor">
62
-                <state relative-caret-position="476">
63
-                  <caret line="278" column="22" selection-start-line="278" selection-start-column="22" selection-end-line="278" selection-end-column="22" />
64
-                  <folding>
65
-                    <element signature="e#415#416#0" expanded="true" />
66
-                    <element signature="e#475#476#0" expanded="true" />
67
-                    <element signature="e#541#542#0" expanded="true" />
68
-                    <element signature="e#602#603#0" expanded="true" />
69
-                    <element signature="e#4244#4253#0" expanded="true" />
70
-                    <element signature="e#5874#5875#0" expanded="true" />
71
-                    <element signature="e#5910#5911#0" expanded="true" />
72
-                    <element signature="e#5971#5972#0" expanded="true" />
73
-                    <element signature="e#6017#6018#0" expanded="true" />
74
-                    <element signature="e#6104#6105#0" expanded="true" />
75
-                    <element signature="e#6150#6151#0" expanded="true" />
76
-                    <element signature="e#6230#6231#0" expanded="true" />
77
-                    <element signature="e#6271#6272#0" expanded="true" />
78
-                    <element signature="e#6348#6349#0" expanded="true" />
79
-                    <element signature="e#6369#6370#0" expanded="true" />
80
-                  </folding>
81
-                </state>
82
-              </provider>
83
-            </entry>
84
-          </file>
85
-          <file pinned="false" current-in-tab="true">
86
-            <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
87
-              <provider selected="true" editor-type-id="text-editor">
88
-                <state relative-caret-position="328">
89
-                  <caret line="570" column="39" selection-start-line="570" selection-start-column="39" selection-end-line="570" selection-end-column="39" />
90
-                  <folding>
91
-                    <element signature="imports" expanded="true" />
92
-                    <element signature="e#8652#8661#0" expanded="true" />
93
-                    <element signature="e#9032#9041#0" expanded="true" />
94
-                    <element signature="e#9376#9385#0" expanded="true" />
95
-                    <element signature="e#9720#9729#0" expanded="true" />
96
-                  </folding>
97
-                </state>
98
-              </provider>
99
-            </entry>
100
-          </file>
101
-        </leaf>
102
-      </split-first>
103
-      <split-second>
104
-        <leaf>
105
-          <file pinned="false" current-in-tab="true">
106
-            <entry file="file://$PROJECT_DIR$/README.md">
107
-              <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
108
-                <state split_layout="SECOND">
109
-                  <first_editor relative-caret-position="270">
110
-                    <caret line="18" selection-start-line="18" selection-end-line="18" />
111
-                  </first_editor>
112
-                  <second_editor />
113
-                </state>
114
-              </provider>
115
-            </entry>
116
-          </file>
117
-        </leaf>
118
-      </split-second>
119
-    </splitter>
70
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
71
+      <file pinned="false" current-in-tab="false">
72
+        <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
73
+          <provider selected="true" editor-type-id="text-editor" />
74
+        </entry>
75
+      </file>
76
+      <file pinned="false" current-in-tab="true">
77
+        <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
78
+          <provider selected="true" editor-type-id="text-editor">
79
+            <state relative-caret-position="497">
80
+              <caret line="50" column="22" lean-forward="true" selection-start-line="50" selection-start-column="22" selection-end-line="50" selection-end-column="22" />
81
+              <folding>
82
+                <element signature="e#5874#5875#0" expanded="true" />
83
+                <element signature="e#5916#5917#0" expanded="true" />
84
+                <element signature="e#5971#5972#0" expanded="true" />
85
+                <element signature="e#6048#6049#0" expanded="true" />
86
+                <element signature="e#6104#6105#0" expanded="true" />
87
+                <element signature="e#6166#6167#0" expanded="true" />
88
+                <element signature="e#6230#6231#0" expanded="true" />
89
+                <element signature="e#6286#6287#0" expanded="true" />
90
+                <element signature="e#6348#6349#0" expanded="true" />
91
+                <element signature="e#6415#6416#0" expanded="true" />
92
+              </folding>
93
+            </state>
94
+          </provider>
95
+        </entry>
96
+      </file>
97
+      <file pinned="false" current-in-tab="false">
98
+        <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
99
+          <provider selected="true" editor-type-id="text-editor">
100
+            <state relative-caret-position="350">
101
+              <caret line="150" column="5" lean-forward="true" selection-start-line="10" selection-start-column="3" selection-end-line="150" selection-end-column="5" />
102
+              <folding>
103
+                <element signature="imports" expanded="true" />
104
+                <element signature="e#8652#8661#0" expanded="true" />
105
+              </folding>
106
+            </state>
107
+          </provider>
108
+        </entry>
109
+      </file>
110
+      <file pinned="false" current-in-tab="false">
111
+        <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
112
+          <provider selected="true" editor-type-id="text-editor">
113
+            <state relative-caret-position="165">
114
+              <caret line="15" column="5" selection-start-line="15" selection-start-column="5" selection-end-line="15" selection-end-column="5" />
115
+            </state>
116
+          </provider>
117
+        </entry>
118
+      </file>
119
+      <file pinned="false" current-in-tab="false">
120
+        <entry file="file://$PROJECT_DIR$/arraz/src/main/java/OddEven.java">
121
+          <provider selected="true" editor-type-id="text-editor">
122
+            <state relative-caret-position="195">
123
+              <caret line="17" selection-start-line="17" selection-end-line="17" />
124
+            </state>
125
+          </provider>
126
+        </entry>
127
+      </file>
128
+    </leaf>
120 129
   </component>
121 130
   <component name="FileTemplateManagerImpl">
122 131
     <option name="RECENT_TEMPLATES">
@@ -140,10 +149,10 @@
140 149
     <option name="CHANGED_PATHS">
141 150
       <list>
142 151
         <option value="$PROJECT_DIR$/README.md" />
143
-        <option value="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" />
152
+        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
144 153
         <option value="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" />
154
+        <option value="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" />
145 155
         <option value="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" />
146
-        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
147 156
       </list>
148 157
     </option>
149 158
   </component>
@@ -161,16 +170,17 @@
161 170
     </option>
162 171
   </component>
163 172
   <component name="ProjectFrameBounds">
164
-    <option name="x" value="-209" />
165
-    <option name="y" value="-1057" />
173
+    <option name="y" value="23" />
166 174
     <option name="width" value="1517" />
167
-    <option name="height" value="959" />
175
+    <option name="height" value="947" />
168 176
   </component>
169 177
   <component name="ProjectView">
170 178
     <navigator proportions="" version="1">
171 179
       <foldersAlwaysOnTop value="true" />
172 180
     </navigator>
173 181
     <panes>
182
+      <pane id="Scope" />
183
+      <pane id="PackagesPane" />
174 184
       <pane id="ProjectPane">
175 185
         <subPane>
176 186
           <expand>
@@ -228,15 +238,13 @@
228 238
           <select />
229 239
         </subPane>
230 240
       </pane>
231
-      <pane id="PackagesPane" />
232
-      <pane id="Scope" />
233 241
     </panes>
234 242
   </component>
235 243
   <component name="PropertiesComponent">
236 244
     <property name="GO_FMT" value="false" />
237 245
     <property name="WebServerToolWindowFactoryState" value="false" />
238 246
     <property name="aspect.path.notification.shown" value="true" />
239
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544032698580" />
247
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544057736665" />
240 248
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
241 249
     <property name="jdk.selected.JAVA_MODULE" value="1.8" />
242 250
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
@@ -382,7 +390,9 @@
382 390
       <workItem from="1543955862749" duration="2347000" />
383 391
       <workItem from="1543958998826" duration="113000" />
384 392
       <workItem from="1544020724645" duration="762000" />
385
-      <workItem from="1544021986078" duration="9223000" />
393
+      <workItem from="1544021986078" duration="9498000" />
394
+      <workItem from="1544044584926" duration="1316000" />
395
+      <workItem from="1544202706892" duration="1084000" />
386 396
     </task>
387 397
     <task id="LOCAL-00001" summary="readme and docs">
388 398
       <created>1544021313039</created>
@@ -395,21 +405,6 @@
395 405
     <servers />
396 406
   </component>
397 407
   <component name="TestHistory">
398
-    <history-entry file="ArrazTest_test1removeLastItem - 2018.12.05 at 12h 47m 54s.xml">
399
-      <configuration name="ArrazTest.test1removeLastItem" configurationId="JUnit" />
400
-    </history-entry>
401
-    <history-entry file="ArrazTest_test2removeLastItem - 2018.12.05 at 12h 47m 57s.xml">
402
-      <configuration name="ArrazTest.test2removeLastItem" configurationId="JUnit" />
403
-    </history-entry>
404
-    <history-entry file="ArrazTest_test1removeFirstItem - 2018.12.05 at 12h 49m 11s.xml">
405
-      <configuration name="ArrazTest.test1removeFirstItem" configurationId="JUnit" />
406
-    </history-entry>
407
-    <history-entry file="ArrazTest_test2removeFirstItem - 2018.12.05 at 12h 49m 14s.xml">
408
-      <configuration name="ArrazTest.test2removeFirstItem" configurationId="JUnit" />
409
-    </history-entry>
410
-    <history-entry file="ArrazTest_test1insertAtStart - 2018.12.05 at 12h 51m 36s.xml">
411
-      <configuration name="ArrazTest.test1insertAtStart" configurationId="JUnit" />
412
-    </history-entry>
413 408
     <history-entry file="ArrazTest_test2insertIAtStart - 2018.12.05 at 12h 51m 40s.xml">
414 409
       <configuration name="ArrazTest.test2insertIAtStart" configurationId="JUnit" />
415 410
     </history-entry>
@@ -425,26 +420,39 @@
425 420
     <history-entry file="ArrazTest_test2insertIAtEnd - 2018.12.05 at 12h 53m 01s.xml">
426 421
       <configuration name="ArrazTest.test2insertIAtEnd" configurationId="JUnit" />
427 422
     </history-entry>
423
+    <history-entry file="ArrazTest_test2sortEvenOdd - 2018.12.05 at 12h 57m 47s.xml">
424
+      <configuration name="ArrazTest.test2sortEvenOdd" configurationId="JUnit" />
425
+    </history-entry>
426
+    <history-entry file="ArrazTest_test1sortEvenOdd - 2018.12.05 at 12h 57m 51s.xml">
427
+      <configuration name="ArrazTest.test1sortEvenOdd" configurationId="JUnit" />
428
+    </history-entry>
429
+    <history-entry file="All_in_arraz - 2018.12.05 at 12h 58m 21s.xml">
430
+      <configuration name="All in arraz" configurationId="JUnit" />
431
+    </history-entry>
432
+    <history-entry file="All_in_arraz - 2018.12.05 at 12h 58m 56s.xml">
433
+      <configuration name="All in arraz" configurationId="JUnit" />
434
+    </history-entry>
435
+    <history-entry file="All_in_arraz - 2018.12.05 at 19h 55m 42s.xml">
436
+      <configuration name="All in arraz" configurationId="JUnit" />
437
+    </history-entry>
428 438
   </component>
429 439
   <component name="TimeTrackingManager">
430
-    <option name="totallyTimeSpent" value="12445000" />
440
+    <option name="totallyTimeSpent" value="15120000" />
431 441
   </component>
432 442
   <component name="ToolWindowManager">
433
-    <frame x="-209" y="-1057" width="1517" height="959" extended-state="0" />
443
+    <frame x="0" y="23" width="1517" height="947" extended-state="0" />
434 444
     <editor active="true" />
435 445
     <layout>
436
-      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.13762712" />
446
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.14033899" />
437 447
       <window_info id="Structure" order="1" weight="0.25" />
438 448
       <window_info id="Image Layers" order="2" />
439 449
       <window_info id="Designer" order="3" />
440 450
       <window_info id="UI Designer" order="4" />
441 451
       <window_info id="Capture Tool" order="5" />
442 452
       <window_info id="Favorites" order="6" side_tool="true" />
443
-      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
444
-      <window_info anchor="bottom" id="Messages" weight="0.32871974" />
445 453
       <window_info anchor="bottom" id="Message" order="0" />
446 454
       <window_info anchor="bottom" id="Find" order="1" />
447
-      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.3252595" />
455
+      <window_info anchor="bottom" id="Run" order="2" weight="0.3252595" />
448 456
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
449 457
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
450 458
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
@@ -452,6 +460,8 @@
452 460
       <window_info anchor="bottom" id="Terminal" order="7" weight="0.3298731" />
453 461
       <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
454 462
       <window_info anchor="bottom" id="Version Control" order="9" />
463
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
464
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32871974" />
455 465
       <window_info anchor="right" id="Commander" order="0" weight="0.4" />
456 466
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
457 467
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@@ -461,6 +471,7 @@
461 471
       <window_info anchor="right" id="Database" order="6" />
462 472
       <window_info anchor="right" id="Palette&#9;" order="7" />
463 473
       <window_info anchor="right" id="Maven Projects" order="8" />
474
+      <window_info active="true" anchor="right" id="Coverage" order="9" side_tool="true" visible="true" weight="0.32949153" />
464 475
     </layout>
465 476
   </component>
466 477
   <component name="TypeScriptGeneratedFilesManager">
@@ -474,9 +485,6 @@
474 485
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
475 486
   </component>
476 487
   <component name="editorHistoryManager">
477
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
478
-      <provider selected="true" editor-type-id="text-editor" />
479
-    </entry>
480 488
     <entry file="file://$PROJECT_DIR$/README.md">
481 489
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
482 490
         <state split_layout="SECOND">
@@ -487,64 +495,49 @@
487 495
         </state>
488 496
       </provider>
489 497
     </entry>
498
+    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
499
+      <provider selected="true" editor-type-id="text-editor" />
500
+    </entry>
501
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
502
+      <provider selected="true" editor-type-id="text-editor">
503
+        <state relative-caret-position="165">
504
+          <caret line="15" column="5" selection-start-line="15" selection-start-column="5" selection-end-line="15" selection-end-column="5" />
505
+        </state>
506
+      </provider>
507
+    </entry>
490 508
     <entry file="file://$PROJECT_DIR$/arraz/src/main/java/OddEven.java">
491 509
       <provider selected="true" editor-type-id="text-editor">
492
-        <state relative-caret-position="405">
493
-          <caret line="37" column="5" lean-forward="true" selection-start-line="30" selection-start-column="4" selection-end-line="37" selection-end-column="5" />
510
+        <state relative-caret-position="195">
511
+          <caret line="17" selection-start-line="17" selection-end-line="17" />
494 512
         </state>
495 513
       </provider>
496 514
     </entry>
497
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
515
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
498 516
       <provider selected="true" editor-type-id="text-editor">
499
-        <state relative-caret-position="493">
500
-          <caret line="34" column="20" lean-forward="true" selection-start-line="34" selection-start-column="20" selection-end-line="34" selection-end-column="20" />
517
+        <state relative-caret-position="350">
518
+          <caret line="150" column="5" lean-forward="true" selection-start-line="10" selection-start-column="3" selection-end-line="150" selection-end-column="5" />
501 519
           <folding>
502
-            <element signature="e#208#209#0" expanded="true" />
503
-            <element signature="e#234#235#0" expanded="true" />
504
-            <element signature="e#269#270#0" expanded="true" />
505
-            <element signature="e#299#300#0" expanded="true" />
506
-            <element signature="e#326#327#0" expanded="true" />
507
-            <element signature="e#352#353#0" expanded="true" />
508
-            <element signature="e#387#388#0" expanded="true" />
509
-            <element signature="e#417#418#0" expanded="true" />
520
+            <element signature="imports" expanded="true" />
521
+            <element signature="e#8652#8661#0" expanded="true" />
510 522
           </folding>
511 523
         </state>
512 524
       </provider>
513 525
     </entry>
514 526
     <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
515 527
       <provider selected="true" editor-type-id="text-editor">
516
-        <state relative-caret-position="476">
517
-          <caret line="278" column="22" selection-start-line="278" selection-start-column="22" selection-end-line="278" selection-end-column="22" />
528
+        <state relative-caret-position="497">
529
+          <caret line="50" column="22" lean-forward="true" selection-start-line="50" selection-start-column="22" selection-end-line="50" selection-end-column="22" />
518 530
           <folding>
519
-            <element signature="e#415#416#0" expanded="true" />
520
-            <element signature="e#475#476#0" expanded="true" />
521
-            <element signature="e#541#542#0" expanded="true" />
522
-            <element signature="e#602#603#0" expanded="true" />
523
-            <element signature="e#4244#4253#0" expanded="true" />
524 531
             <element signature="e#5874#5875#0" expanded="true" />
525
-            <element signature="e#5910#5911#0" expanded="true" />
532
+            <element signature="e#5916#5917#0" expanded="true" />
526 533
             <element signature="e#5971#5972#0" expanded="true" />
527
-            <element signature="e#6017#6018#0" expanded="true" />
534
+            <element signature="e#6048#6049#0" expanded="true" />
528 535
             <element signature="e#6104#6105#0" expanded="true" />
529
-            <element signature="e#6150#6151#0" expanded="true" />
536
+            <element signature="e#6166#6167#0" expanded="true" />
530 537
             <element signature="e#6230#6231#0" expanded="true" />
531
-            <element signature="e#6271#6272#0" expanded="true" />
538
+            <element signature="e#6286#6287#0" expanded="true" />
532 539
             <element signature="e#6348#6349#0" expanded="true" />
533
-            <element signature="e#6369#6370#0" expanded="true" />
534
-          </folding>
535
-        </state>
536
-      </provider>
537
-    </entry>
538
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
539
-      <provider selected="true" editor-type-id="text-editor">
540
-        <state relative-caret-position="328">
541
-          <caret line="570" column="39" selection-start-line="570" selection-start-column="39" selection-end-line="570" selection-end-column="39" />
542
-          <folding>
543
-            <element signature="imports" expanded="true" />
544
-            <element signature="e#8652#8661#0" expanded="true" />
545
-            <element signature="e#9032#9041#0" expanded="true" />
546
-            <element signature="e#9376#9385#0" expanded="true" />
547
-            <element signature="e#9720#9729#0" expanded="true" />
540
+            <element signature="e#6415#6416#0" expanded="true" />
548 541
           </folding>
549 542
         </state>
550 543
       </provider>

+ 11
- 7
arraz/src/main/java/Arraz.java 파일 보기

@@ -41,14 +41,18 @@ public class Arraz {
41 41
 
42 42
     public static int[] reverseArray(int[] input) {
43 43
 
44
-        int[] output = new int[input.length];
45
-        int index = 0;
46
-
47
-        for(int i = input.length - 1; i >= 0; i--) {
48
-            output[index] = input[i];
49
-            index++;
44
+        int highEnd = input.length - 1;
45
+        int lowEnd = 0;
46
+
47
+        while(highEnd > lowEnd) {
48
+            int temp = input[lowEnd];
49
+            input[lowEnd] = input[highEnd];
50
+            input[highEnd] = temp;
51
+            highEnd--;
52
+            lowEnd++;
50 53
         }
51
-        return output;
54
+
55
+        return input;
52 56
     }
53 57
 
54 58