Coding Interviews

### How To Ace Coding Interviews at Top Tech (FAANG) Companies.

Prepping for interviews at top tech companies or sometimes we most often use the term as FAANG(Facebook, Amazon, Apple, Netflix, and Google).

Coding Interviews

Prepping for interviews at top tech companies or sometimes we most often use the term as FAANG(Facebook, Amazon, Apple, Netflix, and Google).

Code Chef

You are given two integers N and K. You may perform the following operation any number of times (including zero): change N to N−K, i.e. subtract K from N. Find the smallest non-negative integer value of N you can obtain this way. Input * The first line of the

Code Chef

Chef has three spells. Their powers are A, B, and C respectively. Initially, Chef has 00 hit points, and if he uses a spell with power P, then his number of hit points increases by P. Before going to sleep, Chef wants to use exactly two spells out of these

Code Chef

Chef is a software developer, so he has to switch between different languages sometimes. Each programming language has some features, which are represented by integers here. Currently, Chef has to use a language with two given features A and B. He has two options — switching to a language with two

Code Chef

Chef prepared a problem. The admin has rated this problem for x points. A problem is called : 1. Easy if 1 ≤ x < 100 2. Medium if 100 ≤ x < 200 3. Hard if 200 ≤ x ≤ 300 Find the category to which Chef’s problem belongs. Input Format * The first

Code Chef

Chef has been searching for a good motivational movie that he can watch during his exam time. His hard disk has X GB of space remaining. His friend has N movies represented with (Si ,Ri ) representing (space required, IMDB rating). Help Chef choose the single best movie (highest IMDB rating)

Code Chef

Chef has taken his first dose of vaccine D days ago. He may take the second dose no less than L days and no more than R days since his first dose. Determine if Chef is too early, too late, or in the correct range for taking his second dose.

Code Chef

Chef aims to be the richest person in Chefland by his new restaurant franchise. Currently, his assets are worth A billion dollars and have no liabilities. He aims to increase his assets by X billion dollars per year. Also, all the richest people in Chefland are not planning to grow

Code Chef

You and your friend are playing a game with hoops. There are N hoops (where N is odd) in a row. You jump into hoop 1, and your friend jumps into hoop N. Then you jump into hoop 2, and after that, your friend jumps into hoop N−1, and

Code Chef

Chef prepared two dishes yesterday. Chef had assigned the tastiness T1 and T2 to the first and to the second dish respectively. The tastiness of the dishes can be any integer between 0 and N (both inclusive). Unfortunately, Chef has forgotten the values of T1 and T2 that he had

Linux Foundation

Unlock Your Potential with 50% Off On Training and Certifications at Linux Foundation!

Coding Interviews

Java LeetCode - Longest Substring Without Repeating Characters Solution