Skip to content

Instantly share code, notes, and snippets.

Patil Arpith patilarpith

Block or report user

Report or block patilarpith

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
patilarpith /
Last active Feb 3, 2018
Custom-Checker body section for list of 5 prime numbers under 100
// Start of BODY
public class CustomChecker {
static boolean is_prime_number(int n) {
for(int i=2;i<n;i++) {
return false;
return true;
patilarpith / Solution.scala
Last active Mar 7, 2017
Custom checker in scala
View Solution.scala
// Start of HEAD
import org.json.simple.JSONArray
import org.json.simple.JSONObject
import org.json.simple.parser.JSONParser
import collection.JavaConversions._
// End of HEAD
// Start of Body
// Start of HEAD
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
// End of HEAD
patilarpith / CustomChecker.cpp
Last active Sep 20, 2016
Custom checker in C++
View CustomChecker.cpp
// Start of HEAD
#include <map>
#include <cmath>
#include <cstdio>
#include <vector>
#include <fstream>
#include <iostream>
#include <algorithm>
#ifdef __APPLE__
#include <json/json.h>
patilarpith /
Last active Sep 1, 2016
Custom checker in Python
# Start of HEAD
import json
import string
import sys
# End of HEAD
# Start of BODY
View CustomChecker.rb
# Start of HEAD
require 'json'
TestStruct =
patilarpith /
Created Aug 9, 2016
Quora Answer Classifier
import sys
import numpy as np
f = sys.stdin
# f = open("../input00.txt")
[n, m] = map(int, f.readline().strip().split())
X = np.zeros((n, m), dtype="float")
Y = np.zeros(n)
View solution.c
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#define getR(value) ((value & 0x0000FF00) >> 8)
#define getG(value) ((value & 0x00FF0000) >> 16)
#define getB(value) ((value & 0xFF000000) >> 24)
int main() {
You can’t perform that action at this time.