File tree Expand file tree Collapse file tree
solution/3900-3999/3941.Password Strength Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,9 +117,7 @@ class Solution:
117117``` java
118118class 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
Original file line number Diff line number Diff line change @@ -115,9 +115,7 @@ class Solution:
115115``` java
116116class 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
Original file line number Diff line number Diff line change 11class 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
You can’t perform that action at this time.
0 commit comments