Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c07b459

Browse filesBrowse files
committed
commit
Change-Id: I08806c5b8ee5a373800efe2028bc4e00f44e755f
1 parent 1c7af47 commit c07b459
Copy full SHA for c07b459

File tree

Expand file treeCollapse file tree

7 files changed

+204
-28
lines changed
Filter options
Expand file treeCollapse file tree

7 files changed

+204
-28
lines changed

‎.gitignore

Copy file name to clipboardExpand all lines: .gitignore
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ out
2626

2727
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2828
hs_err_pid*
29-
*/*.iml
3029

‎.idea/modules.xml

Copy file name to clipboardExpand all lines: .idea/modules.xml
+1Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/workspace.xml

Copy file name to clipboardExpand all lines: .idea/workspace.xml
+34-25Lines changed: 34 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎[0453][Minimum Moves to Equal Array Elements]/src/Solution.java

Copy file name to clipboardExpand all lines: [0453][Minimum Moves to Equal Array Elements]/src/Solution.java
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public class Solution {
2121
*/
2222
public int minMoves(int[] nums) {
2323

24+
if (nums == null) {
25+
return 0;
26+
}
27+
2428
int sum = 0;
2529
int min = Integer.MAX_VALUE;
2630

+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
<orderEntry type="module-library">
11+
<library name="JUnit4">
12+
<CLASSES>
13+
<root url="jar://$MODULE_DIR$/../lib/junit-4.12.jar!/" />
14+
<root url="jar://$MODULE_DIR$/../lib/hamcrest-core-1.3.jar!/" />
15+
</CLASSES>
16+
<JAVADOC />
17+
<SOURCES />
18+
</library>
19+
</orderEntry>
20+
</component>
21+
</module>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.