This file contains 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
using namespace std; | |
#include<bits/stdc++.h> | |
int main() | |
{ | |
int n; | |
cin>>n; | |
int a[n+2]; | |
a[0] = a[n+1] = 0; | |
for(int i = 1; i<=n; i++) |
This file contains 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
using namespace std; | |
#include <bits/stdc++.h> | |
#define trace(x) cout<<#x<<": "<<x<<" "; | |
int main() | |
{ | |
ios_base::sync_with_stdio(false); | |
cin.tie(NULL); | |
cout.tie(NULL); | |
This file contains 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
using namespace std; | |
#include <bits/stdc++.h> | |
#define trace(x) cout<<#x<<": "<<x<<" "; | |
typedef struct node | |
{ | |
int data; |
This file contains 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; | |
/* A binary tree node has data, pointer to left child | |
and a pointer to right child */ | |
struct Node | |
{ | |
int data; | |
struct Node* left; | |
struct Node* right; | |
}; |
This file contains 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
using namespace std; | |
#include <bits/stdc++.h> | |
#define trace(x) cout<<#x<<": "<<x<<" "; | |
int solve(string s, int n, int k) | |
{ | |
if(n == 0) | |
return s[k]; | |
int skip = k/((int)pow(2, n)); |
This file contains 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
using namespace std; | |
#include <bits/stdc++.h> | |
#define trace(x) cout<<#x<<": "<<x<<" "; | |
int main(int argc, char const *argv[]) | |
{ | |
vector<string> v; | |
string s; | |
getline(cin, s); |
This file contains 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
int main() { | |
int n,l,r; | |
cin>>n>>l>>r; | |
node *root; | |
root=new node; | |
node *trav=root; | |
for (int i=0 ; i<n ; i++) { | |
int x; |
This file contains 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
from kivy.uix.boxlayout import BoxLayout | |
from kivy.app import App | |
from kivy.uix.button import Button | |
from functools import partial | |
class DemoBox(BoxLayout): | |
def __init__(self, **kwargs): | |
super(DemoBox, self).__init__(**kwargs) | |
self.orientation = "vertical" |
This file contains 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
from kivy.app import App | |
from kivy.uix.button import Button | |
from kivy.uix.label import Label | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.lang import Builder | |
from kivy.uix.popup import Popup | |
import libxml2 | |
This file contains 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
from pythonforandroid.toolchain import (CythonRecipe, shprint, | |
current_directory, info, Recipe) | |
from pythonforandroid.patching import will_build, check_any | |
import sh | |
from os.path import join | |
class Libxml2Recipe(Recipe): | |
version = '2.9.3' | |
url = 'ftp://xmlsoft.org/libxml2/libxml2-{version}.tar.gz' |
NewerOlder