Series: Data Structure and Algorithm
python
7 lines
· Updated 2026-02-03
teaching.py
Data Structure and Algorithm/teaching.py
'''
Find the highest frequency of 0 and 1 in an array, return the higest frequency of 0 and 1
'''
arr = [1, 0, 0, 1, 0, 1, 1, 0, 1]
Related articles
Data Structure and Algorithm
cpp
Updated 2026-02-03
k-th-large.cpp
k-th-large.cpp — cpp source code from the Data Structure and Algorithm learning materials (Data Structure and Algorithm/k-th-large.cpp).
Read article →
Data Structure and Algorithm
cpp
Updated 2026-02-03
word-search-puzzle.cpp
word-search-puzzle.cpp — cpp source code from the Data Structure and Algorithm learning materials (Data Structure and Algorithm/word-search-puzzle.cpp).
Read article →