This problem was asked by Amazon. Given a matrix of 1s and 0s, return the number of islands in the matrix. A 1 represents land and 0 represents water, so an island is a group of 1s that are neighborin
This problem was asked by Amazon. Given a string s and an integer k, break up the string into multiple lines such that each line has a length of k or less. You must break it up so that words don t bre
Here s your coding interview problem for today. This problem was asked by Amazon. Given a N by M matrix of numbers, print out the matrix in a clockwise spiral. For example, given the following matrix
Solving array rotation problem is one of my favourite problem You have to rotate a 2D array with certain conditions This simple question has been asked in many different interviews in companies includ
First Non Repeating Character is another interview question that has been asked by Amazon and several companies Here you have to find first occurrence of aa non repeating character from a given string
Recent comments on amazon
No comments found