Skip to content

Commit

Permalink
Added sort chars by frequency problem and some refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mandliya committed Jan 5, 2018
1 parent 0732437 commit 7297039
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 350 deletions.
311 changes: 0 additions & 311 deletions CMakeCache.txt

This file was deleted.

1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ foreach( sourcefile ${SOURCES} )
continue()
endif()
endforeach( sourcefile ${SOURCES} )

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,6 @@ Include contains single header implementation of data structures and some algori
| 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)|
| 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)|
| 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)|
| 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)|


35 changes: 0 additions & 35 deletions common_ds_algo_problems/minHeap.cpp

This file was deleted.

Loading

0 comments on commit 7297039

Please sign in to comment.