Skip to content

#프로그래머스 3진법 뒤집기 #4

@jeongye01

Description

@jeongye01

class Solution {
public int solution(int n) {
String snum="";
while(n>0){
snum+=n%3;
n/=3;
}
return Integer.parseInt(snum,3);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions