We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Class 2 - Find the Torsional Angle
Class 2 - Find the Torsional Angle
Sort by
recency
|
146 Discussions
|
Please Login in order to post a comment
From a pedagogical standpoint, this problem is poorly positioned as an “easy” exercise. The code may look like a basic class implementation, but the underlying mathematical prerequisites, particularly 3D vector operations like cross products, dot products, and vector magnitude, are well beyond what most learners at the “easy” level will have encountered.
This creates a mismatch: students trying to learn basic object-oriented programming are suddenly forced into geometric reasoning that belongs in a linear algebra or physics course. The task doesn’t teach OOP, it assumes you already know how to represent and manipulate vectors in 3D space, then asks you to encode that knowledge.
Good pedagogy means aligning difficulty with assumed background knowledge. This problem doesn’t. It should be reclassified as medium or even hard, and tagged clearly to reflect its mathematical prerequisites.
how to solve this torsional angle
Here is HackerRank Class 2 - Find the Torsional Angle in Python solution - https://programmingoneonone.com/hackerrank-class-2-find-the-torsional-angle-solution-in-python.html
This problem helps practice working with vector mathematics and understanding concepts such as angles and geometric relationships, which are useful for learning other programming languages.. Fair play 24