Recent Blog Post

New Post!

  • Stack is an ordered list of similar data typTe. Stack is a LIFO structure. (Last in First out).

    LIFO=TOP stack works at top .

    TWO part of stack is push and pop
                     push();
    pop();                
                  
     POP();
    ----------











    ----------------------------------------------------------------------------------------------
    POP();






     CODE PUSH POP WITH C++

    Stack data structure


  • The Tower of Hanoi (also called the Tower of Brahma or Lucas' Tower,[1] and sometimes pluralized) is a mathematical game or puzzle. It consists of three rods, and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks in a neat stack in ascending order of size on one rod, the smallest at the top, thus making a conicalshape.
    The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules:
    1. Only one disk can be moved at a time.
    2. Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack i.e. a disk can only be moved if it is the uppermost disk on a stack.
    3. No disk may be placed on top of a smaller disk.
    With three disks, the puzzle can be solved in seven moves. The minimum number of moves required to solve a Tower of Hanoi puzzle is 2n - 1, where n is the number of disks.

    Simpler statement of iterative solution

    For an even number of disks:
    • make the legal move between pegs A and B
    • make the legal move between pegs A and C
    • make the legal move between pegs B and C
    • repeat until complete


    For an odd number of disks:
    • make the legal move between pegs A and C
    • make the legal move between pegs A and B
    • make the legal move between pegs C and B
    • repeat until complete
    In each case, a total of 2n-1 moves are made                           .

    SEE ANimate hanoi:
    the pole:




    c++ code:

    Tower of hanoi C++



  • YouTube has become the standard way for delivering high quality video on the web. Sometimes, when you embed a video in your web application or landing page, you need a great deal of control on what and how is displayed. This is why we are going to show you how you can use the YouTube JavaScript Player API.

    How to Control YouTube's Video Player with JavaScript

  • A better web means a better experience for everyone. Users should be able to reach what they need without worrying about how they're accessing the internet. Developers and designers should be creating sites that can be smoothly maintained and updated. A better web does more than just work, it works well – for those who consume it and those who build it.
    A better web is a more efficient web. Efficiency is at the heart of our projects, whether it takes the form of accessibility, responsiveness, content strategy or page load performance. From choosing the right CSS property to asking yourself the crucial questions that will make a whole project viable, efficiency is not just about going faster, it's about making things better. It's about, well, empathy.

    Web design techniques.

  • - Copyright © Computer Programming LIVE - Powered by Nishi IT Ltd. - Designed by mostafa -