Skip to content

Instantly share code, notes, and snippets.

View sethupathib's full-sized avatar
💭
I may be slow to respond.

Sethupathi Balakrishnan sethupathib

💭
I may be slow to respond.
View GitHub Profile
@sethupathib
sethupathib / Makefile
Created September 8, 2021 01:38 — forked from ecnerwala/Makefile
Competitive Programming Makefile
# +--------------------+
# | |
# | GENERAL CONFIG |
# | |
# +--------------------+
PROBLEM_NAME := problem_name
DEBUG := true
LANG := cpp
@sethupathib
sethupathib / download_prob.py
Created September 8, 2021 01:38 — forked from ecnerwala/download_prob.py
ecnerwala's CP template system
#!/usr/bin/env python3
"""Download and setup problems from Competitive Companion
Usage:
download_prob.py --echo
download_prob.py [<name>... | -n <number> | -b <batches> | --timeout <timeout>] [--dryrun]
Options:
-h --help Show this screen.
--echo Just echo received responses and exit.
#include<cmath>
#include<iostream>
#include<climits>
using namespace std;
int Maximum_Sum_Subarray(int arr[],int n) //Overall Time Complexity O(n)
{
int ans = A[0],sum = 0;
for(int i = 1;i < n; ++i) //Check if all are negative
ans = max(ans,arr[i]);
@sethupathib
sethupathib / cp_syllabus.md
Created August 16, 2020 09:06 — forked from sharmaeklavya2/cp_syllabus.md
Competitive Programming Syllabus

Competitive Programming Syllabus

Geometry

  • Problems - Refer the article for a list of problems which can be solved using Rotating Calipers technique.