Skip to main content
added 844 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

Japt v2.0a0, 13 bytes

q\L f üÊñÊÌÌÊ 

Try it

q\L f üÊñÊÌÌÊ :Implicit input of string U e.g., "()<>a+/sentence$#@(@with::many---_symbols{}|~~" q :Split on \L : Regex /[^a-z]/i ["","","","","a","","sentence","","","","","with","","many","","","","symbols","","","","",""] f :Filter (remove empty strings) ["a","sentence","with","many","symbols"] ü :Group & sort by Ê : Length [["a"],["with","many"],["symbols"],["sentence"]] ñ :Sort by Ê : Length [["a"],["symbols"],["sentence"],["with","many"]] Ì :Last element ["with","many"] Ì :Last element "many" Ê :Length 4 

Japt v2.0a0, 13 bytes

q\L f üÊñÊÌÌÊ 

Try it

4 

Japt v2.0a0, 13 bytes

q\L f üÊñÊÌÌÊ 

Try it

q\L f üÊñÊÌÌÊ :Implicit input of string U e.g., "()<>a+/sentence$#@(@with::many---_symbols{}|~~" q :Split on \L : Regex /[^a-z]/i ["","","","","a","","sentence","","","","","with","","many","","","","symbols","","","","",""] f :Filter (remove empty strings) ["a","sentence","with","many","symbols"] ü :Group & sort by Ê : Length [["a"],["with","many"],["symbols"],["sentence"]] ñ :Sort by Ê : Length [["a"],["symbols"],["sentence"],["with","many"]] Ì :Last element ["with","many"] Ì :Last element "many" Ê :Length 4 
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

Japt v2.0a0, 13 bytes

q\L f üÊñÊÌÌÊ 

Try it

4