Coding Interview

[Google Interview] Find All Numbers Disappeared in an Array

🏗️ Company Tags: Google Problem Formulation Given an array nums of n integers. Return an array containing all the integers in the range[1, n]that do not appear in nums. ✒️ Here, nums[i] is in the range [1, n]. ⚠️Constraints: n == nums.length 1 <= n <= 105 1 <= nums[i] <= n 💡Examples Let’s have a look at some examples …

[Google Interview] Find All Numbers Disappeared in an Array Read More »

[Interview Question] Longest Substring Without Repeating Characters

🏗️ Company Tags: As reported by numerous programmers across the globe, this question has been asked in coding interviews/rounds by companies like: Amazon Adobe Bloomberg Yelp So, if you are preparing for your upcoming coding interview, then you might well come across this question in your coding round. Can you solve it optimally? Problem Formulation …

[Interview Question] Longest Substring Without Repeating Characters Read More »

[Google Interview] Find the k Closest Numbers in a Sorted Array

🏢 This is one of the Google interview questions and reported by programmers across the globe as one of the commonly asked questions during interviews. So, can you give the optimal solution to this problem? Problem Formulation Given an integer array or Python list nums, an integer value x and k. Find and return the …

[Google Interview] Find the k Closest Numbers in a Sorted Array Read More »

[Google Interview] Find the k-th Largest Element in an Unsorted Array

Do you train for your upcoming coding interview? This question was asked by Google as reported in multiple occasions by programmers all around the world. Can you solve it optimally? Let’s dive into the problem first. Problem Formulation Given an integer array or Python list nums and an integer value k. Find and return the …

[Google Interview] Find the k-th Largest Element in an Unsorted Array Read More »