Skip to product information
Python Algorithm Interview
Python Algorithm Interview
Description
Book Introduction
Master the art of solving algorithmic problems for job seekers and job seekers preparing for coding tests and interviews!
Solutions and analysis of past exam questions from LeetCode, the world's best online problem-solving site!


"Python Algorithm Interview" is a book for both beginners and experienced developers, allowing readers to easily learn algorithms and data structure theory at a glance through over 200 illustrations. It also teaches performance optimization techniques, Python's core grammar, and various practical techniques through code solutions implemented in Python.
Coding interviews have become the first gateway to developer recruitment worldwide, starting with Microsoft and Google! Analyze past coding test questions from major companies and get detailed solutions and explanations to help you get one step closer to employment or a new career.
This book is a complete guide to coding tests for employment, providing a deep understanding of key algorithm theories useful in the field and in practice, as well as a detailed understanding of Python's core functions and grammar.
After reading this book, you will have an answer to the question, “Why study algorithms?”

  • You can preview some of the book's contents.
    Preview

index
[Part 1 Coding Interview]

Chapter 1 Coding Interview
Online testing platform for coding interviews
Current Status of Coding Testing Platform Utilization by Domestic Companies
Preparing for an Online Coding Test
Whiteboard Coding Interview

Chapter 2: Choosing a Programming Language
Language Preferences as Seen Through Competition Statistics
Features by programming language
__loop
__Generic Programming
__Array iteration
__struct
__class
What is the best programming language for coding tests?

[Part 2 Python]

Chapter 3 Python
Understanding Python
Python grammar
__Indent
__Naming Convention
__type hint
__list comprehension
__generator
__range
__enumerate
__// division operator
__print
__pass
__locals
Coding style
__Variable names and comments
__list comprehension
__Google Python Style Guide

Chapter 4 Big O, Data Types
Big O
__Upper and Worst
__Installation Repayment Analysis
__Parallelization
Data type
__Python data types
__primitive type
__object

Chapter 5 Lists and Dictionaries
List
How to use the __list
__List Features
Dictionary
How to use the __dictionary
__dictionary module

Chapter 6 String Manipulation
[Problem]_01 Valid Palindrome
[Problem]_02 Reversing a string
[Problem]_03 Log file reordering
[Problem]_04 Most common words
[Problem]_05 Group Anagram
Several sorting methods
[Problem]_06 Longest palindromic substring
Unicode and UTF-8

[Part 3: Linear Data Structures]

Chapter 7 Arrangement
[Problem]_07 Sum of two numbers
[Problem]_08 Rainwater Trapping
[Problem]_09 Sum of three numbers
[Problem]_10 Array Partition I
[Problem]_11 Product of arrays excluding itself
[Problem]_12 Best time to buy and sell stocks

Chapter 8 Linked Lists
[Problem]_13 Palindromic Linked List
[Problem]_14 Merging two sorted lists
[Problem]_15 Reverse Linked List
[Problem]_16 Addition of two numbers
[Problem]_17 Pair Node Swap
[Problem]_18 Odd-Even Linked List
[Problem]_19 Reverse Linked List II

Chapter 9 Stacks and Queues
stack
__Implementing a stack ADT using a linked list
[Problem]_20 Valid parentheses
[Problem]_21 Removing duplicate characters
[Problem]_22 Daily temperature
cue
[Problem]_23 Implementing a stack using a queue
[Problem]_24 Implementing a Queue Using a Stack
[Problem]_25 Circular Queue Design

10-card deck, priority queue
deck
[Problem]_26 Circular Deck Design
priority queue
[Problem]_27 Merging k sorted lists

Chapter 11 Hash Tables
Hash
__birthday problem
__Pigeonhole principle
__load factor
__hash function
crash
__Individual chaining
__Open Addressing
__Language-specific hash table implementation methods
[Problem]_28 Hashmap Design
[Problem]_29 Gems and Stones
[Problem]_30 Longest substring without duplicate characters
[Problem]_31 Top K Frequent Elements

[Part 4: Nonlinear Data Structures]

Chapter 12 Graph
Euler path
Hamilton path
Graph traversal
__DFS (depth-first search)
__BFS(Breadth-First Search)
Backtracking
Constraint satisfaction problem
[Problem]_32 Number of islands
[Problem]_33 Phone number character combination
[Problem]_34 Permutations
[Problem]_35 Combination
[Problem]_36 Sum of combinations
[Problem]_37 Subset
[Problem]_38 Schedule Restructuring
[Problem]_39 Course Schedule

Chapter 13: The Shortest Path Problem
[Problem]_40 Network Delay Time
[Question]_41 Cheapest flight within K transit point

Chapter 14 Tree
Each name of the tree
Graph vs. Tree
binary tree
[Problem]_42 Maximum depth of a binary tree
[Problem]_43 Diameter of a binary tree
[Problem]_44 Longest path with identical values
[Problem]_45 Binary Tree Inversion
[Problem]_46 Merging two binary trees
[Problem]_47 Binary Tree Serialization & Deserialization
[Problem]_48 Balanced Binary Tree
[Problem]_49 Minimum Height Tree
Binary Search Tree (BST)
__Self-balancing binary search tree
[Problem]_50 Converting a sorted array into a binary search tree
[Problem]_51 Converting a binary search tree (BST) to a larger sum tree
[Problem]_52 Binary Search Tree (BST) Agreement Range
[Problem]_53 Minimum distance between nodes in a binary search tree (BST)
Tree traversal
[Problem]_54 Building a binary tree using preorder and inorder traversals

Chapter 15 Heap
Heap operations
__insertion
__extraction
[Problem]_55 Kth largest element of array

Chapter 16 Try
[Problem]_56 Trie Implementation
[Problem]_57 Palindrome Pair

[Part 5 Algorithm]

Chapter 17 Sorting
Bubble sort
merge sort
Quick sort
Stable sort vs. unstable sort
[Problem]_58 List Sorting
[Problem]_59 Section Merge
[Problem]_60 Insertion sort list
[Problem]_61 Largest number
[Problem]_62 Valid anagrams
[Problem]_63 Color Sorting
[Problem]_64 Kth closest point to the origin

Chapter 18: Binary Search
[Problem]_65 Binary Search
[Problem]_66 Searching a Rotationally Sorted Array
[Problem]_67 Intersection of two arrays
[Problem]_68 Sum of Two Numbers II
[Problem]_69 2D Matrix Search II

Chapter 19 Bit Manipulation
Boolean operators
bitwise operators
Beat Manipulation Quiz
__Digit Limited Bit Operations
2's complement
__2's complement number format
__2's complement mathematical operation
__bitwise operator NOT
[Problem]_70 Single Number
[Problem]_71 Hamming Distance
[Problem]_72 Sum of two integers
[Problem]_73 UTF-8 Verification
[Problem]_74 Number of 1 bit

Chapter 20 Sliding Window
[Problem]_75 Maximum sliding window
[Problem]_76 Minimum window containing a substring
[Problem]_77 Replace the longest repeating character

Chapter 21: Greedy Algorithms
Backpack problem
Coin Changing Problem
largest sum
[Problem]_78 The Best Time to Buy and Sell Stocks II
[Problem]_79 Queue Reorganization by Key
[Problem]_80 Task Scheduler
[Problem]_81 Gas Station
[Problem]_82 Cookie Granting

Chapter 22 Divide and Conquer
[Problem]_83 Majority Element
[Problem]_84 Various ways to insert parentheses

Chapter 23: Dynamic Programming
Optimal substructure
Overlapping subproblems
Dynamic programming methodology
[Problem]_85 Fibonacci numbers
0-1 backpack problem
[Problem]_86 Maximum sub-array
[Problem]_87 Climbing stairs
[Problem]_88 House Thief

Appendix A Company and Career Change Guide
Company Guide
Job preparation
preparing for a job change
Job Change Guide

Appendix B: Solutions to Kakao's Public Recruitment Problems
[Problem]_B1 Secret Map
[Problem]_B2 Dart Game
[Problem]_B3 Cache
[Problem]_B4 Shuttle Bus
[Problem]_B5 News Clustering
[Problem]_B6 Friends 4 Block
[Problem]_B7 Chuseok Traffic

Publisher's Review
[Structure of this book]
[Part 1 Coding Interview]
Chapter 1, "Coding Interview," provides an introduction to coding tests and how to do well on them. It also includes tips for solving problems effectively and improving your score, such as how to handle timeouts and exceptions.
Chapter 2, "Choosing a Programming Language," examines the characteristics of each language and determines which language is best suited for coding tests.


[Part 2 Python]
In Chapter 3, 'Python', we choose Python as the language for coding tests and look at its detailed features.
Chapter 4, 'Big O, Data Types', briefly touches on the definition and misconceptions about Big O, and then takes a closer look at the characteristics of Python data types.
To properly utilize Python, which we have chosen, we must also have a detailed understanding of the language's features.
Chapter 5, 'Lists and Dictionaries', takes an in-depth look at two representative data types in Python that will continue to be used in future coding tests: lists and dictionaries.
Chapter 6, 'String Manipulation', examines topics related to strings and begins solving various problems in earnest from this chapter.


[Part 3: Linear Data Structures]
From Chapter 7, "Arrays," to Chapter 11, "Hash Tables," we will explore various topics related to linear data structures and solve problems to prepare for coding interviews.


[Part 4: Nonlinear Data Structures]
From Chapter 12, "Graphs," to Chapter 16, "Tries," we will explore topics related to non-linear data structures and solve problems to prepare for coding interviews.

[Part 5 Algorithm]
Chapter 17, 'Sorting', examines various sorting algorithms, which are called the flower of algorithms, one by one.
In particular, Chapter 21, 'Greedy Algorithm', Chapter 22, 'Divide and Conquer', and Chapter 23, 'Dynamic Programming' are all independent chapters but are related topics. Therefore, Chapter 23 summarizes the contents and examines the characteristics and differences of each in detail.

[supplement]
Appendix A, "Company and Career Change Guide," provides a practical, detailed look at how to choose a company to work for or transfer to, how to navigate the job search and career change process, and helpful information for interviewers.
In Appendix B, "Kakao Recruitment Problem Solutions," we will mobilize all the algorithmic capabilities we've explored so far to solve all the problems that were actually tested on the 2017 Kakao Developer New Recruitment using the best possible methods.

[Key Features of this Book]
- Core Python syntax and programming techniques for both practical development and coding testing.
- Definition and background of essential algorithms and data structure theories that developers must know
- 215 visual illustrations that help you understand algorithm theory at a glance.
- Solutions to key past exam questions from LeetCode, the world's best problem-solving site.
- Solutions and explanations for problems from actual Kakao public recruitment coding tests
- Step-by-step solution improvement and comparative analysis using various optimization techniques
- Comparison of performance and solution execution speed by algorithm implementation
- From document screening to interviews, a guide to preparing for employment and career changes in the development field.
- Various advice for building a successful developer career path

[For whom this book is intended]
This book is a must-read for developers seeking employment or a career change at Korea's top IT companies, as well as job seekers and college students just beginning their careers, who are looking for learning materials or reference books with the following concerns:


● How can I do well on coding tests?
● How can I solve algorithm problems well?
● How can I do well in an interview?
● How can I become good at Python?

Readers of this book should have programming experience in one or more languages ​​and be prepared to learn basic data structures and algorithms.
You can read this book without knowing Python, but if possible, it will be much more helpful to understand the content if you read the book with a basic knowledge of Python.

[Author's Note]
In August 2017, Kakao conducted an interesting experiment.
The recruitment of new developers was conducted through a blind open recruitment process, in which anyone could apply by simply providing their name and contact information.
It was a bold attempt and a rare case even in the IT industry at the time.
The selection committee's efforts to select good developers have also become busy.
To make it more approachable for test takers while still incorporating key algorithms, we created dozens of questions using Kakao characters, and the test examiners each took turns meticulously solving the problems.
We had sufficient discussion through peer review and decided whether to publish the question or not by majority vote.
Although the process was tedious and repetitive, it was necessary and reasonable.
After going through these various steps, we finally selected a total of seven problems, and these problems have been well-received to this day and have become exemplary cases of blind recruitment (all of the Kakao recruitment problems from that year are solved in Appendix B of this book).
Thanks to its success at the time, blind recruitment has continued and even influenced the hiring practices of other companies. Looking back, it's an honor to have been a part of that proud history.
This book contains my experience conducting coding tests at the time, my experience conducting technical interviews with countless interviewees afterward, and my experience closely examining the technical interview processes of numerous companies to improve my interviews.
And based on this, I also synthesized and incorporated various experiences I had while trying to change jobs.
The various experiences I had as an interviewer or as an interviewee were a good opportunity for me to realize from the interviewer's perspective some wrong practices that I had not noticed from the interviewer's perspective for a while, and after changing jobs, I was reborn as a better interviewer. Of course, I have organized and contained all of my experiences through this book.
There is sometimes a misconception that algorithm interviews are just formal interviews that only recent undergraduates can handle.
Is that really true? Why do you think you solve algorithmic problems? Why do you think you've been studying mathematics all this time? The reason we study mathematics and algorithms is to build a solid foundation (mathematics) and then, through logical thinking (mathematical thinking), solve problems (programming).
The various thinking methods, data structures, and problem-solving skills embedded in algorithms cultivate systematic thinking skills and, furthermore, build a solid intellectual foundation that is essential for a good developer.
If you systematically learn algorithms and improve your skills, you will be able to become a better developer.

From now on, what you'll do is diligently solve the problems in this book using Python, along with Leetcode.
Solving it on a whiteboard is also a good idea.

Above all, I hope this book will be a good guide for your employment, your job change, your career, and your life.
GOODS SPECIFICS
- Date of publication: July 15, 2020
- Page count, weight, size: 724 pages | 1,300g | 180*235*35mm
- ISBN13: 9791189909178
- ISBN10: 1189909170

You may also like

카테고리