Skip to content

Added tasks 50-58 #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025
Merged

Added tasks 50-58 #50

merged 1 commit into from
Jul 1, 2025

Conversation

ThanhNIT
Copy link
Contributor

@ThanhNIT ThanhNIT commented Jul 1, 2025

No description provided.

double result = solution.MyPow(x, n);
Assert.True(System.Math.Abs(result - expected) < 1e-5);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the pattern without InlineData

namespace LeetCodeNet.G0001_0100.S0001_two_sum {

using Xunit;

public class SolutionTest {
    [Fact]
    public void TwoSum() {
        Assert.Equal(new int[] {0, 1}, new Solution().TwoSum(new int[] {2, 7, 11, 15}, 9));
    }

    [Fact]
    public void TwoSum2() {
        Assert.Equal(new int[] {1, 2}, new Solution().TwoSum(new int[] {3, 2, 4}, 6));
    }

    [Fact]
    public void TwoSum3() {
        Assert.Equal(new int[] {0, 1}, new Solution().TwoSum(new int[] {3, 3}, 6));
    }

    [Fact]
    public void TwoSum4() {
        Assert.Equal(new int[] {-1, -1}, new Solution().TwoSum(new int[] {3, 3}, 7));
    }
}
}

Copy link

sonarqubecloud bot commented Jul 1, 2025

@javadev
Copy link
Contributor

javadev commented Jul 1, 2025

@javadev javadev merged commit f3668c6 into LeetCode-in-Net:main Jul 1, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants