Understand 8 Basic Algorithms Problems with Python

Photo by Fidias Cervantes on Unsplash

This article tried to get deep understanding from different perspective by taking notes and coding in different ways.

  1. Check if a number is prime

2. Sort number list into the number list of the even numbers in the first position and the odd numbers in the second position

3. Find the maximum sum of sequence numbers list

4. Find the maximum count of character

5. Delete duplicate numbers and output unique number

6. Find pair of target and complement numbers which are two sum of numbers

7. Output permutations of input number list

8. Implement cache function



Tetsuya Hirata

Software engineer working mostly at the intersection of data science and engineering. @JesseTetsuya