Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

deleted 205 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

Japt, 10 bytes

;BíC ËpUèD

Try it

;BíC ËpUèD :Implicit input of string U
;B :Uppercase alphabet
 í :Interleave
; C : Lowercase alphabet
 Ë :Map each D
 p : Repeat
 UèD : Count of D in U

Or, using the Vyxal approach, which feels like cheating to me ...

7 bytes

á æ¶Uñv

Try it

Japt, 10 bytes

;BíC ËpUèD

Try it

;BíC ËpUèD :Implicit input of string U
;B :Uppercase alphabet
 í :Interleave
; C : Lowercase alphabet
 Ë :Map each D
 p : Repeat
 UèD : Count of D in U

Or, using the Vyxal approach, which feels like cheating to me ...

7 bytes

á æ¶Uñv

Try it

Japt, 10 bytes

;BíC ËpUèD

Try it

;BíC ËpUèD :Implicit input of string U
;B :Uppercase alphabet
 í :Interleave
; C : Lowercase alphabet
 Ë :Map each D
 p : Repeat
 UèD : Count of D in U
added 205 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

Japt, 10 bytes

;BíC ËpUèD

Try it

;BíC ËpUèD :Implicit input of string U
;B :Uppercase alphabet
 í :Interleave
; C : Lowercase alphabet
 Ë :Map each D
 p : Repeat
 UèD : Count of D in U

Or, using the Vyxal approach, which feels like cheating to me ...

7 bytes

á æ¶Uñv

Try it

Japt, 10 bytes

;BíC ËpUèD

Try it

;BíC ËpUèD :Implicit input of string U
;B :Uppercase alphabet
 í :Interleave
; C : Lowercase alphabet
 Ë :Map each D
 p : Repeat
 UèD : Count of D in U

Japt, 10 bytes

;BíC ËpUèD

Try it

;BíC ËpUèD :Implicit input of string U
;B :Uppercase alphabet
 í :Interleave
; C : Lowercase alphabet
 Ë :Map each D
 p : Repeat
 UèD : Count of D in U

Or, using the Vyxal approach, which feels like cheating to me ...

7 bytes

á æ¶Uñv

Try it

Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

Japt, 10 bytes

;BíC ËpUèD

Try it

;BíC ËpUèD :Implicit input of string U
;B :Uppercase alphabet
 í :Interleave
; C : Lowercase alphabet
 Ë :Map each D
 p : Repeat
 UèD : Count of D in U

AltStyle によって変換されたページ (->オリジナル) /