LeetCode 654. Maximum Binary Tree

 1234567 /**  * Definition for a binary tree node.  * struct TreeNode {  *     int val;  *     struct TreeNode *left;  *     struct TreeNode *right;  *[......]

LeetCode 179. Largest Number

 1234 class Solution {         public String largestNumber(int[] nums) {             String[] numStrArr=new String[nums.length];             for(int i=[......]

LeetCode 985. Sum of Even Numbers After Queries

 123456789 static auto x = []() {     ios::sync_with_stdio(false);     cin.tie(nullptr);     return 0; }(); class Solution { public:     vector sumEven[......]

LeetCode 1051. Height Checker

 123456789 static auto x = []() {     ios::sync_with_stdio(false);     cin.tie(nullptr);     return 0; }(); class Solution { public:     int heightChec[......]

LeetCode 414. Third Maximum Number

 123456789 static auto x = []() {     ios::sync_with_stdio(false);     cin.tie(nullptr);     return 0; }(); class Solution { public:     int thirdMax(v[......]

using pymongo to change the timestamp into datetime in mongoDB Atlas

In an assignment in the USYD, I have to update all the records in a collection as I want the timestamp in the format of ISODate, while it is timestamp[……]

LeetCode 912. Sort an Array

 123456789 static auto x = []() {     ios::sync_with_stdio(false);     cin.tie(nullptr);     return 0; }(); class Solution { public:     vector sortArr[......]

LeetCode 151. Reverse Words in a String

 12345678 class Solution(object):     def reverseWords(self, s):         """         :type s: str         :rtype: str         """                 arr=[......]