Skip to content

Instantly share code, notes, and snippets.

View mayyuen318's full-sized avatar

May Yeung mayyuen318

View GitHub Profile
Input:
1. Search: Mcdonalds
2. Region: hk
--------------------------[1]--------------------------
{
"html_attributions" : [],
"next_page_token" : "xxxx"
{
"formatted_address" : "Langham Place Shopping Mall, 8 Argyle St, Mong Kok",
Input parameter:
1. Search: Chow Tai Fook
2. Region: hk
-------------------------[1]-------------------------
{
"html_attributions" : [],
"next_page_token" : "CpQCAQEAAMce1-W1pkbp09dcEyMjr0bcvofX-Dk1T5HCWpH4Pm4Fn9oj0IDdiyGrtn5oRLIjOFtoCCFs7Yu919Gg2CMxiw2XOTkri3BfdehcK_LmEBIPWsLB8bkAYqr7zqx3oCDkgZ-yQHJoh03-iRbQVRrLb7ev3OUchM-5yEKpk3fYJO4opSPn1QVt-dkqoIahzqKg7Ng9U_PyVbHRpp8oO3jymrf8Pi8miDulh4TsXTYV_It0D0vPgLZGwweTN6zuxRpR-PzNeRyq4ZYXMTT0NnLflvPx_vA3HUs2k1o2WmqhFinCK5QmF_2-sOoCg9cDk-cWkaWcwHAV0jxuDxSYXAuy99rAF_rkwOAbklcY2iEkGF7VEhACBF2AdRqqFfEbEZ-E605UGhQkqXNIXXltyePirnKRuA55AezDhw",
"results" : [
import java.util.HashSet;
import java.util.Set;
public class Sudoku {
public static boolean checkRow(int[][] sudoku) {
for (int i = 0; i < 9; i++) {
Set<Integer> row = new HashSet<Integer>();
for(int j = 0; j < 9; j++) {
if (sudoku[i][j] != 0) {