Skip to content

Commit add1afd

Browse files
authored
Merge pull request #23 from Shoaib19/Shoaib019
started problem to write algo in n time complexcity max frquency of char
2 parents 6ee76b9 + 5195391 commit add1afd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Ruby/count_max_letter_in_array.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Name: Shoaib Sabir
44
# Username: Shoaib019
55
# Approach:
6-
def find_max_frequency_character(arr)
7-
6+
def find_max_frequency_character(str)
7+
arr = [nil,nil]
8+
str.each_char_with_index do |ch,idx|
9+
10+
end
811
end

0 commit comments

Comments
 (0)