This is my code that should print the pascal’s triangle , But it does not work and i don’t know why?
#include <bits/stdc++.h> using namespace std; void solve(vector<vector<long long>> &answer, vector<long long> first, int n) { if (n == 0) { return; } vector<long long> second; for (int i = -1; i < first.size(); i++) { if (i == -1) { second.push_back(first[0]); continue; } if (i == first.size() – 1) { second.push_back(first.back()); continue; } long long […]
This is my code that should print the pascal’s triangle , But it does not work and i don’t know why?
#include <bits/stdc++.h> using namespace std; void solve(vector<vector<long long>> &answer, vector<long long> first, int n) { if (n == 0) { return; } vector<long long> second; for (int i = -1; i < first.size(); i++) { if (i == -1) { second.push_back(first[0]); continue; } if (i == first.size() – 1) { second.push_back(first.back()); continue; } long long […]
This is my code that should print the pascal’s triangle , But it does not work and i don’t know why?
#include <bits/stdc++.h> using namespace std; void solve(vector<vector<long long>> &answer, vector<long long> first, int n) { if (n == 0) { return; } vector<long long> second; for (int i = -1; i < first.size(); i++) { if (i == -1) { second.push_back(first[0]); continue; } if (i == first.size() – 1) { second.push_back(first.back()); continue; } long long […]
what are necessary concepts in c programming which we should not skip or most imp for further
I am learning c programming currently I’m 18 I just wanted to focus on core and important concepts which are helpful for c++ and DSA as I’m learning C to clear my core concepts IM going to learn each and everything for all rounder knowledge but which are the main topic or most important topic