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.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Class 2 - Find the Torsional Angle
You are viewing a single comment's thread. Return to all comments →
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.