All Projects → ykushch → coding-interview

ykushch / coding-interview

Licence: MIT license
Resources for preparing for your next coding interview

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to coding-interview

Codinginterviews
This repository contains coding interviews that I have encountered in company interviews
Stars: ✭ 2,881 (+10570.37%)
Mutual labels:  interview, interview-practice, interview-questions, coding-interviews
Awesome Coding Interview Question Patterns
The most common question-patterns for any coding-interview
Stars: ✭ 196 (+625.93%)
Mutual labels:  interview, interview-practice, interview-questions, coding-interviews
Interviews
Everything you need to know to get the job.
Stars: ✭ 54,875 (+203140.74%)
Mutual labels:  interview, interview-practice, interview-questions, coding-interviews
Cs Fundamentals
🎓 Data structures and algorithms
Stars: ✭ 869 (+3118.52%)
Mutual labels:  interview, interview-practice, interview-questions, coding-interviews
Technical Interview Guide
My learning material for technical interviews!
Stars: ✭ 76 (+181.48%)
Mutual labels:  interview, interview-practice, interview-questions, coding-interviews
Leetcode Sol Res
Clean, Understandable Solutions and Resources for LeetCode Online Judge Algorithm Problems.
Stars: ✭ 1,647 (+6000%)
Mutual labels:  interview, interview-practice, interview-questions, coding-interviews
Codility lessons
Codility Lesson1~Lesson17 100% solutions with Python3 除正確解答外comment裡有解題的思考過程
Stars: ✭ 87 (+222.22%)
Mutual labels:  interview, interview-practice, interview-questions, coding-interviews
TheJobInterviewGuide
A job guide to help developers get through interviews and get amazing jobs!
Stars: ✭ 267 (+888.89%)
Mutual labels:  interview, interview-practice, interview-questions, coding-interviews
Interviewguide
《大厂面试指北》——包括Java基础、JVM、数据库、mysql、redis、计算机网络、算法、数据结构、操作系统、设计模式、系统设计、框架原理。最佳阅读地址:http://notfound9.github.io/interviewGuide/
Stars: ✭ 3,117 (+11444.44%)
Mutual labels:  interview, interview-practice, interview-questions
System Design Interview Questions
A curated list of System Design interview questions for SDE-1 (Experienced),SDE-2 and above.
Stars: ✭ 205 (+659.26%)
Mutual labels:  interview, interview-practice, interview-questions
codewars python solutions
My CodeWars solutions in Python.
Stars: ✭ 111 (+311.11%)
Mutual labels:  interview, interview-practice, interview-questions
Interview Questions
List of all the Interview questions practiced from online resources and books
Stars: ✭ 187 (+592.59%)
Mutual labels:  interview, interview-practice, interview-questions
Grokking-the-Coding-Interview-Patterns-for-Coding-Questions
Grokking the Coding Interview: Patterns for Coding Questions Alternative
Stars: ✭ 374 (+1285.19%)
Mutual labels:  interview, interview-questions, coding-interviews
FAANG-Coding-Interview-Questions
A curated List of Coding Questions Asked in FAANG Interviews
Stars: ✭ 1,195 (+4325.93%)
Mutual labels:  interview, interview-questions, coding-interviews
Algorithms Leetcode Javascript
Algorithms resolution in Javascript. Leetcode - Geeksforgeeks - Careercup
Stars: ✭ 157 (+481.48%)
Mutual labels:  interview, interview-questions, coding-interviews
Byte By Byte Solutions
Coding interview questions and solutions
Stars: ✭ 134 (+396.3%)
Mutual labels:  interview, interview-practice, interview-questions
Interview Techdev Guide
This repository contains curated technical interview questions by fn+geeks community
Stars: ✭ 252 (+833.33%)
Mutual labels:  interview, interview-questions, coding-interviews
System Design Primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
Stars: ✭ 154,659 (+572711.11%)
Mutual labels:  interview, interview-practice, interview-questions
counter-interview.dev
a collaborative collection of interview questions collected from both sides of the game: Interviewer(s) and Interviewee.
Stars: ✭ 102 (+277.78%)
Mutual labels:  interview, interview-practice, interview-questions
CPPNotes
【C++ 面试 + C++ 学习指南】 一份涵盖大部分 C++ 程序员所需要掌握的核心知识。
Stars: ✭ 557 (+1962.96%)
Mutual labels:  interview, interview-practice, interview-questions

Preparations for coding interviews

Hash Tables

A hash table is a data structure that maps keys to values for efficient lookup.

Implementation details

There are many ways to implement hash tables. The most common is to use an array of a linked lists and a hash code function.



Image source

Inserting into map (key and value)
  1. Compute the key's hash code, which will usually be an int or long. Note that two different keys could have the same hash code, as there may be an infinite number of keys and a finite number of ints.
  2. Map the hash code to an index in the array. This could be done with something like hash(key) % array_length. Two different hash codes could, of course, map to the same index (finding a correct bucket).
  3. At this index, there is a linked list of keys and values. Store the key and value in this index. We must use a linked list because of collisions: you could have two different keys with the same hash code, or two different hash codes that map to the same index.
Retrieving value by its key (key and value)

To retrieve the value by its key, we need to repeat the process.

  1. Compute the hash code from the key.
  2. Compute the index from the hash code (find a bucket on picture).
  3. Search through the linked list for the value with this key. If the number of collisions is very high, the worst case runtime is O(N), where N is the number of keys. Generally we assume a good implementation that keeps collisions to a minimum, in which case the lookup time is O(1).

Note: A bucket is used to store key value pairs. A bucket can have multiple key-value pairs. In hash map, bucket used simple linked list to store objects.

Mock Interview / preparations

Mark Description
🆓 Fully free.
🆓 / 💰 Many free content, but has some premium content for extra money.
💰 / 🆓 Mainly paid content, but has some free.
💰 Fully paid content.

Coding Interview University (GitHub) 🆓

Coding-interview-university. Good resource, have very long list of advices on what to read and how to prepare for your coding AND System Design interview.

InterviewBit 🆓

InterviewBit. Self paced tutorial like resource on preparation for coding, system design AND have a mock interview feature. Contains many problems for different companies.

LeetCode 🆓 / 💰

LeetCode. Many challenges, problems for solving. Have a bonus system. You could spend money and buy a premium subscription for mock interviews and premium problems.

InterviewCake 💰 / 🆓

InterviewCake. This resource is about coding practice, but it differs from others. The main focus here is to give you a basic intuition on how to address to the particular problem.

System Design Primer (GitHub) 🆓

System Design Primer. Great resource on how to deal with system design interviews. Contains different use cases and real world experience. Highly recommend to review it.

HiredInTech 🆓

HiredInTech Guys are doing great job on advices and use cases for system design interviews. Definitely recommend to spend some time here.

Technical Mock Interview 💰

Technical Mock Interview. The main focus is mock interviews and with detailed feedback.
Pricing: $80 per session OR $340 for 5 session package.

Gainlo 💰

Gainlo. The main focus is mock interviews. Also, they have good blog on general advices on how to deal with interviews. Pricing: $50-$130 per interview based on the interviewer, interview type, industry, etc.

System Design Interview 💰

System Design Interview. Very concentrated course. Many use cases, examples. Highly recommend it before preparation. After a couple of years of design you will definitely find something new for you.
Pricing: whole course for ~ $79.

Mastering the Software Engineering Interview (University of California @ Coursera) 🆓 / 💰

Mastering the Software Engineering Interview. Informative of the CS specific interview process: particularly the technical interview process.

Arrays

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].