Skip to content

Instantly share code, notes, and snippets.

View feynon's full-sized avatar
🧑‍🍳
cook and let cook

Ankesh Bharti feynon

🧑‍🍳
cook and let cook
View GitHub Profile
@feynon
feynon / quadexpc.c
Created October 10, 2018 14:58
Program to find roots of quadratic expression in C.
//To find quadratic roots of an equation
#include <stdio.h>
#include <math.h>
int main()
{
float a, b, c;
float d, r1, r2;
printf("Enter quadratic equation in the format ax^2+bx+c: ");
@feynon
feynon / cloudSettings
Created October 29, 2018 14:43
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-29T14:43:44.469Z","extensionVersion":"v3.2.0"}
@feynon
feynon / halfo.cpp
Created October 31, 2018 07:04
HalfOfHalf
/*
Input:
4
your
progress
is
noticeable
Output:
y
/*
Input:
4
your
progress
is
noticeable
Output:
y
//https://www.spoj.com/problems/CPTTRN1/
/*
Input:
3
3 1
4 4
2 5
Output:
#include <iostream>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
int n, i, j;
scanf("%d",&n);
for(i=0;i<n+1;i++){
for(j=0;j<n+1;j++){
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
using namespace std;
int gradingStudents(int n,int a[]){
/*
ABCDE
FGHI
JKL
MN
O
*/
#include <stdio.h>
/*
ABCDE
FGHI
JKL
MN
O
*/
#include <stdio.h>