Recent content by Faris1985

  1. F

    Speed of Boy & Image in Plane Mirror: A,B,C Explained

    Q. If a boy is at a distance of 40m from a plane mirror and runs parallel to the plane of the mirror while maintaining the same distance from the mirror what will be the speed of the image and the boy. A. Same B. The boy has greater speed than his image C. The image has greater speed than the...
  2. F

    Comp Sci C++ Binary Search Tree preorder printing tree problem

    This is my code. Sorry i could not include comments :( #include <iostream> #include <fstream> #include <istream> #include <string> using namespace std; struct node { int data; int depth; struct node *left, *right; }; void insert(struct node *r, struct node *p) {...
  3. F

    Comp Sci C++ Binary Search Tree preorder printing tree problem

    Q.When run the program should ask for an input file containing integer keys to be added to the search tree. The file will contain one key per line. Add these keys in the order given in the file to the search tree. Then print the entire tree using preorder traversal i.e., root, left-child...
Back
Top