This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include<bits/stdc++.h> | |
using namespace std; | |
struct box | |
{ | |
int h,w,d; | |
}; | |
bool comp(box a,box b) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
int findLength(string str, int n) | |
{ | |
int sum[n]={0},max=INT_MIN; | |
sum[0]=str[0]-48; | |
for(int i=1;i<n;i++) | |
{ | |
sum[i]=sum[i-1]+str[i]-48; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A simple C based program to find length of longest even length | |
// substring with same sum of digits in left and right | |
#include<stdio.h> | |
#include<string.h> | |
#include<bits/stdc++.h> | |
using namespace std; | |
int findLength(string s) | |
{ | |
long long int max=INT_MIN; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
// Structure for tree and linked list | |
struct Node | |
{ | |
int data; | |
struct Node *left, *right; | |
}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
// A binary Tree node | |
struct node | |
{ | |
int data; | |
struct node *left, *right; | |
}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<queue> | |
#include<iostream> | |
#include<vector> | |
using namespace std; | |
struct node | |
{ | |
int p,i; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include<bits/stdc++.h> | |
using namespace std; | |
int main() { | |
string s; | |
cin>>s; | |
int n=s.size(); | |
map<char,int> my; | |
for(int i=0;i<n/2;i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include<bits/stdc++.h> | |
using namespace std; | |
struct gr | |
{ | |
int guess,cor; | |
}; | |
int main() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include<bits/stdc++.h> | |
using namespace std; | |
struct gr | |
{ | |
int x,y; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include<iostream> | |
using namespace std; | |
#define ROW 4 | |
#define COL 5 | |
struct node |
NewerOlder