Loading…

Implement an algorithm to print all valid

Given an input file with four billion non-negative integers

You have 20 bottles of pills

Write a function that adds two numbers

A magic index in an array A[1… n-1]

A magic index in an array A[1… n-1]

Implement an algorithm to determine

There’s a staircase

You have to get from point A to point B

Given a list of millions of words, design an algorithm

Design an evacuation plan of San Francisco residents

The task of the cashier-developer

Create a lock class to prevent deadlock

Create a method that counts a number

The Probability of Meeting a Car on a Deserted Highway

Finding the maximum of two numbers

The task of calendar gaps merging

The task of calendar gaps merging

The task of the ball with helium in the car

The task of Apple shares

In the darkroom, you are handed a deck of cards.

How far can you deliver cargo using N trucks?

In what situation you will get less wet getting to the car

You are given three boxes

You are given three boxes

You are given three boxes and you need to define which one contains the prize

Can you explain the code ((n & (n – 1)) == 0)

A logical task about the height of an egg crash

A logical task on placing the dices on a chessboard

What errors can cause a C application crash

Piece of cheese in the shape of a cube and a knife.

Piece of cheese in the shape of a cube and a knife.

You are given a piece of cheese in the shape of a cube and a knife.

Find errors in the following code block

10 thousand servers in the data centre with remote control.

You manage 10 thousand servers in the data centre with remote control.

You have an analogue clock with a second hand.

How many golf balls will be heard into the school bus?

How to determine duplicate URLs?

The task of the country with boys and girls

How to use a bent coin

The meaning of volatile in C

A classic task from interviews at Google

Task on list copying

Task on list copying

115 tasks from IT interviews

Books for Java beginners

How did I extensively simplify the interaction with Raspberry Pi?

Artificial intelligence is not what it seems.

Ada Lovelace

Want to know everything. Solidity

Books about programming: how and what to read

11 applications to learn programming on mobile devices

Top 10 TV series for IT geeks

Software development methodologies

60 movies about IT and programming

Ada Lovelace – the first developer in the world

9 reasons to change Windows 10 for Linux

25 most popular myths about programming and developers

Top 10 films and TV series on IT topics

A magic index in an array A[1… n-1]

Immediately, the brute force solution should jump to mind and there’s no shame in mentioning it. We simply iterate through the array, looking for an element which matches this condition.   int magicSlow(int[] array) { for (int i= 0; i < array.length; i++) { if (array[i] == i) { return i; } } return -1;…

Implement an algorithm to determine

  You should first ask your interviewer if the string is an ASCII string or a Unicode string. Asking this question will show an eye for detail and a solid foundation in computer science. We’ll assume for simplicity the character set is ASCII. If this assumption is not valid, we would need to increase the…

There’s a staircase

  Start simple. You’re standing on the landing and want to reach the first step, #1. There’s just one way to do it—take one step up.   Now let N = 2. There are two ways to get to the second step. Either you take two single steps in succession or you take one double…

You have to get from point A to point B

You don’t know whether you can get there. What do you do?   The MBA answer: “I would pull out my cell phone and enter point A and point B in Google Maps. If point B isn’t on Google Maps, I’d take a taxi and submit the receipt to accounting. Next question?”   The computer…

Given a list of millions of words, design an algorithm

  Many problems involving a dictionary can be solved by doing some pre-processing. Where can we do preprocessing?   Well, if we’re going to create a rectangle of words, we know that each row must be the same length and each column must be the same length. So let’s group the words of the dictionary…