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) { | |
| vector<int>ans; | |
| for(int i=0;i<nums.size();i++){ | |
| auto it = lower_bound(ans.begin(),ans.end(),nums[i]); | |
| if(it==ans.end()){ | |
| ans.push_back(nums[i]); | |
| }else{ | |
| *it = nums[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
| { | |
| "name": "test nft", | |
| "description": "Description for Test nft", | |
| "image": "https://raw.githubusercontent.com/programmingGod-byte/cpp-algorithm/refs/heads/main/logo.png" | |
| } |
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
| { | |
| "name": "test Collection", | |
| "description": "Description for Test collections", | |
| "image": "https://raw.githubusercontent.com/programmingGod-byte/cpp-algorithm/refs/heads/main/logo.png" | |
| } |
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
| { | |
| "name": "Devent Token", | |
| "symbol": "DEVT", | |
| "description": "Devent Token (DEVT) is a Solana-based utility token designed for powering decentralized event management and ticketing solutions.", | |
| "image": "https://example.com/images/devent_token.png" | |
| } |
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; | |
| void dfs(int node, vector<int> adj[], int vis[], vector<int> &ls) | |
| { | |
| vis[node] = 1; | |
| ls.push_back(node); | |
| for (auto it : adj[node]) | |
| { | |
| if (!vis[it]) |
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; | |
| class Solution { | |
| private: | |
| void dfs(int node, int vis[], stack<int> &st, | |
| vector<int> adj[]) { | |
| vis[node] = 1; | |
| for (auto it : adj[node]) { | |
| if (!vis[it]) dfs(it, vis, st, adj); |
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 partition(vector<int>& arr, int l, int r, int pivot){ | |
| int pivotIndex = find(arr.begin()+l, arr.begin()+r+1, pivot) - arr.begin(); | |
| swap(arr[pivotIndex], arr[r]); | |
| int storeIndex = l; | |
| for(int i = l; i < r; i++){ | |
| if(arr[i] < pivot){ |
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
| FROM ubuntu | |
| RUN apt-get update | |
| RUN apt-get install -y curl | |
| RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - | |
| RUN apt-get upgrade -y | |
| RUN apt-get install -y nodejs | |
| COPY package.json package.json | |
| COPY package-lock.json package-lock.json |