Skip to content

Commit

Permalink
💅 Renaming problem 001 solution names
Browse files Browse the repository at this point in the history
  • Loading branch information
jobearrr committed Jul 10, 2024
1 parent 47e3a63 commit b2b9fb5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Please aknowledge [the license](https://github.com/jobearrr/LeetSwift/blob/main/
[001-problem]: https://leetcode.com/problems/two-sum
[001-walkthrough]: https://jobear.dev/algo-hub/leetcode/001-two-sum
[001-solution1]: https://github.com/jobearrr/LeetSwift/blob/main/Sources/Solutions/001%20-%20Two%20Sum/TwoSumBruteForceSolution.swift
[001-solution2]: https://github.com/jobearrr/LeetSwift/blob/main/Sources/Solutions/001%20-%20Two%20Sum/TwoSumSolution.swift
[001-solution2]: https://github.com/jobearrr/LeetSwift/blob/main/Sources/Solutions/001%20-%20Two%20Sum/TwoSumHashTableSolution.swift
[002-problem]: https://leetcode.com/problems/add-two-numbers
[002-walkthrough]: https://jobear.dev/algo-hub/leetcode/002-add-two-numbers
[002-solution1]: https://github.com/jobearrr/LeetSwift/blob/main/Sources/Solutions/002%20-%20Add%20Two%20Numbers/AddTwoNumbersIterativeSolution.swift
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// TwoSumSolution.swift
// TwoSumHashTableSolution.swift
// LeetSwift
//
// Created by Jobert Sá on 02/07/2024.
Expand All @@ -8,7 +8,7 @@
import Foundation
import Problems

final class TwoSumSolution: TwoSumDefinition {
final class TwoSumHashTableSolution: TwoSumDefinition {

func twoSum(_ nums: [Int], _ target: Int) -> [Int] {
var dictionary: [Int: Int] = [:]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// TwoSumSolutionTests.swift
// TwoSumHashTableSolutionTests.swift
// LeetSwift
//
// Created by Jobert Sá on 02/07/2024.
Expand All @@ -10,9 +10,9 @@ import XCTest
@testable import Solutions
@testable import TestSupport

final class TwoSumSolutionTests: XCTestCase {
final class TwoSumHashTableSolutionTests: XCTestCase {

let solution: TwoSumDefinition = TwoSumSolution()
let solution: TwoSumDefinition = TwoSumHashTableSolution()

func testSolution() {
for testData in data {
Expand All @@ -25,4 +25,4 @@ final class TwoSumSolutionTests: XCTestCase {
}
}

extension TwoSumSolutionTests: TwoSumTestCaseProvider { }
extension TwoSumHashTableSolutionTests: TwoSumTestCaseProvider { }

0 comments on commit b2b9fb5

Please sign in to comment.