Skip to content

serrodcal-MULCIA/PLExercises2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PLExercises2

Second (and last) block of exercises of Prolog for Logic Programming

Exercise 1

Given a binary tree, print its nodes level by level. i.e. all nodes present at level 1 should be printed first followed by nodes of level 2 and so on. All nodes for any level should be printed from left to right.

*Inputs:

*Output:

Exercise 2

Given a binary tree, write an efficient algorithm o convert binary tree to its mirror.

*Inputs:

*Output:

About

Exercises of Prolog for Logic Programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages