일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- CentOS8
- 8kyu
- 시즌1
- https
- 주민번호마스킹
- 서울에어비앤비
- java
- CentOS
- 파이썬
- Python
- VMware
- 사용자변경
- 이클립스
- Codewars
- 6kyu
- 7kyu
- 자바기초스터디
- 남산타워뷰
- Linux
- 이것이리눅스다
- SQL
- class파일바로보기
- JavaScript
- Eclipse
- 중첩쿼리
- monthPicker
- 오류
- 멀티쓰레드프로그래밍
- 서울복층에어비앤비
- Oralce
- Today
- Total
목록Codewars/Java (9)
보통사람
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/rC0YX/btqxwFiJTap/ea4AUsK3zrQPCoK4gKeTIk/img.jpg)
/** * * 논리자료형변환(Convert boolean values to strings 'Yes' or 'No') * * 부울 값을 가져 와서 "예"문자열을 true로, "아니오"문자열을 false로 리턴하는 메소드를 완료하십시오. * Complete the method that takes a boolean value and return a "Yes" string for true, or a "No" string for false. * * * @author pej * @date 2019. 08. 15. * @param {boolean} true / false * @return {String} Yes / No * @example boolToWord(true) ==> "Yes" * boolToWord(fal..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/coZ5ZB/btqxmLY2SY9/IBWDsZWz3Ecye44MCFww60/img.jpg)
/** * * 보완 DNA(Complementary DNA) * * DNA 스트링에서, 기호 "A"및 "T"는 "C"및 "G"와 같이 서로 상보 적이다. * In DNA strings, symbols "A" and "T" are complements of each other, as "C" and "G". * * * @author pej * @date 2019. 08. 10. * @param {String} 문자열 * @return {String} 문자열 * @example DnaStrand.makeComplement("ATTGC") ==> "TAACG" * DnaStrand.makeComplement("GTAT") ==> "CATA" */ public static String makeComplement(..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bqG1vQ/btqxgzJEh5k/X0pd0BFggzERUQpxHBjX2k/img.jpg)
/** * * 입력받은 정수 소수인지 판단 (Is a number prime?) * * 당신의 임무는 지난 4 개의 문자를 제외한 모든 문자를 '#'으로 바꾸는 maskify 함수를 작성하는 것입니다. * * Define a function that takes an integer argument and returns logical value true or false depending on if the integer is a prime. * * * @param 정수 * @return true : 소수 , flase : 소수 아님 * @author pej * @date 2019. 08. 04. */ public static boolean isPrime(int num) { boolean result = fal..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/Cq101/btqxdr6Pnpw/wSOsKxwmmKVKcd3NHloqU1/img.jpg)
/** * * [6kyu] 카멜 케이스로 표기 (CamelCase Method) * * 간단한 .camelCase 메소드 (PHP의 경우 camel_case 함수, C #의 CamelCase 또는 Java의 camelCase)를 문자열로 작성하십시오. * 모든 단어의 첫 문자는 공백없이 대문자로 시작해야합니다. * * Write simple .camelCase method (camel_case function in PHP, CamelCase in C# or camelCase in Java) * for strings. All words must have their first letter capitalized without spaces. * * * @param {String} 문자열 * @return {St..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/lZC03/btqxbcP5EZl/ZGDhFhBabHaaMM0biCOKy0/img.jpg)
/** * * 문자 마스킹 처리 (Credit Card Mask) * * 당신의 임무는 지난 4 개의 문자를 제외한 모든 문자를 '#'으로 바꾸는 maskify 함수를 작성하는 것입니다. * * Your task is to write a function maskify, which changes all but the last four characters into '#'. * * * @param 문자열 * @return 마스킹된 문자열 * @author pej * @date 2019. 03. 17. */ public static String maskify(String str) { StringBuilder builder = new StringBuilder(str); if (str.isEmpty() || str..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/AG9gl/btqxfERF7c9/12LwJ6QGFOEuVhn2VDpPn1/img.jpg)
/** * * 입력받은 배열에서 단일한 숫자를 반환 (Find the stray number) * * 하나의 단일 숫자를 제외하고는 모두 동일한 홀수 길이의 정수 배열이 주어집니다. * 그러한 배열을 받아들이는 메소드를 완성 해, 그 단일의 다른 번호를 돌려줍니다. * 입력 배열은 항상 유효합니다! (홀수 길이> = 3) * * You are given an odd-length array of integers, in which all of them are the same, except for one single number. * Complete the method which accepts such an array, and returns that single different number. * The in..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/VgQzT/btqxbdVPrI0/Rcada8GEK3g7Orj17CMEDk/img.jpg)
/** * * 정규식 PIN 코드 유효성 검사(Regex validate PIN code) * * ATM 기계는 4 또는 6 자리 PIN 코드를 허용하며 PIN 코드는 정확히 4 자리 또는 정확히 6 자리를 포함 할 수 없습니다. * 함수에 유효한 PIN 문자열이 전달되면 true를 반환하고 그렇지 않으면 false를 반환합니다. * * ATM machines allow 4 or 6 digit PIN codes * and PIN codes cannot contain anything but exactly 4 digits or exactly 6 digits. * If the function is passed a valid PIN string, return true, else return false. * * ..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/Ek6Ck/btqxdq7Uamv/34cMWaPPBbfcsj0uWvVdi0/img.jpg)
/** * * 문자열 역순 (Reverse Letter) * * 문자열이 주어지면 알파벳이 아닌 모든 문자는 생략합니다. * 문자열은 소문자 라틴 문자, 숫자 및 기호로 구성됩니다. * * Given a string str, reverse it omitting all non-alphabetic characters. * A string consists of lowercase latin letters, digits and symbols. * * * @param {String} 문자열 * @return {String} 역순 문자열 * @author pej * @date 2019. 04. 07. * @example reverseLetter("ue^jk") ==> "kjeu" */ public static Str..