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
| void setup() { | |
| // put your setup code here, to run once: | |
| pinMode(4,INPUT); | |
| pinMode(13,OUTPUT); | |
| } | |
| void loop() { | |
| // put your main code here, to run repeatedly: |
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<ESP8266WiFi.h> | |
| #include<Adafruit_NeoPixel.h> | |
| #include<ESP8266WebServer.h> | |
| #define SSID "Rohik" | |
| #define SSID_PASSWORD "rohik@999" | |
| Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, 12, NEO_GRB + NEO_KHZ800); | |
| ESP8266WebServer server(80); |
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 <cmath> | |
| #include <cstdio> | |
| #include <vector> | |
| #include <iostream> | |
| #include <algorithm> | |
| #include<utility> | |
| using namespace std; | |
| int max(int a,int b) | |
| { | |
| return (a>b)? a : 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 <cmath> | |
| #include <cstdio> | |
| #include <vector> | |
| #include <iostream> | |
| #include <algorithm> | |
| #include<utility> | |
| using namespace std; | |
| int getMax(vector<int> &Active) | |
| { | |
| int max=Active[0],pos=0; |
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 <cmath> | |
| #include <cstdio> | |
| #include <vector> | |
| #include <iostream> | |
| #include <algorithm> | |
| #include<utility> | |
| #include<iomanip> | |
| using namespace std; | |
| bool myfunction( pair<int,int> a,pair<int,int> 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 <cmath> | |
| #include <cstdio> | |
| #include <vector> | |
| #include <iostream> | |
| #include <algorithm> | |
| #include<utility> | |
| #include<map> | |
| using namespace std; | |
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 "Song.h" | |
| #include<vector> | |
| using namespace std; | |
| class AllSongs{ | |
| private: | |
| vector<Song> Songs; | |
| int count; | |
| void setCount(){ | |
| count=0; |
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<vector> | |
| #include "AllSongs.h"; | |
| #include "Song.h"; | |
| using namespace std; | |
| void AllSongs::displaySongs() | |
| { | |
| for(int i=0;i<count;i++) | |
| { | |
| Song s=this->Songs[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<vector> | |
| #include "Song.h" | |
| using namespace std; | |
| class AllSongs{ | |
| private: | |
| vector< Song > Songs; | |
| int count; | |
| void setCount(){ | |
| count=0; |
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 <cmath> | |
| #include <cstdio> | |
| #include <vector> | |
| #include <iostream> | |
| #include <algorithm> | |
| using namespace std; | |
| void print(vector<vector<int>>mat ) | |
| { | |
| int n=mat.size(); | |
| for(int i=0;i<n;i++) |