background preloader

Pratiquer / résoudre / se perfectionner

Facebook Twitter

Prolog Problems - PrologSite. This is a remake of the P-99: Ninety-Nine Prolog Problems collection that I assembled over several years of teaching at the University of Applied Sciences (Berner Fachhochschule) at Biel-Bienne, Switzerland. The collection is structured into seven sections. I have renumbered the problems in order to get more freedom to rearrange things within the sections. The purpose of this problem collection is to give you the opportunity to practice your skills in logic programming. Your goal should be to find the most elegant solution of the given problems. Efficiency is important, but logical clarity is even more crucial. Some of the (easy) problems can be trivially solved using built-in predicates. However, in these cases, you learn more if you try to find your own solution.

Every predicate that you write should begin with a comment that describes the predicate in a declarative statement. The problems have different levels of difficulty. First section: Prolog Lists. C PUZZLES, Some interesting C problems. Dear visitor, Thanks for your interest in C programming. In this page, you will find a list of interesting C programming questions/puzzles, These programs listed are the ones which I have received as e-mail forwards from my friends, a few I read in some books, a few from the internet, and a few from my coding experiences in C. Most of the programs are meant to be compiled, run and to be explained for their behaviour. The puzzles/questions can be broadly put into the following categories: General typo errors, which C programmers do often and are very difficult to trace. Small programs which are extremely hard to understand at the first examination.

These questions make a good excercise of reading and understanding effecient code written by others. I have used Gnu/Linux/gcc for all of them. If you are preparing for campus interviews, you might find the following link interesting: hint Program 2: Ruby Quiz. The Python Challenge. Engineering Puzzles. Programming Praxis. TopCoder,Inc.