Skip to content

Instantly share code, notes, and snippets.

View hmasum52's full-sized avatar
🎯
Focusing

Hasan Masum hmasum52

🎯
Focusing
View GitHub Profile
// app level
plugins {
id 'com.android.application'
//id 'com.google.gms.google-services'
//to read key from local.properties
id 'com.google.secrets_gradle_plugin' version '0.5'
}
// https://guides.codepath.com/android/Storing-Secret-Keys-in-Android#hidden-in-buildconfigs
@hmasum52
hmasum52 / lineartime_fractional_knapsack.cpp
Last active August 26, 2021 17:05
Fractional Knapsack in linear time.
/*
@author Hasan Masum
@date 26 aug, 2021
tutorial followed: https://cs.stackexchange.com/questions/11620/fractional-knapsack-in-linear-time/11622#11622
*/
#include<bits/stdc++.h>
using namespace std;
// fractional knapsack
struct item{