You are on page 1of 6

Magic Land

You are given a grid of size NMNM where NN and MM denotes the number of rows and columns
respectively. Each cell of the grid is filled with some number.

Now, We define a quantity called Magic Number for each row and column as the maximum number of
consecutive adjacent elements having the same number. Now the password of the entry gate is the defined
as the MAXMAX of MRMR[i]*MCMC[j] where MRMR[i] and MCMC[j] refers to Magic number of ithith row
and jthjth column respectively.

Can you find the password ?

Input:

First line containts TT denoting number of test cases. For each of the test case, the first line
contains NN and MM. After that NN lines having MM integers are provided.

Output:

For each test case, output the value of password in a separate line.

Constraints:

1T51T5

1N,M10001N,M1000

1A[i]1001A[i]100

Sample Input
2
1 1
5
2 2
1 2
1 3
Sample Output
1
2
Gieom - Kickstarter

[Problem Statement]

Develop a pseudo front end application which would let the users help list and browse top
Kickstarter projects conveniently.

[Minimum Requirement]

Use of Web API to fetch project details.

Utilise Response Parameters:

[s.no, amt.pledged, blurb, by, country, currency, end.time, location, percentage.funded,


num.backers, state, title, type, url].

Implement functionality to list project details in a web page.

Visually interactive responsive design listing all the projects.

Use your imagination and add features which would make things easier for end users.

Zip all your Source code, Screenshot, & Deployment Instructions and upload.

[Plus Point]

A feature to Search (via name).

Implement Sort feature (to filter result through percenatge funded in ascending and
descending order).

href url parameter.(Should open in new window | target="_blank")

Use your imagination and add features which would make things easier for end users.

Zip all your Source code, Screenshot, & Deployment Instructions and upload.

[Extra Work]

Implement feature to sort projects based on end time.(Sort based on old-to-new and new-to-
old).

Add autocomplete feature to Search projects conveniently.

Custom elegant design, fonts and icons to make web app more user-friendly.
You may add portfolio activity comprising awesome work you have done on web
application(s).

Use your imagination and add features which would make things easier for end users.

[Guide]

Gieom Kickstarter API: http://starlord.hackerearth.com/kickstarter

Frontend Stack:

Vanilla Javascript, jQuery, HTML, CSS.

Custom CSS, Good if you can work around Bootstrap or Material Design.

Optional: Typography, Subtle pattern, Custom Icons.

Good to have: Angular2 or React.

Prepend https://www.kickstarter.com/ before every Url param from API Response.

PS: Application can be built with use of client-side scripting and need not require any
backend.

HTML5 Local Storage: http://html5demos.com/storage

For icons and subtle texture:

http://glyphsearch.com/

http://subtlepatterns.com/thumbnail-view/

http://codebeautify.org/jsonviewer

http://www.flaticon.com/categories

[Wireframe MVP / Reference Structure]

Mockup image with instructions


Note: Mockup design is just a reference made available to kickstart the design process,
you are free to come up with your own design, we always admire creativity.

[API Params]

amt.pledged: amount pledged

blurb: project blurb

by: project creator

country: abbreviated country code

currency: currency type of amt.pledged

end.time: campaign end time (string "YYYY-MM-DDThh:mm:ss-TZD")

location: mostly city

pecentage.funded: unit %

num.backers: total number of backers


state: mostly US states (string of length 2) and others

title: project title

type: type of location (string: County/Island/LocalAdmin/Suburb/Town/Zip)

url: project url after domain (string)