educative.io

Median assignment in the brute force solution when total size is odd

In the Brute force solution on line 29 should the statement be median = array2[j]; instead of median = array1[j];?

Hi @Yerramsetty_Ganesh_D,

Thank you so much for pointing out a typo mistake and it has been updated, please keep letting us know about any further typo mistakes if you find any.

Thanks.

1 Like