Skip to main content

Questions tagged [physics]

For challenges pertaining to problems in the field of Physics.

106 votes
16 answers
6k views

One nice property of a Turing-complete language is that it can be used to write any program, up to and including the simulation of the entire Universe. Your job is to do exactly that: write a program ...
vsz's user avatar
  • 8,143
46 votes
19 answers
5k views

Why a Simulator? Kids these days don't have the time nor the ambition to actually go and stack boxes on the see-saw or play around with balancing physical objects. This leaves lots of room in the ...
turbulencetoo's user avatar
40 votes
13 answers
5k views

Minecraft has a fairly unique lighting system. Each block's light value is either one less than the brightest one surrounding it, or it is a light source itself. Your task is to write a method that ...
Chspsa's user avatar
  • 691
39 votes
16 answers
3k views

Overview Given a 3 line string, figure out if the structure falls to the left, balances, or falls to the right. Input structure You can imagine the structure as metal rod with stuff on top, all being ...
Daffy's user avatar
  • 1,075
37 votes
35 answers
5k views

Draw the parabolic trajectory of a thrown ball. The input is the ball's initial upward velocity, a positive integer v. Every second, the ball moves ...
xnor's user avatar
  • 150k
36 votes
2 answers
662 views

Introduction Given an ASCII tower and the force of the wind, write a program or function to determine if the tower will balance or which way it will fall. For example the first tower balances but ...
intrepidcoder's user avatar
32 votes
9 answers
4k views

Balancing Act Overview Given an input of 3 single-digit positive integers representing a set of weights, output an ASCII representation of a seesaw with the weights placed on it so that it is in ...
samgak's user avatar
  • 1,677
32 votes
4 answers
3k views

Ohm's law tells us that the current (I) in amps flowing through a resistance (R) in Ohms when a voltage (V) is applied across it is given as follows: V = I / R ...
Digital Trauma's user avatar
29 votes
8 answers
6k views

Given the 2-dimensional positions and velocities of a pair of billiard balls right before impact, calculate their velocities after a perfectly elastic collision. The balls are assumed to be ideal ...
ngn's user avatar
  • 15.6k
24 votes
22 answers
2k views

To check whether a list of non-negative integers is balanced, one can imagine putting respective weights on a board and then try to balance the board on a pivot such that the summarized relative ...
Laikoni's user avatar
  • 26.4k
22 votes
48 answers
4k views

Introduction: Two resistors, R1 and R2, in parallel (denoted R1 || R2) have a combined ...
Stewie Griffin's user avatar
22 votes
14 answers
3k views

The 3Blue1Brown Youtube channel released a video a year ago called "Why do colliding blocks compute pi?" which describes a model where a block A of mass \$a\$ ...
Peter Kagey's user avatar
  • 8,165
22 votes
3 answers
890 views

Challenge Given a quark composition of a particle as input, output the corresponding hadron's name. Quarks will be represented by a capital letter and antiquarks by a lowercase letter. The quarks ...
Beta Decay's user avatar
  • 23.6k
21 votes
7 answers
774 views

In physics, like electric charges repel, and unlike charges attract. The potential energy between two unit charges separated by a distance d is ...
lirtosiast's user avatar
  • 21.7k
20 votes
13 answers
2k views

Objective Given a dimension of an SI unit, convert the Lorentz-Heaviside version of a Planck unit \$1\$ into SI metric. What is a Planck unit? Planck units are a set of units of measurement. It ...
Dannyu NDos's user avatar
  • 7,381

15 30 50 per page