Skip to content

Instantly share code, notes, and snippets.

View codebyAbhishekBharti's full-sized avatar

Abhishek Bharti codebyAbhishekBharti

View GitHub Profile
class Solution {
long long int ans =0,val,n;
int mod=1e9+7;
public:
void solver(vector<int>& nums,int i,int mini, int maxi){
if(i>=n){
if(mini!=INT_MAX and maxi!=INT_MIN){
if(mini+maxi<=val){ans++;}
}
return;