tag:blogger.com,1999:blog-4897852507236595019.post2043729469604766112..comments2023-10-28T02:22:32.291-07:00Comments on Techno Terminal: Count all possible paths from top left to bottom right of a m*n MatrixAnonymoushttp://www.blogger.com/profile/15672644251702841706noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4897852507236595019.post-29604259045067326802018-11-26T19:43:02.220-08:002018-11-26T19:43:02.220-08:00nagendra.zopaks@gmail.com send me correct codenagendra.zopaks@gmail.com send me correct codeAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4897852507236595019.post-28954673185067437172015-12-20T08:11:17.520-08:002015-12-20T08:11:17.520-08:00Wrong code. It assumes that when the person arrive...Wrong code. It assumes that when the person arrives anywhere in the last column, there is a path (except when value is zero). This is plain wrong. The rules still hold in the last column. The person might not be able to move down depending on the content of that cell and any below it. Same goes for last row.Anonymoushttps://www.blogger.com/profile/11815938177796979608noreply@blogger.comtag:blogger.com,1999:blog-4897852507236595019.post-928458722177010072015-12-08T01:45:17.952-08:002015-12-08T01:45:17.952-08:00Sorry for mistake, Output should be 2 acc to my ab...Sorry for mistake, Output should be 2 acc to my above comment and I have corrected some code. Mail me if you want corrected code.Mohit Rajputhttps://www.blogger.com/profile/06504448549070641265noreply@blogger.comtag:blogger.com,1999:blog-4897852507236595019.post-68039948311856873522015-12-08T01:32:29.293-08:002015-12-08T01:32:29.293-08:00Wrong code,
try input
1 3 0 0 0 0 0 0 4 5 1 0 0 0...Wrong code,<br />try input <br />1 3 0 0 0 0 0 0 4 5 1 0 0 0 0 6 7 1 0 0 0 0 5 0<br />Output should be 0 in this case but still it is 3. Please correctMohit Rajputhttps://www.blogger.com/profile/06504448549070641265noreply@blogger.comtag:blogger.com,1999:blog-4897852507236595019.post-13336271606917301402015-09-24T23:34:13.531-07:002015-09-24T23:34:13.531-07:00This post is good!
But it would be much more hel...This post is good! <br /><br />But it would be much more helpful if it was been explained in brief.<br /><br />I have gone through the same interview question which i have placed at http://i.stack.imgur.com/njEoi.png<br /><br />But the solution which you have provided has returned wrong results for {2,2} and {1,1,1,1}.<br />As, we need to get 0 as output but we are getting the output as 1.<br /><br />Explaining the Logic in brief would help to understand!.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4897852507236595019.post-74872007302269973452015-09-19T06:50:56.482-07:002015-09-19T06:50:56.482-07:00Thanks.Thanks.Anonymoushttps://www.blogger.com/profile/06422309851518892469noreply@blogger.com