Learn

A take to solve variety of problems.

Cmake Create A Binary Of Each C++ File Within A Directory

A CMakeLists.txt file to create a binary of each file within a directory. Each c++ source file within the directory needs to have its own main entry function.

Deitel C++ How To Program 9th Edition Chapter 8 Exercise 8.12

Write a program which simulates a rabit and turtle race.

Deitel C++ How To Program 9th Edition Chapter 7 Exercise 7.34

Write a program which generate a random maze.

Deitel C++ How To Program 9th Edition Chapter 7 Exercise 7.33

Write a program which traverse a character ‘X’ within a maze.

Deitel C++ How To Program 9th Edition Chapter 7 Exercise 7.32

Write a program which finds minimum value within an array using recursive function.

Deitel C++ How To Program 9th Edition Chapter 7 Exercise 7.31

Write a program which reverses a string using recursion.

Deitel C++ How To Program 9th Edition Chapter 7 Exercise 7.30

Write a which creates a function take an array along with its start and end as input and prints it.

Deitel C++ How To Program 9th Edition Chapter 7 Exercise 7.28

Write a program which validates a string to be a palindrome recursively.

Deitel C++ How To Program 9th Edition Chapter 7 Exercise 7.27

Write a program which prints prime number using Sieve of Eratosthenes.

Deitel C++ How To Program 9th Edition Chapter 7 Exercise 7.10

Write a program which calculates each salesman commission which is 9% of the sale.

Deitel C++ How To Program 9th Edition Chapter 6 Exercise 6.41

Write a program which inputs two integer and calculate GCD (Greatest Common Divisor).

Deitel C++ How To Program 9th Edition Chapter 6 Exercise 6.39

Write a program which demonstrate tower of hanoi movement of 3 disks from peg [1 to 3] using iterative method.

Deitel C++ How To Program 9th Edition Chapter 6 Exercise 6.38

Write a program which demonstrate tower of Hanoi movement of 3 disks from peg [1 to 3] using recursive method.

Deitel C++ How To Program 9th Edition Chapter 6 Exercise 6.37

Write a program to find LCM (Least Common Multiple) of two numbers using recursive function.

Deitel C++ How To Program 9th Edition Chapter 6 Exercise 6.36

Write a program which implements the power function using recursion.

Deitel C++ How To Program 9th Edition Chapter 6 Exercise 6.31

Write a program to find LCM (Least Common Multiple) of two numbers.

Deitel C++ How To Program 9th Edition Chapter 6 Exercise 6.28

Write a program which find perfect number between [1-1000]. A perfect number is a number which equals to the sum of its divisors.

Deitel C++ How To Program 9th Edition Chapter 6 Exercise 6.25

Write a program which calculates a factor of a number e.g. 4562.

Deitel C++ How To Program 9th Edition Chapter 6 Exercise 6.17

Write a program prints random number from set a, b and c.

Deitel C++ How To Program 9th Edition Chapter 5 Exercise 5.23

Write a program which prints diamond using least amount of print statements.

Deitel C++ How To Program 9th Edition Chapter 5 Exercise 5.18

Write a program to display number system table (decimal, binary, octal and Hexadecimal).

Deitel C++ How To Program 9th Edition Chapter 4 Exercise 4.34

Write a program to calculate factorial of a non negative number.

Deitel C++ How To Program 9th Edition Chapter 4 Exercise 4.26

Write a program which inputs 5 digit integer to determine if its palindrome or not.

Deitel C++ How To Program 9th Edition Chapter 4 Exercise 4.25

Write a program which prints a hollow square using asterisks (*) with size of sides of square as input.

Deitel C++ How To Program 9th Edition Chapter 4 Exercise 4.15

Write a program which calculates salesman commission. The salesman commission is 9% of the sales, and his gross pay is 200.

Deitel C++ How To Program 9th Edition Chapter 2 Exercise 2.28

Write a program which inputs 5 digit integer and separate the integer and print them with three spaces difference.

Calculate Sum Of Leaf Nodes In A Heap

A binary heap is a heap data structure that takes a form of binary tree. Heaps are commonly implemented using array.

Use Main Function In Python Like C

You can use a main function in python just like C with command line arguments. The main function executes by default for the script and accepts two arguments (argc, argv). The argument argc is the arguments count and argv has the python List of command line arguments.

How To Remote Interview

Consider this a hitch hiker guide or method / manners to deal with a remote interview. Interviews no matter where they happen on location or remote have one common goal, which is filling the gaps.

Parity Checker

Write a function to find even or odd parity of a number.

Count Positive Bits

Write a function to count number of positive bits or ‘1’ for an integer input.