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<stdlib.h> | |
| #include<stdio.h> | |
| #include <GL/gl.h> | |
| #include <GL/glut.h> | |
| float x1, x2, y1, y2; | |
| void display(void) { | |
| float dy, dx, step, x, y, k, Xin, Yin; | |
| dx = x2 - x1; |
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<time.h> | |
| #include<conio.h> | |
| #include<stdio.h> | |
| #include<windows.h> | |
| #include<dos.h> | |
| #include<stdlib.h> | |
| void Time_Setter(); | |
| int t=30; | |
| int c=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
| class Solution { | |
| public: | |
| int lengthOfLIS(vector<int>& nums) | |
| { | |
| int n=nums.size(); | |
| int dp[n+1]; | |
| memset(dp,0,sizeof(dp)); | |
| dp[0]=0; | |
| int ans=0; |