Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions 07월/1주차/[LCD] Add Binary/Min.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import java.math.BigInteger;

class Min {
public String addBinary(String a, String b) {
BigInteger num1 = new BigInteger(a, 2);
BigInteger num2 = new BigInteger(b, 2);

return num1.add(num2).toString(2);
}
}
6 changes: 6 additions & 0 deletions 07월/1주차/[LCD] Sqrt(x)/Min.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class Min {
public int mySqrt(int x) {
double d = Math.sqrt(x);
return (int) Math.floor(d);
}
}