본문 바로가기

Java/Java 알고리즘 모음

[Java 알고리즘] 1. String 모음

반응형

 

https://cote.inflearn.com/contest/10/problem/01-01

https://and-some.tistory.com/517

 

[Ch.01 - String] 01. 문자 찾기 (+ toCharArray)

1. 문자 찾기 설명 한 개의 문자열을 입력받고, 특정 문자를 입력받아 해당 특정문자가 입력받은 문자열에 몇 개 존재하는지 알아내는 프로그램을 작성하세요. 대소문자를 구분하지 않습니다.문

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/01-02

https://and-some.tistory.com/518

 

[Ch.01 - String] 02. 대소문자 변환 (+ toCharArray)

2. 대소문자 변환 설명 대문자와 소문자가 같이 존재하는 문자열을 입력받아 대문자는 소문자로 소문자는 대문자로 변환하여 출력하는 프로그램을 작성하세요. 입력 첫 줄에 문자열이 입력된다

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/01-03

https://and-some.tistory.com/519

 

[Ch.01 - String] 03. 문장 속 단어 # (+ split)

3. 문장 속 단어 설명 한 개의 문장이 주어지면 그 문장 속에서 가장 긴 단어를 출력하는 프로그램을 작성하세요. 문장속의 각 단어는 공백으로 구분됩니다. 입력 첫 줄에 길이가 100을 넘지 않는

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/01-04

https://and-some.tistory.com/520

 

[Ch.01 - String] 04. 단어 뒤집기 # (+StringBuilder)

4. 단어 뒤집기 설명 N개의 단어가 주어지면 각 단어를 뒤집어 출력하는 프로그램을 작성하세요. 입력 첫 줄에 자연수 N(3

and-some.tistory.com

 

 

 

https://cote.inflearn.com/contest/10/problem/01-05

https://and-some.tistory.com/521

 

[Ch.01 - String] 05. 특정 문자 뒤집기 (+ isAlphabetic)

5. 특정 문자 뒤집기 설명 영어 알파벳과 특수문자로 구성된 문자열이 주어지면 영어 알파벳만 뒤집고, 특수문자는 자기 자리에 그대로 있는 문자열을 만들어 출력하는 프로그램을 작성하세요.

and-some.tistory.com

 

 

 

 

https://cote.inflearn.com/contest/10/problem/01-06

https://and-some.tistory.com/522

 

[Ch.01 - String] 06. 중복문자제거 (+ charAt, indexOf) #

6. 중복문자제거 설명 소문자로 된 한개의 문자열이 입력되면 중복된 문자를 제거하고 출력하는 프로그램을 작성하세요. 중복이 제거된 문자열의 각 문자는 원래 문자열의 순서를 유지합니다.

and-some.tistory.com

 

 

 

 

https://cote.inflearn.com/contest/10/problem/01-07

https://and-some.tistory.com/523

 

[Ch.01 - String] 07. 회문 문자열 (+ str.equalsIgnoreCase(tmp))

7. 회문 문자열 설명 앞에서 읽을 때나 뒤에서 읽을 때나 같은 문자열을 회문 문자열이라고 합니다. 문자열이 입력되면 해당 문자열이 회문 문자열이면 "YES", 회문 문자열이 아니면 “NO"를 출력

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/01-08

https://and-some.tistory.com/524

 

[Ch.01 - String] 08. 유효한 팰린드롬 (+ replaceAll )

8. 유효한 팰린드롬 설명 앞에서 읽을 때나 뒤에서 읽을 때나 같은 문자열을 팰린드롬이라고 합니다. 문자열이 입력되면 해당 문자열이 팰린드롬이면 "YES", 아니면 “NO"를 출력하는 프로그램을

and-some.tistory.com

 

 

 

https://cote.inflearn.com/contest/10/problem/01-09

https://and-some.tistory.com/525

 

[Ch.01 - String] 09. 숫자만 추출 (+ replaceAll)

9. 숫자만 추출 설명 문자와 숫자가 섞여있는 문자열이 주어지면 그 중 숫자만 추출하여 그 순서대로 자연수를 만듭니다. 만약 “tge0a1h205er”에서 숫자만 추출하면 0, 1, 2, 0, 5이고 이것을 자연수

and-some.tistory.com

 

 

 

https://cote.inflearn.com/contest/10/problem/01-10

https://and-some.tistory.com/526

 

[Ch.01 - String] 10. 가장 짧은 문자거리 #

10. 가장 짧은 문자거리 설명 한 개의 문자열 s와 문자 t가 주어지면 문자열 s의 각 문자가 문자 t와 떨어진 최소거리를 출력하는 프로그램을 작성하세요. 입력 첫 번째 줄에 문자열 s와 문자 t가

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/01-11

https://and-some.tistory.com/527

 

[Ch.01 - String] 11. 문자열 압축 (+ 공백 활용)

11. 문자열 압축 설명 알파벳 대문자로 이루어진 문자열을 입력받아 같은 문자가 연속으로 반복되는 경우 반복되는 문자 바로 오른쪽에 반복 횟수를 표기하는 방법으로 문자열을 압축하는 프로

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/01-12

https://and-some.tistory.com/528

 

[Ch.01 - String] 12. 암호 (+Integer.parseInt( ,2))

12. 암호 설명 현수는 영희에게 알파벳 대문자로 구성된 비밀편지를 매일 컴퓨터를 이용해 보냅니다. 비밀편지는 현수와 영희가 서로 약속한 암호로 구성되어 있습니다. 비밀편지는 알파벳 한

and-some.tistory.com

 


https://leetcode.com/problems/unique-email-addresses/submissions/

 

Unique Email Addresses - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/883

 

 

https://leetcode.com/problems/jewels-and-stones/submissions/

 

Jewels and Stones - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/884

 

 

https://leetcode.com/problems/license-key-formatting/submissions/

 

License Key Formatting - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/885

 

 

https://leetcode.com/problems/plus-one/submissions/

 

Plus One - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/886

 


https://leetcode.com/problems/remove-outermost-parentheses/

 

Remove Outermost Parentheses - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/924

 

 

https://leetcode.com/problems/robot-bounded-in-circle/

 

Robot Bounded In Circle - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/931

 

 

https://leetcode.com/problems/break-a-palindrome/

 

Break a Palindrome - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/937

 

 

https://leetcode.com/problems/slowest-key/submissions/

 

Slowest Key - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/939

 

 

https://leetcode.com/problems/integer-to-english-words/

 

Integer to English Words - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/945

 


 

반응형