Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ewdlop/LeetCodeNote
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ewdlop-patch-3
Choose a base ref
...
head repository: ewdlop/LeetCodeNote
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 10 commits
  • 7 files changed
  • 1 contributor

Commits on Feb 25, 2025

  1. Merge pull request #7 from ewdlop/ewdlop-patch-3

    Create SECURITY.md
    ewdlop authored Feb 25, 2025
    Configuration menu
    Copy the full SHA
    b0d5c63 View commit details
    Browse the repository at this point in the history
  2. Create dependabot.yml

    # To get started with Dependabot version updates, you'll need to specify which
    # package ecosystems to update and where the package manifests are located.
    # Please see the documentation for all configuration options:
    # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
    
    version: 2
    updates:
      - package-ecosystem: "" # See documentation for possible values
        directory: "/" # Location of package manifests
        schedule:
          interval: "weekly"
    ewdlop authored Feb 25, 2025
    Configuration menu
    Copy the full SHA
    3a0fc4d View commit details
    Browse the repository at this point in the history
  3. Merge pull request #8 from ewdlop/ewdlop-patch-4

    Create dependabot.yml
    ewdlop authored Feb 25, 2025
    Configuration menu
    Copy the full SHA
    7b993a9 View commit details
    Browse the repository at this point in the history
  4. Update LeetCodeNote.Test.csproj

    <Project Sdk="Microsoft.NET.Sdk">
    
      <PropertyGroup>
        <TargetFramework>net9.0</TargetFramework>
        <Nullable>enable</Nullable>
    
        <IsPackable>false</IsPackable>
      </PropertyGroup>
    
      <ItemGroup>
        <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
        <PackageReference Include="xunit" Version="2.4.1" />
        <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
          <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
          <PrivateAssets>all</PrivateAssets>
        </PackageReference>
        <PackageReference Include="coverlet.collector" Version="3.1.0">
          <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
          <PrivateAssets>all</PrivateAssets>
        </PackageReference>
      </ItemGroup>
    
      <ItemGroup>
        <ProjectReference Include="..\LeetCodeNote.csproj" />
      </ItemGroup>
    
    </Project>
    ewdlop authored Feb 25, 2025
    Configuration menu
    Copy the full SHA
    ff9b8f5 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #9 from ewdlop/ewdlop-patch-5

    Update LeetCodeNote.Test.csproj
    ewdlop authored Feb 25, 2025
    Configuration menu
    Copy the full SHA
    49c441e View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2025

  1. VisualStudio: Add symmetry check for binary trees in Solution class

    Introduces a new `Solution` class in the `LeetCodeNote` namespace with two static methods: `IsSymmetric` and `IsMirror`. The `IsSymmetric` method determines if a binary tree is symmetric by utilizing the `IsMirror` method, which recursively compares nodes for equality and checks their left and right subtrees. This implementation provides a structured approach to solving the symmetric tree problem.
    ewdlop committed Apr 28, 2025
    Configuration menu
    Copy the full SHA
    08e3d37 View commit details
    Browse the repository at this point in the history
  2. Visaul Studio: Add LevelOrder method for binary tree traversal

    Implement a new static partial class `Solution` with a `LevelOrder` method that performs level order traversal of a binary tree. The method returns a list of lists containing node values at each level, utilizing a queue for traversal and handling null nodes effectively.
    ewdlop committed Apr 28, 2025
    Configuration menu
    Copy the full SHA
    ad9f68e View commit details
    Browse the repository at this point in the history
  3. Add symmetric tree check and zigzag traversal method

    Implemented the `IsSymmetric` and `IsMirror` methods in `101.SymmetricTree.cs` to check for symmetry in binary trees. Removed unnecessary using directive in `102.BinaryTreeLevelOrderTraversal.cs`. Introduced `103.BinaryTreeZigzagLevelOrderTraversal.cs` with a new `ZigzagLevelOrder` method for zigzag level order traversal of binary trees.
    ewdlop committed Apr 28, 2025
    Configuration menu
    Copy the full SHA
    3096907 View commit details
    Browse the repository at this point in the history
  4. Add MaxDepth method to calculate binary tree depth

    This commit introduces a new method `MaxDepth` in the `Solution` class under the `LeetCodeNote` namespace. The method computes the maximum depth of a binary tree using recursion, handling null input by returning 0. It evaluates the depths of the left and right subtrees and returns the greater value plus one.
    ewdlop committed Apr 28, 2025
    Configuration menu
    Copy the full SHA
    758338a View commit details
    Browse the repository at this point in the history
  5. Refactor MaxDepth method and add BuildTree method

    Changed MaxDepth to a static method in MaximumDepthOfBinaryTree.cs for easier access.
    
    Added BuildTree method in ConstructBinaryTreeFromPreorderAndInorderTraversal.cs to construct a binary tree from preorder and inorder arrays, including null checks and recursive subtree construction. Added necessary using directives.
    ewdlop committed Apr 28, 2025
    Configuration menu
    Copy the full SHA
    3e046f1 View commit details
    Browse the repository at this point in the history
Loading