Skip to main content
−1 byte
Source Link
Anders Kaseorg
  • 40.1k
  • 3
  • 75
  • 146

Haskell, 3333 30 bytes

f(a:b)=filter a=until(`notElem`b`notElem`a)[a..]succ$a!!10

Try it online!Try it online!

Haskell, 33 bytes

f(a:b)=filter(`notElem`b)[a..]!!1

Try it online!

Haskell, 33 30 bytes

f a=until(`notElem`a)succ$a!!0

Try it online!

Source Link
Anders Kaseorg
  • 40.1k
  • 3
  • 75
  • 146

Haskell, 33 bytes

f(a:b)=filter(`notElem`b)[a..]!!1

Try it online!