Skip to content

Commit b4f69c3

Browse files
committed
fix: code style
1 parent a00b5ae commit b4f69c3

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

solution/3900-3999/3941.Password Strength/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ class Solution:
117117
```java
118118
class Solution {
119119
public int passwordStrength(String password) {
120-
var st = password.chars()
121-
.mapToObj(c -> (char) c)
122-
.collect(Collectors.toSet());
120+
var st = password.chars().mapToObj(c -> (char) c).collect(Collectors.toSet());
123121

124122
int ans = 0;
125123

solution/3900-3999/3941.Password Strength/README_EN.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ class Solution:
115115
```java
116116
class Solution {
117117
public int passwordStrength(String password) {
118-
var st = password.chars()
119-
.mapToObj(c -> (char) c)
120-
.collect(Collectors.toSet());
118+
var st = password.chars().mapToObj(c -> (char) c).collect(Collectors.toSet());
121119

122120
int ans = 0;
123121

solution/3900-3999/3941.Password Strength/Solution.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
class Solution {
22
public int passwordStrength(String password) {
3-
var st = password.chars()
4-
.mapToObj(c -> (char) c)
5-
.collect(Collectors.toSet());
3+
var st = password.chars().mapToObj(c -> (char) c).collect(Collectors.toSet());
64

75
int ans = 0;
86

0 commit comments

Comments
 (0)