摘要:
Question:Given an M x N matrix in which each row and each column is sorted in ascending order, write a method to find an element. 1 package POJ; 2 3 ... 阅读全文
摘要:
Question:Given a sorted array of strings which is interspersed with empty strings, write a method to find the location of a given string. 1 package P... 阅读全文
摘要:
Question:Given a sorted array of n integers that has been rotated an unknown number of times, write code to find anelement in the array. You may assum... 阅读全文
摘要:
Question:Write a method to sort an array of strings so that all the anagrams are next to each other. 1 package POJ; 2 3 import java.util.Arrays; 4 im... 阅读全文
摘要:
Question:You are given two sorted arrays, A and B, where A has a large enough buffer at the end to hold B.Write a method to merge B into A in sorted o... 阅读全文