class Solution { public String solution(String my_string) { String answer = ""; String[] arrStr = my_string.split(""); for(int i = 0; i < arrStr.length; i++) { if(!answer.contains(arrStr[i])) { answer += arrStr[i]; } } return answer; } }
class Solution { public int solution(int[][] board, int k) { int answer = 0; for(int i = 0; i < board.length; i++) { for(int j = 0; j < board[i].length; j++) { if( i + j
class Solution { public long solution(int a, int b) { long answer = 0; if(a < b) { for(int i = a; i
class Solution { public int solution(int a, int d, boolean[] included) { int answer = 0; for(int i = 0; i < included.length; i++) { if(included[i]) { answer += a; } a += d; } return answer; } }
class Solution { public int solution(int n) { int answer = 0; int num = 0; for(int i = 1; i