Get Mystery Box with random crypto!

Coding interview preparation

Logo of telegram channel coding_interview_preparation — Coding interview preparation C
Logo of telegram channel coding_interview_preparation — Coding interview preparation
Categories: Technologies
Language: English
Subscribers: 3.76K
Description from channel

Preparing programmers for job interviews.
Free courses: @bigdataspecialist
@programming_books_bds
@datascience_bds
@github_repositories_bds
@data_visualization_bds
@tech_news_bds
@python_bds
DMCA disclosure: @disclosure_bds
Contact: @mldatascientist

Ratings & Reviews

1.50

2 reviews

Reviews can be left only by registered users. All reviews are moderated by admins.

5 stars

0

4 stars

0

3 stars

0

2 stars

1

1 stars

1


The latest Messages 3

2022-04-30 13:09:01 Tips for solving leetcode codings interview problems

If input array is sorted then
- Binary search
- Two pointers

If asked for all permutations/subsets then
- Backtracking

If given a tree then
- DFS
- BFS

If given a graph then
- DFS
- BFS

If given a linked list then
- Two pointers

If recursion is banned then
- Stack

If must solve in-place then
- Swap corresponding values
- Store one or more different values in the same pointer

If asked for maximum/minimum subarray/subset/options then
- Dynamic programming

If asked for top/least K items then
- Heap

If asked for common strings then
- Map
- Trie

Else
- Map/Set for O(1) time & O(n) space
- Sort input for O(nlogn) time and O(1) space
150 views10:09
Open / Comment
2022-04-28 11:18:01
243 views08:18
Open / Comment
2022-04-26 14:37:01 Why do companies really like using Java, rather than other languages?

Why do the companies which use Java use it?

It's easy to find professional programmers who know Java.
It's easy to find college hires who know Java.
The language is mature, with good tools for development, debugging, performance analysis, and so on.
There are a large number of open source libraries available providing additional functionality which can make new projects faster and more stable.
It's perceived as being easier to write and maintain than C or C++, which would be its main competitors.
Industry programming is a popularity contest, not a beauty contest. It's about critical mass of support and knowledge, not the esoteric beauty and purity of the language. This changes very slowly with many people paying a price as the popularity of a 'new' language grows.

Choose an unpopular language for commercial projects, and you risk having your code discarded or deprecated. You'll certainly have a smaller set of people you can recruit to work in it.

John L. Miller
25 years at Microsoft, Amazon, Google, etc
213 views11:37
Open / Comment
2022-04-24 11:17:01
Distribution of the types of problems that were generally encountered in an Apple interview.
186 views08:17
Open / Comment
2022-04-22 10:47:01 General tips

Always validate input first. Check for inputs that are invalid, empty, negative, or different. Never assume you are given the valid parameters. Alternatively, clarify with the interviewer whether you can assume valid input (usually yes), which can save you time from writing code that does input validation.

Are there any time and space complexities requirements or constraints?

Check for off-by-one errors.

In languages where there are no automatic type coercion, check that concatenation of values are of the same type: int,str, and list.

After you finish your code, use a few example inputs to test your solution.

Is the algorithm supposed to run multiple times, perhaps on a web server? If yes, the input can likely be pre-processed to improve the efficiency in each API call.

Use a mix of functional and imperative programming paradigms:

Write pure functions as often as possible.
Use pure functions because they are easier to reason with and can help reduce bugs in your implementation.
Avoid mutating the parameters passed into your function, especially if they are passed by reference, unless you are sure of what you are doing.
Achieve a balance between accuracy and efficiency. Use the right amount of functional and imperative code where appropriate. Functional programming is usually expensive in terms of space complexity because of non-mutation and the repeated allocation of new objects. On the other hand, imperative code is faster because you operate on existing objects.
Avoid relying on mutating global variables. Global variables introduce state.
Make sure that you do not accidentally mutate global variables, especially if you have to rely on them.
157 views07:47
Open / Comment
2022-04-20 11:13:01
355 views08:13
Open / Comment
2022-04-18 10:49:01 What's the Interview Process Like, In a Nutshell?

If I were asked to summarize all the resources above to you, here's what I would share:

I would say that you typically get between 30 minutes to an hour to solve a coding question.
You typically get a choice of programming language like C++, Python, Java, or JavaScript, but not always...in some instances you do not have a choice.
Outside of the coding portion, they are free to ask you pretty much anything, from language-specific questions to favorite projects, but any interview with a coding portion tends to be dominated by it.

And here's some general advice to consider: you are going to be dealing with people who may be pretty tired of interviews. Smile if you can. Try to show enthusiasm. Have a conversation, and try to talk to the interviewer the way you might communicate if the two of you were pair programming, but they were more senior.
114 views07:49
Open / Comment
2022-04-16 10:56:01
Most popular backend frameworks 2020
189 views07:56
Open / Comment
2022-04-14 11:03:01 Data structures playlist
by WilliamFiset
14 video lessons
9 hours worth of material
Courses link
151 views08:03
Open / Comment
2022-04-13 10:50:03
310 views07:50
Open / Comment