https://leetcode.com/problems/longest-consecutive-sequence/description/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
int longestConsecutive(vector<int>& nums) {
int ans = 0;
https://leetcode.com/problems/happy-number/description/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
int getNext(int n) {
int res = 0;
string str = to_string(