Skip to content

Instantly share code, notes, and snippets.

View hamzahasbi's full-sized avatar
:atom:
Self-branding

Hasbi Hamza hamzahasbi

:atom:
Self-branding
View GitHub Profile
#include<bits/stdc++.h>
#define ll long long
#define ld long double
using namespace std;
main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
map<int,bool>mark;
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++)
{
if(abs(a[i]-b[j])<=1)
{
if(!mark[j] )
{
/*
Author: Hamza Hasbi
Date: 08-Jun-16 4:23:54 PM
*/
#include<bits/stdc++.h>
#define ll long long
#define ld long double
using namespace std;
main()
{
@hamzahasbi
hamzahasbi / formatjson.js
Created June 11, 2016 15:52 — forked from kristopherjohnson/formatjson.js
Read JSON from standard input and writes formatted JSON to standard output. Requires Node.js.
#!/usr/bin/env node
// Reads JSON from stdin and writes equivalent
// nicely-formatted JSON to stdout.
var stdin = process.stdin,
stdout = process.stdout,
inputChunks = [];
stdin.resume();