-
Notifications
You must be signed in to change notification settings - Fork 1
Comparing changes
Open a pull request
base repository: ewdlop/LeetCodeNote
base: ewdlop-patch-3
head repository: ewdlop/LeetCodeNote
compare: master
- 10 commits
- 7 files changed
- 1 contributor
Commits on Feb 25, 2025
-
Configuration menu - View commit details
-
Copy full SHA for b0d5c63 - Browse repository at this point
Copy the full SHA b0d5c63View commit details -
# 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"
Configuration menu - View commit details
-
Copy full SHA for 3a0fc4d - Browse repository at this point
Copy the full SHA 3a0fc4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b993a9 - Browse repository at this point
Copy the full SHA 7b993a9View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for ff9b8f5 - Browse repository at this point
Copy the full SHA ff9b8f5View commit details -
Merge pull request #9 from ewdlop/ewdlop-patch-5
Update LeetCodeNote.Test.csproj
Configuration menu - View commit details
-
Copy full SHA for 49c441e - Browse repository at this point
Copy the full SHA 49c441eView commit details
Commits on Apr 28, 2025
-
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.
Configuration menu - View commit details
-
Copy full SHA for 08e3d37 - Browse repository at this point
Copy the full SHA 08e3d37View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ad9f68e - Browse repository at this point
Copy the full SHA ad9f68eView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3096907 - Browse repository at this point
Copy the full SHA 3096907View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 758338a - Browse repository at this point
Copy the full SHA 758338aView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3e046f1 - Browse repository at this point
Copy the full SHA 3e046f1View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff ewdlop-patch-3...master