[algogeeks] what is the problem

2011-08-08 Thread Arshad Alam
/* Given an array p[5], write a function to shift it circularly left by two positions.Thus, if p[0] = 15, p[1]= 30, p[2] = 28, p[3]= 19 and p[4] = 61 then after the shift p[0] = 28, p[1] = 19, p[2] = 61, p[3] = 15 and p[4] = 30. Call this function for a (4 x 5 ) matrix and get its rows left shifte

[algogeeks] what is the problem

2011-08-07 Thread Arshad Alam
/* Given an array p[5], write a function to shift it circularly left by two positions.Thus, if p[0] = 15, p[1]= 30, p[2] = 28, p[3]= 19 and p[4] = 61 then after the shift p[0] = 28, p[1] = 19, p[2] = 61, p[3] = 15 and p[4] = 30. Call this function for a (4 x 5 ) matrix and get its rows left shifte