Skip to content

Instantly share code, notes, and snippets.

Tej Qu Nair tqn

Block or report user

Report or block tqn

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
tqn / dijkstra.cpp
Last active Aug 2, 2019
Dijkstra's algorithm using a binary heap priority queue
View dijkstra.cpp
#include <algorithm>
#include <memory>
#include <vector>
#include <unordered_map>
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
tqn / maxflow.cpp
Last active Dec 12, 2016
USACO Platinum Problem #1 ( with time complexity O(n^2) (too slow)
View maxflow.cpp
#include <algorithm>
#include <ctime>
#include <fstream>
#include <iostream>
#include <limits>
#include <queue>
#include <string>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
tqn / gitid
Last active Dec 20, 2015
Gets insertions and deletions from the initial commit.
View gitid
git diff --shortstat $(git rev-list HEAD | tail -n 1)

Keybase proof

I hereby claim:

  • I am tqn on github.
  • I am tej ( on keybase.
  • I have a public key whose fingerprint is 8D78 3F31 C97E 924D 9BE3 72E7 82CA 0E4B F5CB CB83

To claim this, I am signing this object:

View gist:19971ed9192f9dff5bcc
Verifying I am +tejqnair on my passcard.
You can’t perform that action at this time.