Asif Newaz - MATLAB Cody - MATLAB Central

Asif Newaz

18
Rank
64
Badges
34747
Score
51 – 100 of 3,408

Asif Newaz submitted a Comment to Problem 56190. Split Even Number Into Two Primes

you should put some straight-forward test cases for easy debugging

on 11 Apr 2023

Asif Newaz submitted a Comment to Problem 55530. Jump Search - 01

@Dyuman Joshi If the jump step is larger than the array size, u jump to the last element of the array. (the problem definition is updated accordingly)

on 30 Sep 2022

Asif Newaz submitted a Comment to Problem 56070. Jump Search - 02

sorry for the mistakes - I put this problem in haste. I have checked all the test cases now - hopefully, everything is okay now. i have also updated the problem definition

on 30 Sep 2022

Asif Newaz submitted a Comment to Problem 56070. Jump Search - 02

thanks for pointing it out. Test case 7 was wrong - x and n values were interchanged. it has been fixed. However, in test cases 9 and 10 - a=[5, 10, 10, 10, 25, 30, 35, 35, 55, 65, 100, 600, 4000, 10000, 10000, 30000, 30000, 48000]; x=35; n=2; 5-->10-->25-->35-->30. so 4 jumps. since repetition is possible and you have to find the first occurrence, you do not know for sure once you reach 35 whether it is the first time it appeared. so u need to go backward to check whether it had appeared before till the previous jump point. Same for test case 10. hope it clarifies.

on 29 Sep 2022

Asif Newaz submitted a Comment to Problem 55530. Jump Search - 01

thanks william. it has been fixed

on 29 Sep 2022

Asif Newaz submitted Problem 55975. Magic Matrix to Community

on 20 Sep 2022

Asif Newaz submitted Solution 9083535 to Problem 55820. Buzz

on 20 Sep 2022

Asif Newaz submitted Solution 9083515 to Problem 55815. Fizz

on 20 Sep 2022

Asif Newaz submitted Solution 9075905 to Problem 55925. Tabuada

on 19 Sep 2022

Asif Newaz submitted Solution 9070160 to Problem 51122. Arrow!!

on 17 Sep 2022

51 – 100 of 3,408
Go to top of page