Leet code solution

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 Test) So, Guys, The first round was just a Qualifier test that shortlists the student […]

Veritas (On Campus) Interview Experience -2022 | 2023 Read More »

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

leetcode question solution

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]. In this case, 6 units of rain water (blue section) are being trapped. CPP solution

Leet Code : Trapping Rain Water Solution Java | CPP | JS Read More »

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

leetcode question 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. On the ith (1-indexed) action, you will: Choose one integer x from the beginning or

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

LeetCode 15 : Three (3) Sum

leetcode question solution

LeetCode 15. Pattern: Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “three sum” or “LeetCode .15” Approaches Two-Pointer Approach: 1. Sorting the Array 2. Initialization 3. Handling Edge Case 4. Main Loop Over Array 5. Duplicate Check 6. Two-Pointer Approach 7. Finding

LeetCode 15 : Three (3) Sum Read More »

Leet Code : Longest Palindromic Substring Java | CPP | Java Script | Python Solution

leetcode question solution

Given a string s, return the longest palindromic substring in s. A string is called a palindrome string if the reverse of that string is the same as the original string. Example 1: Input: s = “babad” Output: “bab” Explanation: “aba” is also a valid answer. Example 2: Input: s = “cbbd” Output: “bb” Solution : JavaScript : CPP

Leet Code : Longest Palindromic Substring Java | CPP | Java Script | Python Solution Read More »

Leet Code: Longest Substring Without Repeating Characters Java | JavaScript | CPP | Python Solution

leetcode question solution

Find the length of the longest substring without repeated characters given a string s. Example 1: Input: s = “abcabcbb” Output: 3 Explanation: The answer is “abc”, with the length of 3. Example 2: Input: s = “bbbbb” Output: 1 Explanation: The answer is “b”, with the length of 1. Example 3: Input: s =

Leet Code: Longest Substring Without Repeating Characters Java | JavaScript | CPP | Python Solution Read More »

EY – GDS (On campus) Interview Experience – 2022

Organization: Ernst and Young (EY-GDS) Designation:  Hey guys, I am Kavish Gidwani , placed in EY-GDS . sharing my interview experience. If you have any questions, please contact me on Linkedin: Link Round 1 (online test) The online test consists of the following sections for 65 minutes. It was organised through the AMCAT platform. Round 2 (Group Discussion) Duration

EY – GDS (On campus) Interview Experience – 2022 Read More »

JIO Interview Experience Campus | reliance jio interview questions – 2022

 jio interview experience:It was an on-campus hiring event for the JIO Sparks Program’s Graduate Engineer Trainee (GET) Role. jio spark hiring process ,reliance jio spark interview questions ,Pre-Placement discussions regarding the company and its requirements were followed by Round 1 of the Placement Drive. TIP: YOU CAN CONNECT WITH LINKDELIN : LINK jio interview rounds and process

JIO Interview Experience Campus | reliance jio interview questions – 2022 Read More »

leet code 1. Two sum (easy)

Leetcode 1. Two Sum

Leet Code 1. Two Sum : Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “two sum ” or “Leet Code .1‘ Time Complexity: C++: 1. Brute Force Approach: LeetCode 15 : Three (3) Sum Notice: This approach has a time complexity of

leet code 1. Two sum (easy) Read More »

Leet Code :Linked List Cycle II Java || Python || C++ solution

leetcode question solution

Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null. There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, pos is used to denote the index of the node that tail’s next pointer is connected

Leet Code :Linked List Cycle II Java || Python || C++ solution Read More »

Leet Code :Running Sum of 1d Array Solution C++ || Python || Java

leetcode question solution

Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running sum of nums. Example 1: Input: nums = [1,2,3,4] Output: [1,3,6,10] Explanation: Running sum is obtained as follows: [1, 1+2, 1+2+3, 1+2+3+4]. Example 2: Input: nums = [1,1,1,1,1] Output: [1,2,3,4,5] Explanation: Running sum is obtained as follows: [1, 1+1,

Leet Code :Running Sum of 1d Array Solution C++ || Python || Java Read More »

TCS and Infosys Database , SQL questions | TCS and Infosys Technical Round Question

What is the difference between inner and outer join? Explain with example. Inner Join Inner join is the most common type of Join which is used to combine the rows from two tables and create a result set containing only such records that are present in both the tables based on the joining condition (predicate).

TCS and Infosys Database , SQL questions | TCS and Infosys Technical Round Question Read More »