Skip to content

Commit

Permalink
Update 347-Top-k-frequent-elements.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra9302 authored Apr 5, 2022
1 parent 0bc97f8 commit a5b9de0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion swift/347-Top-k-frequent-elements.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
class Solution {
/**
* Question Link: https://leetcode.com/problems/top-k-frequent-elements/
*/

class TopKFrequentElements {
func topKFrequent(_ nums: [Int], _ k: Int) -> [Int] {
var count = [Int:Int]()
for n in nums {
Expand Down

0 comments on commit a5b9de0

Please sign in to comment.