summaryrefslogtreecommitdiff
path: root/prolog/problems/trees/mirrorbt_2/common.py
blob: 1ee0a9c4d5515d3da03ff3db626a19671efcf88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# coding=utf-8

id = 136
number = 43
visible = False
facts = None

solution = '''\
mirrorBT(nil, nil).
mirrorBT(b(L, X, R), b(NewR, X, NewL)) :-
  mirrorBT(L, NewL),
  mirrorBT(R, NewR).
'''