Results 1 to 3 of 3
Thread: n-1
Hybrid View
-
9th December 2009 19:18 #1
n-1
, , . : ( ), , . , , ... , .
: , Matlab( ). "" : =1 2 3 4, = 7 8 9. = 1 2 3 4 8 9 7, =1 2 3 4 7 9 8 ...
n-1 . - . if- , switch.
-
9th December 2009 19:26 #2
:
, Matlab , .Code:skipElement = 0 while needToDoTheEntireOperation: for i = 0 to b.Length-1: if i != (skipElement % b.Length): a.Add(b[i]) skipElement += 1, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
9th December 2009 20:06 #3
skipElement=0
while " "
for i=0 " b"-1
if i "" skipElement b
- b
skipElement=skipElement+1
end
end
end
Matlab , .
. :
for i=1:size(b) % b a
a(1,size(a)+i)=b(1,i);
end
for j=1:size(b)
c=b(1,j); %c j- b
d=a; %d
d(1,size(a)+j)=[]; % (" " + j)- d
...
end
. - for while ?Last edited by badboybadboy; 10th December 2009 at 00:50.




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in