Cody

Zunaed Kibria

1138
Rank
4
Badges
1130
Score
1 – 50 of 110

Zunaed Kibria submitted a Comment to Solution 2161326

Why this code is doesnt pass though it gives me proper ans in matlab in = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890;,.!& ' out = 'NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm1234567890;,.!& ' s2 = s1 for i=1:length(s1) x= find(in == s1(i)) ; s2(i) = out(x) end specialcase = find(s2 == '&') if ~isempty(specialcase) s2(specialcase)='<' s2(specialcase+1:specialcase+3)=[] end

on 16 Mar 2020

Zunaed Kibria submitted Solution 2137591 to Problem 76. De-dupe

on 23 Feb 2020

Zunaed Kibria submitted a Comment to Solution 2123309

used this code : getting also the coreect and in my PC , but failed here ?? Can anyone help me ?? a=split(s1); for i=1:length(a) if (a{i}(1) == 'N' && a{i}(2)== 'e' && a{i}(3)== 'w') || (a{i}(1) == 'N' && a{i}(2)== 'o' && a{i}(3)== 'r' && a{i}(4)== 't' && a{i}(5)== 'h') a{i} = '0' ; a{i+1} = '0'; elseif a{i}(1) == 'N' a{i} = '0' ; end end str = (string(a)); str(find(str=='0'))=''; s2 = char(join(str))

on 10 Feb 2020

1 – 50 of 110