Skip to content

Instantly share code, notes, and snippets.

View nellybaz's full-sized avatar

Nelson Bassey nellybaz

  • London
View GitHub Profile
// Class name must be "Main"
// Libraries included:
// json simple, guava, apache commons lang3, junit, jmock
//Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:
//- Each row must contain the digits 1-9 without repetition.
//- Each column must contain the digits 1-9 without repetition.
//- Each of the 9 3x3 sub-boxes of the grid must contain the digits 1-9 without repetition.
<?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Methods: POST");
header("Access-Control-Max-Age: 3600");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
include("../functions/functions.php");
$res = "";
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
Web Filter Violation
</title>
<style type="text/css">
html, body {
margin: 0;
INFO global: Vagrant version: 2.1.5
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_USR_DIR="/tmp/.mount_vagranz3yhFH/usr/bin/../"
INFO global: VAGRANT_APPIMAGE_LD_LIBRARY_PATH="/tmp/.mount_vagranz3yhFH/usr/bin/lib/x86_64-linux-gnu:/tmp/.mount_vagranz3yhFH/usr/bin/usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/libfakeroot:/usr/local/lib:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib::/tmp/.mount_vagranz3yhFH/usr/lib/:/tmp/.mount_vagranz3yhFH/usr/lib/i386-linux-gnu/:/tmp/.mount_vagranz3yhFH/usr/lib/x86_64-linux-gnu/:/tmp/.mount_vagranz3yhFH/usr/lib32/:/tmp/.mount_vagranz3yhFH/usr/lib64/:/tmp/.mount_vagranz3yhFH/lib/:/tmp/.mount_vagranz3yhFH/lib/i386-linux-gnu/:/tmp/.mount_vagranz3yhFH/lib/x86_64-linux-gnu/:/tmp/.mount_vagranz3yhFH/lib32/:/tmp/.mount_vagranz3yhFH/lib64/:"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/tmp/.mount_vagranz3yhFH/usr/bin/../.."
INFO global: VAGRANT_BIN_DIR="/tmp/.mount_vagr
INFO global: Vagrant version: 2.1.5
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_USR_DIR="/tmp/.mount_vagran0L26zL/usr/bin/../"
INFO global: VAGRANT_APPIMAGE_LD_LIBRARY_PATH="/tmp/.mount_vagran0L26zL/usr/bin/lib/x86_64-linux-gnu:/tmp/.mount_vagran0L26zL/usr/bin/usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/libfakeroot:/usr/local/lib:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib::/tmp/.mount_vagran0L26zL/usr/lib/:/tmp/.mount_vagran0L26zL/usr/lib/i386-linux-gnu/:/tmp/.mount_vagran0L26zL/usr/lib/x86_64-linux-gnu/:/tmp/.mount_vagran0L26zL/usr/lib32/:/tmp/.mount_vagran0L26zL/usr/lib64/:/tmp/.mount_vagran0L26zL/lib/:/tmp/.mount_vagran0L26zL/lib/i386-linux-gnu/:/tmp/.mount_vagran0L26zL/lib/x86_64-linux-gnu/:/tmp/.mount_vagran0L26zL/lib32/:/tmp/.mount_vagran0L26zL/lib64/:"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/tmp/.mount_vagran0L26zL/usr/bin/../.."
INFO global: VAGRANT_BIN_DIR="/tmp/.mount_vagr
@nellybaz
nellybaz / vagrant log
Created October 9, 2018 09:01
vagrant log
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Use this Vagrant configuration file for local installation of the Oro application.
# Please, refer to the Oro Applications installation guides for the detailed instructions:
# https://oroinc.com/b2b-ecommerce/doc/current/install-upgrade/one-step-automated-installation/vagrant
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
INFO global: Vagrant version: 2.1.2
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_USR_DIR="/tmp/.mount_vagranYxQ5BA/usr/bin/../"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/tmp/.mount_vagranYxQ5BA/usr/bin/../.."
INFO global: VAGRANT_BIN_DIR="/tmp/.mount_vagranYxQ5BA/usr/bin"
INFO global: VAGRANT_APPIMAGE="1"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!