Skip to content

Commit 7297039

Browse files
committed
Added sort chars by frequency problem and some refactoring
1 parent 0732437 commit 7297039

File tree

8 files changed

+66
-350
lines changed

8 files changed

+66
-350
lines changed

Diff for: CMakeCache.txt

-311
This file was deleted.

Diff for: CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ foreach( sourcefile ${SOURCES} )
2828
continue()
2929
endif()
3030
endforeach( sourcefile ${SOURCES} )
31-

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,6 @@ Include contains single header implementation of data structures and some algori
229229
| The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calculate the Hamming distance.| [hamming_distance.cpp](leet_code_problems/hamming_distance.cpp)|
230230
| Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not. You need to merge them into a new binary tree. The merge rule is that if two nodes overlap, then sum node values up as the new value of the merged node. Otherwise, the NOT null node will be used as the node of new tree.| [merge_trees.cpp](leet_code_problems/merge_trees.cpp)|
231231
| Write a function that takes a string as input and reverse only the vowels of a string.|[reverse_vowels.cpp](leet_code_problems/reverse_vowels.cpp)|
232+
| Given a string, sort it in decreasing order based on the frequency of characters.For example: <ul><li>Input: cccbbbbaa Output: bbbcccaa</li></ul>| [sortCharByFrequency.cpp](leet_code_problems/sortCharByFrequency.cpp)|
232233

233234

Diff for: common_ds_algo_problems/minHeap.cpp

-35
This file was deleted.

0 commit comments

Comments
 (0)