| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 |
Tags
- 30. Substring with Concatenation of All Words
- 운영체제
- Python Implementation
- t1
- 밴픽
- concurrency
- 프로그래머스
- data science
- Decorator
- shiba
- Class
- kaggle
- LeetCode
- Generator
- DWG
- 715. Range Module
- Regular Expression
- Substring with Concatenation of All Words
- Convert Sorted List to Binary Search Tree
- attribute
- Python
- Protocol
- 컴퓨터의 구조
- iterator
- 315. Count of Smaller Numbers After Self
- 시바견
- 43. Multiply Strings
- Python Code
- 파이썬
- 109. Convert Sorted List to Binary Search Tree
Archives
- Today
- Total
Scribbling
[Java 101] 125. Valid Palindrome with StringBuilder 본문
Computer Science/Java
[Java 101] 125. Valid Palindrome with StringBuilder
focalpoint 2023. 2. 21. 00:14class Solution {
public boolean isPalindrome(String s) {
StringBuilder sb = new StringBuilder();
s.chars().filter(c -> Character.isLetterOrDigit(c))
.mapToObj(c -> Character.toLowerCase((char) c))
.forEach(sb::append);
return sb.toString().equals(sb.reverse().toString());
}
}'Computer Science > Java' 카테고리의 다른 글
| [Java 101] 20. Valid Parentheses: Stack (0) | 2023.02.23 |
|---|---|
| [Java 101] 76. Minimum Window Substring: Set, HashMap (0) | 2023.02.22 |
| [Java 101] 347. Top K Frequent Elements with HashMap as a counter, PriorityQueue, (0) | 2023.02.14 |
| [Java 101] 49. Group Anagrams with HashMap, StringBuilder (0) | 2023.02.14 |
| [Java 101] 1. Two Sum with HashMap as a counter (0) | 2023.02.14 |