Learn and Grow

Veritas (On Campus) Interview Experience -2022 | 2023

Veritas came to our college to hire students. An HR interview, two technical interviews, and aptitude +Technical tests were all part of the hiring process. Company name: Veritas Result: selected Position: STQA Rounds: 4 Connect with me on LinkedIn : HERE. Round 1 (Online

Leet Code : Trapping Rain Water Solution Java | CPP | JS

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining. Input: height = [0,1,0,2,1,0,1,3,2,1,2,1] Output: 6 Explanation: The above elevation map (black section) is represented by array [0,1,0,2,1,0,1,3,2,1,2,1].

Leet Code : Validate Binary Search Tree Java | CPP | Python solution

Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as follows: Input: root = [2,1,3] Output: true Solution : Java DFS : Python : CPP : Inorder solution :

Leet Code : Maximum Score from Performing Multiplication Operations Cpp | Java | Python solution

Two integer arrays, nums and multipliers, of sizes n and m, respectively, are provided to you, where n >= m. The arrays are all one-dimensional. You start with a score of zero. You need to carry out precisely m operations.

Leet Code : Three (3) Sum Java | CPP | Python Solution

Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not contain duplicate triplets. Example 1: Input: nums