Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
sumofx = 3; % Lithium
electrons = '1s2,2s1';
assert(isequal(electrons,Aufbau(sumofx)))
ans =
1s2,2s1
|
2 | Pass |
%%
sumofx = 6; % Carbon
electrons = '1s2,2s2,2p2';
assert(isequal(electrons,Aufbau(sumofx)))
ans =
1s2,2s2,2p2
|
3 | Pass |
%%
sumofx = 10; % Neon
electrons = '1s2,2s2,2p6';
assert(isequal(electrons,Aufbau(sumofx)))
ans =
1s2,2s2,2p6
|
4 | Pass |
%%
sumofx = 17; % Chlorine
electrons = '1s2,2s2,2p6,3s2,3p5';
assert(isequal(electrons,Aufbau(sumofx)))
ans =
1s2,2s2,2p6,3s2,3p5
|
Return the largest number that is adjacent to a zero
3751 Solvers
Sort a list of complex numbers based on far they are from the origin.
4327 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
502 Solvers
5011 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!