## Profile

Jayesh Patel
Lives in Pune, Maharashtra, India
24 followers|1,513,944 views

## Stream

### Jayesh Patel

Shared publicly  -

Search in a row wise and column wise sorted matrix. In this approach, we will start our search by looking at Right most element of first row. If Current Element = Search element, Return True, element found. Java Program to Search in a row wise and column wise sorted matrix.
1

### Jayesh Patel

Shared publicly  -

Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord.
1

### Jayesh Patel

Shared publicly  -
1

### Jayesh Patel

Shared publicly  -

Lets see 2 approaches to solve problem. one with constant extra space and another approach where we use Queue.
1

### Jayesh Patel

Shared publicly  -

Find Saddle point in a matrix. What is Saddle point of Matrix? Element is said to be Saddle point of Matrix if it is both a minimum of its row and a maximum of its column or vice versa. A matrix may have 1 or 2 saddle points or may not have a saddle point. Java Program to Print Saddle point of Matrix
1

### Jayesh Patel

Shared publicly  -

Print Nodes at given Level﻿
Given a Binary Tree, Print all Nodes that are at K distance from root node in Binary Tree. You can also think of this question as Print nodes at a given level. Algorithm: 1. Do a Pre-Order traversal of Tree and and decrement K each time you move to left or right. 2. when K = 0, it means that is the level we are interested in. So print the Node and return.
1

11 communities

### Jayesh Patel

Shared publicly  -
1

### Jayesh Patel

Shared publicly  -
1

### Jayesh Patel

Shared publicly  -

Print Matrix Diagonally or Loop diagonally through two dimensional array or Traverse an array diagonally or print elements of Matrix in Diagonal order. Java Program to Print Matrix Diagonally.
1

### Jayesh Patel

Shared publicly  -
1

### Jayesh Patel

Shared publicly  -

Print nodes at K distance from Leaf node in binary tree. Given a Binary Tree, Print all Nodes that are at K distance from leaf node in Binary Tree. We already saw how to Print Nodes at K distance from Root in Binary Tree. Java Program to Print Nodes at K distance from Leaf Node.
1

### Jayesh Patel

Shared publicly  -

Rotate matrix by 90 degree. There are 2 ways to Rotate a Matrix by 90 degrees clockwise. In Place or using extra memory. For Rotating a matrix to 90 degrees clockwise, We need to transform each row of a Matrix to a column in rotated matrix. Java Program to Rotate a Matrix by 90 degrees
1