Skip to content

DavidsonRafaelK/competitive-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Competitive Programming

Kumpulan solusi soal-soal competitive programming dari platform LeetCode, ditulis menggunakan Python dan SQL. Repository ini dibuat sebagai dokumentasi perjalanan belajar dan latihan problem solving.


Statistik

Kategori Easy Medium Hard Total
Python 17 8 2 27
SQL 5 - - 5
Total 22 8 2 32

Struktur Proyek

competitive-programming/
├── python/
│   ├── easy/                # Soal Python tingkat Easy (17 soal)
│   ├── medium/              # Soal Python tingkat Medium (8 soal)
│   └── hard/                # Soal Python tingkat Hard (2 soal)
├── sql/                     # Soal SQL (5 soal)
├── scripts/                 # Script otomasi
└── README.md

Daftar Soal

Python - Easy (17 soal)

# Soal File
1 Best Time To Buy And Sell Stock best-time-to-buy-and-sell-stock.py
2 Check If Array Is Good check-if-array-is-good.py
3 Concatenation Of Array concatenation-of-array.py
4 Contains Duplicate contains-duplicate.py
5 Find Disappeared Numbers find-disappeared-numbers.py
6 Fizz Buzz fizz-buzz.py
7 How Many Number Are Smaller Than Current Number how-many-number-are-smaller-than-current-number.py
8 Max Consecutive Ones max-consecutive-ones.py
9 Minimum Common Value minimum-common-value.py
10 Palindrome Number palindrome-number.py
11 Power Of Two power-of-two.py
12 Seperate The Digits In An Array seperate-the-digits-in-an-array.py
13 Set Mismatch set-mismatch.py
14 Shuffle The Array shuffle-the-array.py
15 Two Sum two-sum.py
16 Valid Anagrams valid-anagrams.py
17 Valid Palindrome valid-palindrome.py

Python - Medium (8 soal)

# Soal File
1 Find Minimum In Rotated Sorted Array find-minimum-in-rotated-sorted-array.py
2 Find The Length Of The Longest Common Prefix find-the-length-of-the-longest-common-prefix.py
3 Find The Prefix Common Array Of Two Arrays find-the-prefix-common-array-of-two-arrays.py
4 Group Anagrams group-anagrams.py
5 Jump Game jump-game-1.py
6 Jump Game III jump-game-3.py
7 Jump Game IV jump-game-4.py
8 Top K Frequent Elements top-k-frequent-elements.py

Python - Hard (2 soal)

# Soal File
1 Find Minimum In Rotated Sorted Array II find-minimum-in-rotated-sorted-array-2.py
2 Jump Game IV jump-game-4.py

SQL (5 soal)

# Soal File
1 Combine Two Table combine-two-table.sql
2 Employees Earning More Than Their Managers employees-earning-more-than-their-managers.sql
3 Employees Whose Manager Left The Company employees-whose-manager-left-the-company.sql
4 Find Customer Referee find-customer-referee.sql
5 Not Boring Movies not-boring-movies.sql

Cara Menjalankan

Python

python3 python/easy/two-sum.py

SQL

Import file .sql ke database PostgreSQL/MySQL atau jalankan langsung di platform LeetCode.


Teknologi

  • Python 3 - Bahasa utama untuk menyelesaikan soal algoritma
  • SQL - Untuk soal-soal database
  • LeetCode - Platform utama untuk latihan
  • GitHub Actions - Auto-update README setiap push

Terakhir diperbarui: 17 Juni 2026

About

GIP ME MOR DEN DIS

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages