All puzzles › Engineering
Engineering Practice Problems
22 puzzles (9 easy, 11 medium, 2 hard), 4 free, in Python, JavaScript and C++.
Units, tolerances and quality checks built into puzzles.
The puzzles, easiest first
- Two Thresholds Stop the Flicker (Easy, free): A thermostat with one threshold would click on and off many times a minute as the temperature hovered around it, and wear out the heater.
- Average Reading (Easy): Given an array of sensor readings, return the average, rounded to a whole number.
- Celsius to Fahrenheit (Easy): Given a temperature in Celsius, return it in Fahrenheit.
- Feet to Inches (Easy): Given a length in feet, return it in inches.
- Gear Ratio (Easy): Given the tooth counts of the driver gear and the driven gear, return the gear ratio, rounded to 3 decimals.
- Kelvin to Celsius (Easy): Given a temperature in Kelvin, return it in Celsius by subtracting 273.
- Mechanical Stress (Easy): Given a force in newtons and an area in square meters, return the stress in pascals, rounded to 2 decimals.
- Ohm's Law (Easy): Given current in amps and resistance in ohms, return the voltage, rounded to 2 decimals.
- Peak Load (Easy): Given an array of sensor readings, return the highest one.
- Steer Toward the Target (Medium, free): A PID controller is the loop inside cruise control, drones, ovens and 3D printers.
- The Error Points to Itself (Medium, free): A Hamming code sends 4 data bits as 7, and the receiver can repair any one flipped bit without asking for it again.
- Trust the Sensor, but Not Too Much (Medium, free): A Kalman filter turns noisy readings into a steady estimate, and it is how a phone smooths its GPS position.
- Clamp a Reading (Medium): Given [value, low, high], return the value kept inside the range.
- Count Defects (Medium): Given an array of part strengths and a threshold, return how many parts are below the threshold.
- Linear Interpolation (Medium): Given two points (x0, y0) and (x1, y1) and an x, return the y on the straight line between them, rounded to 3 decimals.
- Parity Bit (Medium): Given an array of bits, return 1 if it has an odd number of 1s, and 0 otherwise.
- Pass Rate (Medium): Given readings and a threshold, return the percentage that meet or beat the threshold, rounded to a whole number.
- Readings In Range (Medium): Given readings and a low and high limit, return how many readings fall between them.
- Root Mean Square (Medium): Given a list of readings, return the root mean square, rounded to 3 decimals.
- Within Tolerance? (Medium): Given [measured, target, tolerance], return true if the measurement is within tolerance of the target.
- Longest Stable Run (Hard): Given readings and a maxDelta, return the length of the longest run where each reading is within maxDelta of the one before it.
- Moving Average (Hard): Given readings and a window size k, return the average of every run of k readings in a row, rounded down.
Practice another pattern
Or browse by subject
Browse all 676 puzzles