summaryrefslogtreecommitdiff
path: root/prolog/problems/license_plates/joindigits_2/en.py
blob: 9dd7c00feb10c2aef81d528a9965db6b7f7850ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# coding=utf-8

name = 'joindigits/2'
slug = 'join adjacent numbers in a list'

description = '''\
<p><code>joindigits(L, NL)</code>: the list <code>NL</code> is obtained from <code>L</code> by arbitrarily joining neighboring digits. Your code should generate all valid solutions.</p>
<pre>
?- joindigits([3,2,4], NL).
  NL = [324] ;
  NL = [32,4] ;
  NL = [3,24] ;
  NL = [3,2,4].
</pre>'''

hint = {}