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 Question

Commonmark migration
Source Link

Inspired by, and in memory of, my dear friend and colleague,

#Inspired by, and in memory of, my dear friend and colleague,
Dan Baronet #Dan Baronet , 1956 – 2016. R.I.P.

Dan Baronet , 1956 – 2016. R.I.P.

He found the shortest possible APL solution to this task:

Task

Given a Boolean list, count the number of trailing truth values.

Example cases

{}0

{0}0

{1}1

{0, 1, 1, 0, 0}0

{1, 1, 1, 0, 1}1

{1, 1, 0, 1, 1}2

{0, 0, 1, 1, 1}3

{1, 1, 1, 1, 1, 1}6

#Inspired by, and in memory of, my dear friend and colleague,
Dan Baronet #Dan Baronet , 1956 – 2016. R.I.P.

He found the shortest possible APL solution to this task:

Task

Given a Boolean list, count the number of trailing truth values.

Example cases

{}0

{0}0

{1}1

{0, 1, 1, 0, 0}0

{1, 1, 1, 0, 1}1

{1, 1, 0, 1, 1}2

{0, 0, 1, 1, 1}3

{1, 1, 1, 1, 1, 1}6

Inspired by, and in memory of, my dear friend and colleague,

Dan Baronet

Dan Baronet , 1956 – 2016. R.I.P.

He found the shortest possible APL solution to this task:

Task

Given a Boolean list, count the number of trailing truth values.

Example cases

{}0

{0}0

{1}1

{0, 1, 1, 0, 0}0

{1, 1, 1, 0, 1}1

{1, 1, 0, 1, 1}2

{0, 0, 1, 1, 1}3

{1, 1, 1, 1, 1, 1}6

rip link
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292

#Inspired by, and in memory of, my dear friend and colleague,
Dan Baronet #Dan Baronet, 1956 – 2016.R.I.P.

He found the shortest possible APL solution to this task:

Task

Given a Boolean list, count the number of trailing truth values.

Example cases

{}0

{0}0

{1}1

{0, 1, 1, 0, 0}0

{1, 1, 1, 0, 1}1

{1, 1, 0, 1, 1}2

{0, 0, 1, 1, 1}3

{1, 1, 1, 1, 1, 1}6

#Inspired by, and in memory of, my dear friend and colleague,
Dan Baronet #Dan Baronet, 1956 – 2016.

He found the shortest possible APL solution to this task:

Task

Given a Boolean list, count the number of trailing truth values.

Example cases

{}0

{0}0

{1}1

{0, 1, 1, 0, 0}0

{1, 1, 1, 0, 1}1

{1, 1, 0, 1, 1}2

{0, 0, 1, 1, 1}3

{1, 1, 1, 1, 1, 1}6

#Inspired by, and in memory of, my dear friend and colleague,
Dan Baronet #Dan Baronet, 1956 – 2016.R.I.P.

He found the shortest possible APL solution to this task:

Task

Given a Boolean list, count the number of trailing truth values.

Example cases

{}0

{0}0

{1}1

{0, 1, 1, 0, 0}0

{1, 1, 1, 0, 1}1

{1, 1, 0, 1, 1}2

{0, 0, 1, 1, 1}3

{1, 1, 1, 1, 1, 1}6

replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

#Inspired by, and in memory of, my dear friend and colleague,
Dan Baronet #Dan Baronet, 1956 – 2016.

He found the shortest possible APL solution the shortest possible APL solution to this task:

Task

Given a Boolean list, count the number of trailing truth values.

Example cases

{}0

{0}0

{1}1

{0, 1, 1, 0, 0}0

{1, 1, 1, 0, 1}1

{1, 1, 0, 1, 1}2

{0, 0, 1, 1, 1}3

{1, 1, 1, 1, 1, 1}6

#Inspired by, and in memory of, my dear friend and colleague,
Dan Baronet #Dan Baronet, 1956 – 2016.

He found the shortest possible APL solution to this task:

Task

Given a Boolean list, count the number of trailing truth values.

Example cases

{}0

{0}0

{1}1

{0, 1, 1, 0, 0}0

{1, 1, 1, 0, 1}1

{1, 1, 0, 1, 1}2

{0, 0, 1, 1, 1}3

{1, 1, 1, 1, 1, 1}6

#Inspired by, and in memory of, my dear friend and colleague,
Dan Baronet #Dan Baronet, 1956 – 2016.

He found the shortest possible APL solution to this task:

Task

Given a Boolean list, count the number of trailing truth values.

Example cases

{}0

{0}0

{1}1

{0, 1, 1, 0, 0}0

{1, 1, 1, 0, 1}1

{1, 1, 0, 1, 1}2

{0, 0, 1, 1, 1}3

{1, 1, 1, 1, 1, 1}6

link to answer
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292
Loading
typo
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292
Loading
formatting
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292
Loading
Tweeted twitter.com/StackCodeGolf/status/795379026466578432
edited tags
Link
Adnan
  • 44.7k
  • 6
  • 83
  • 248
Loading
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292
Loading

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