Abhinaw TripathiJun 15, 20161 min readThread DeadlocksDeadlock of Threads: When a thread has locked an object and waiting for another object to be released by another thread,and the other...
Abhinaw TripathiMay 25, 20161 min readVery Common Problem on Matrix,if an element in an MXN matrix is 0,its entire row and column are set Solution: public void setZero(int[][] matrix) { boolean[] row= new boolean[matrix.length]; boolean[] row= new...
Abhinaw TripathiMay 25, 20161 min readWrite a method to rotate the image by 90 degree.(In place operation is required).Let say you have an image represented by an NXN matrix where each pixel in the image is 4 byte.So rotate this image in place by 90...