Given a number N, the task is to find the number of ways N can be partitioned, i.e. the number of ways that N can be expressed as a sum of positive integers. Note: N should also be considered itself a way to express it as a sum of positive integers.Examples: Input: N = 5Output: […]

## Find four factors of N with maximum product and sum equal to N | Set-2

#include <bits/stdc++.h> using namespace std; void findfactors(int n) { unordered_map<int, int> mpp; vector<int> v, v1; for (int i = 1; i <= sqrt(n); i++) { if (n % i == 0) { v.push_back(i); if (i != (n / i) && i != 1) v.push_back(n / i); } } […]

## Cohesity internship interview

Round 1:The first round was an online round held on Hackerearth. It had 2 questions of easy-medium level.Easliy solvable with decent coding skills. Round 2:This was a Zoom online interview round lasting for about 45 mins. The interviewer went through my resume and asked me to describe my projects.Tip : Know about each word in […]