Coders Packet

Parallel Geometry using C++

By Gudipati Ganesh Yaswanth Kumar

This packet of C++ code helps us to find if it is possible to build a parallelepiped given the edges

A parallelepiped is a Three Dimensional object with twelve edges and six faces.
This packet helps to find if it is possible to build a parallelepiped with all its sides known.
The principle here is parallel geometry. In a parallelepiped, we have three groups, with four edges each that are parallel to each.
All the edges in a group should have the same length.
 
Algorithm
 
1. We will take the size of 12 edges as input and store them in an array.

2. We will sort the array according to the size of the edges.

3. We will check if every 4 edges have the same size.

Download Complete Code

Comments

No comments yet