0
I want to create a program that makes the electronic distribution according to Pauling’s diagram. Before we begin, I have a question:
How can I limit, in PHP, the amount of electrons that each sub-level can have?
Example: Sublevel "s" the maximum electron is 2 (but may have less than that), sublevel "p" the maximum electron is 6 (but may have less than that), etc...
There’s a way I can draw that line?
You’ll have to make one Binary tree, where each level of the tree (node) you define the maximum amount of electrons. as you enter the sublevels of the tree, you are dealing with.
– Don't Panic
There are 4 sublevels no? s p d r, respectively 2 6 10 14, right? So how do you get these sublevels in PHP?
– user60252