From e17f58039d11648bd3b841e0c8632c8674f54091 Mon Sep 17 00:00:00 2001 From: Abhishek Tripathi <42455093+abhishektripathi66@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:46:04 +0000 Subject: [PATCH] updating the package structure for better understanding --- .../Depth First Search}/DepthFirstSearch.java | 0 .../Depth First Search}/DepthFirstSearch.md | 0 .../ArrayInterviewQuestion}/averagetemp.java | 2 - .../ArrayInterviewQuestion}/copyarray.java | 0 .../duplicatenumber.java | 0 .../matrixrotation.java | 0 .../ArrayInterviewQuestion}/maxproduct.java | 0 .../missingnumber.java | 0 .../ArrayInterviewQuestion}/pairs.java | 0 .../ArrayInterviewQuestion}/permutation.java | 0 .../searchinarray.java | 0 .../ArrayInterviewQuestion}/subset.java | 0 .../ArrayInterviewQuestion}/twosum.java | 0 .../ArrayInterviewQuestion}/unique.java | 0 .../General questions/sumproduct.java | 0 .../Leetcode}/AddtwoNumbers.java | 0 .../Leetcode}/AllODataStructre432.java | 0 .../Leetcode}/AsteriodCollision.java | 0 .../Leetcode}/AverageSalary.java | 0 .../BinaryTreeLevelOrderTraversal.java | 0 .../Leetcode}/BinaryTreeRightSideView.java | 0 .../Leetcode}/CircularSentence.java | 0 .../Leetcode}/ClimbingStairs.java | 0 .../Leetcode}/ContainerMostWater.java | 0 .../Leetcode}/CountGoodNodesinBinaryTree.java | 0 .../CountNumberofMaximumBitwiseORSubsets.java | 0 .../Leetcode}/CountOddNumbers.java | 0 .../CountSquareSubmatriceswithAllOnes.java | 0 .../Leetcode}/CousinsinBinaryTreeII.java | 0 .../Leetcode}/CustomStack.java | 0 .../Leetcode}/DecodeString.java | 0 .../DeleteCharacterstoMakeFancyString.java | 0 .../Leetcode}/DeleteMiddleLinkedList.java | 0 .../Leetcode}/DeleteNodeinaBST.java | 0 .../Leetcode}/DifferenceArray.java | 0 ...ideIntervalsIntoMinimumNumberofGroups.java | 0 .../Leetcode}/DivisibleByK.java | 0 .../Leetcode}/Dota2Senate.java | 0 .../Leetcode}/DuplicatesEasy.java | 0 .../Leetcode}/DuplicatesMedium.java | 0 .../Leetcode}/EqualRowColumn.java | 0 .../Leetcode}/FindHighestAltitude.java | 0 .../FindKthBitinNthBinaryString.java | 0 .../Leetcode}/FindNonDuplicate.java | 0 .../FindtheMaximumFactorScoreofArray.java | 0 .../FindtheOriginalTypedStringI.java | 0 .../Leetcode}/FlipEquivalentBinaryTrees.java | 0 .../Leetcode}/FlowerPlacing | 0 ...fBinaryTreeAfterSubtreeRemovalQueries.java | 0 .../Leetcode}/IncreasingTriplet | 0 .../Leetcode}/IntegertoRoman.java | 0 .../Leetcode}/IsPallindrome.java | 0 .../Leetcode}/KClosestPointstoOrigin.java | 0 .../Leetcode}/KeysandRooms.java | 0 .../Leetcode}/KthLargestSuminaBinaryTree.java | 0 .../Leetcode}/LastWordLength.java | 0 .../Leetcode}/LeafSimilarTrees.java | 0 .../Leetcode}/ListNode.java | 0 .../Leetcode}/LongestHappyString.java | 0 .../LongestSquareStreakinanArray.java | 0 .../Leetcode}/LongestSubstring.java | 0 .../Leetcode}/LongestValidParentheses.java | 0 .../LongestZigZagPathinaBinaryTree.java | 0 .../Leetcode}/MaWidthramp.java | 0 .../Leetcode}/MajorityElement.java | 0 .../Leetcode}/MajorityElementFast.java | 0 .../Leetcode}/MakeSumDivisible.java | 0 .../Leetcode}/MaxAverageArray | 0 .../Leetcode}/MaxCandies | 0 .../Leetcode}/MaxConsecutive | 0 .../Leetcode}/MaxInList.java | 0 .../Leetcode}/MaxKPairs | 0 .../Leetcode}/MaxWidthRamp.java | 0 .../MaximalScoreAfterApplyingKOperations.java | 0 .../Leetcode}/MaximumDepthofBinaryTree.java | 0 .../MaximumLevelSumofaBinaryTree.java | 0 .../MaximumNumberofMovesinaGrid.java | 0 .../Leetcode}/MaximumSwap.java | 0 .../Leetcode/MaximumTwinSumofaLinkedList.java | 16 ++++- .../Leetcode}/MedianOfTwoArrays.java | 0 .../Leetcode}/MergeAlternatively.java | 0 .../Leetcode}/MergeTwoSortedList.java | 0 ...aximumofProductsDistributedtoAnyStore.java | 0 ...InsertionstoBalanceaParenthesesString.java | 0 ...rofChangestoMakeBinaryStringBeautiful.java | 0 ...umNumberofRemovalstoMakeMountainArray.java | 0 ...mNumberofSwapstoMaketheStringBalanced.java | 0 .../MinimumTotalDistanceTraveled.java | 0 .../MostBeautifulItemforEachQuery.java | 0 .../Leetcode}/MoveZeros | 0 .../Leetcode}/Numberof1Bits.java | 0 .../Leetcode}/NumberofProvinces.java | 0 .../Leetcode}/OddEvenLinkedList.java | 0 .../Leetcode}/ParsingABooleanExpression.java | 0 .../Leetcode}/PascalsTriangleII.java | 0 .../Leetcode}/PivotIndex.java | 0 .../Leetcode}/PowerOf4.java | 0 .../Leetcode}/PowerOfThree.java | 0 .../Leetcode}/PrimeSubtractionOperation.java | 0 .../Leetcode}/ProductArray | 0 .../Leetcode}/RankTransform.java | 0 .../Leetcode}/RansomeCode.java | 0 .../Leetcode}/RecentCounter.java | 0 .../Leetcode}/RegularExpression.java | 0 .../Leetcode}/RemovStars.java | 0 .../Leetcode}/RemoveDuplicatesLinkedList.java | 0 .../RemoveNthNodeFromLinkedList.java | 0 .../RemoveSubFoldersfromtheFilesystem.java | 0 .../Leetcode}/ReverseAlphabets.java | 0 .../Leetcode}/ReverseLinkedList.java | 0 .../Leetcode}/ReverseString | 0 .../Leetcode}/ReverseVowels | 0 .../Leetcode}/RotateArray.java | 0 .../Leetcode}/RotateString.java | 0 .../Leetcode}/SQL/managerEmployee.txt | 0 .../Leetcode}/SearchInSortedArray.java | 0 .../Leetcode}/SearchinaBinarySearchTree.java | 0 .../Leetcode}/SeparateBlackandWhiteBalls.java | 0 .../Leetcode}/SequenceSubset | 0 .../Leetcode}/SmallestOccupiedChar.java | 0 ...allestRangeCoveringElementsfromKLists.java | 0 ...ingIntotheMaxNumberofUniqueSubstrings.java | 0 .../Leetcode}/StringClose.java | 0 .../Leetcode}/StringGCD | 0 .../Leetcode}/StringtoInt.java | 0 .../Leetcode}/SubtractProdandSum.java | 0 .../Leetcode}/SumOfThree.java | 0 .../Leetcode}/SumThree.java | 0 .../Leetcode}/TappingRainWater.java | 0 .../Leetcode}/ValidParanthesis.java | 0 .../Leetcode}/ValidParenthesis.java | 0 .../Leetcode}/WaterContainer | 0 .../Leetcode}/WordSubset.java | 0 .../Leetcode}/XofaKindinaDeckofCards.java | 0 .../Leetcode}/addone.java | 0 .../Leetcode}/findandreplace.java | 0 .../Leetcode}/lastcommonprefix.java | 0 .../Leetcode}/logestPalindromicSubstring.java | 0 .../Leetcode}/longestsubarray.java | 0 .../Leetcode}/reflectionmirror.java | 0 .../Leetcode}/removeDuplicates.java | 0 .../Leetcode}/removeelemnt.java | 0 .../Leetcode}/romantoint.java | 0 .../Leetcode}/setmatrixzeros.java | 0 .../Leetcode}/uniqueOcurances.java | 0 .../Leetcode}/zigzag.java | 0 .../Recursion}/BinarySum.java | 0 .../Recursion}/FindSqrt.java | 0 .../Recursion}/Main.java | 0 .../Recursion}/decimaltobinary.java | 0 .../Recursion}/factorial.java | 0 .../Recursion}/fibonacci.java | 0 .../Recursion}/gcd.java | 0 .../Recursion}/power.java | 0 .../Recursion}/sumdigit.java | 0 .../codingNinjas}/Fourdivisors.java | 0 .../codingNinjas}/MinimumDifferenceArray.java | 0 .../codingNinjas}/PairSum.java | 0 .../Binary tree}/binarytree.java | 0 .../Binary tree}/binarytree.txt | 0 .../CircularSinglyLinkedList.java | 0 .../CircularSinglyLinkedListTest.java | 0 .../SinglyLinkedList}/Node.java | 0 .../SinglyLinkedList}/SinglyLinkedList.java | 0 .../testsinglelinkedlist.java | 0 .../arrayspackage}/singledimensionarray.java | 0 .../singledimensionarraytest.java | 0 .../arrayspackage}/twodimenisonarray.class | Bin .../arrayspackage}/twodimenisonarray.java | 0 .../arrayspackage}/twodimensionalarray.java | 0 .../twodimensionalarraytest.java | 0 .../doublyLinkedList}/DLL_question.java | 0 .../doublyLinkedList}/doublyLinkedList.java | 0 .../doublyLinkedList}/doublyLinkedList.txt | 0 .../queue/Queue.java | 3 + {queue => Data Structures/queue}/queue.txt | 0 .../queue}/queue_question.java | 0 LeetcodeLeaf/SimilarTrees.java | 55 ------------------ NLP/it_mlnlpmdj_02_enus_03.py | 23 -------- NLP/mlnlpmdj_02_02.py | 28 --------- arrayproject/averagetemp.class | Bin 1373 -> 0 bytes hello.java | 6 -- 182 files changed, 17 insertions(+), 116 deletions(-) rename {Depth First Search => Algorithms/Depth First Search}/DepthFirstSearch.java (100%) rename {Depth First Search => Algorithms/Depth First Search}/DepthFirstSearch.md (100%) rename {arrayproject => Coding Questions/ArrayInterviewQuestion}/averagetemp.java (97%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/copyarray.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/duplicatenumber.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/matrixrotation.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/maxproduct.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/missingnumber.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/pairs.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/permutation.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/searchinarray.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/subset.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/twosum.java (100%) rename {ArrayInterviewQuestion => Coding Questions/ArrayInterviewQuestion}/unique.java (100%) rename sumproduct.java => Coding Questions/General questions/sumproduct.java (100%) rename {Leetcode => Coding Questions/Leetcode}/AddtwoNumbers.java (100%) rename {Leetcode => Coding Questions/Leetcode}/AllODataStructre432.java (100%) rename {Leetcode => Coding Questions/Leetcode}/AsteriodCollision.java (100%) rename {Leetcode => Coding Questions/Leetcode}/AverageSalary.java (100%) rename {Leetcode => Coding Questions/Leetcode}/BinaryTreeLevelOrderTraversal.java (100%) rename {Leetcode => Coding Questions/Leetcode}/BinaryTreeRightSideView.java (100%) rename {Leetcode => Coding Questions/Leetcode}/CircularSentence.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ClimbingStairs.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ContainerMostWater.java (100%) rename {Leetcode => Coding Questions/Leetcode}/CountGoodNodesinBinaryTree.java (100%) rename {Leetcode => Coding Questions/Leetcode}/CountNumberofMaximumBitwiseORSubsets.java (100%) rename {Leetcode => Coding Questions/Leetcode}/CountOddNumbers.java (100%) rename {Leetcode => Coding Questions/Leetcode}/CountSquareSubmatriceswithAllOnes.java (100%) rename {Leetcode => Coding Questions/Leetcode}/CousinsinBinaryTreeII.java (100%) rename {Leetcode => Coding Questions/Leetcode}/CustomStack.java (100%) rename {Leetcode => Coding Questions/Leetcode}/DecodeString.java (100%) rename {Leetcode => Coding Questions/Leetcode}/DeleteCharacterstoMakeFancyString.java (100%) rename {Leetcode => Coding Questions/Leetcode}/DeleteMiddleLinkedList.java (100%) rename {Leetcode => Coding Questions/Leetcode}/DeleteNodeinaBST.java (100%) rename {Leetcode => Coding Questions/Leetcode}/DifferenceArray.java (100%) rename {Leetcode => Coding Questions/Leetcode}/DivideIntervalsIntoMinimumNumberofGroups.java (100%) rename {Leetcode => Coding Questions/Leetcode}/DivisibleByK.java (100%) rename {Leetcode => Coding Questions/Leetcode}/Dota2Senate.java (100%) rename {Leetcode => Coding Questions/Leetcode}/DuplicatesEasy.java (100%) rename {Leetcode => Coding Questions/Leetcode}/DuplicatesMedium.java (100%) rename {Leetcode => Coding Questions/Leetcode}/EqualRowColumn.java (100%) rename {Leetcode => Coding Questions/Leetcode}/FindHighestAltitude.java (100%) rename {Leetcode => Coding Questions/Leetcode}/FindKthBitinNthBinaryString.java (100%) rename {Leetcode => Coding Questions/Leetcode}/FindNonDuplicate.java (100%) rename {Leetcode => Coding Questions/Leetcode}/FindtheMaximumFactorScoreofArray.java (100%) rename {Leetcode => Coding Questions/Leetcode}/FindtheOriginalTypedStringI.java (100%) rename {Leetcode => Coding Questions/Leetcode}/FlipEquivalentBinaryTrees.java (100%) rename {Leetcode => Coding Questions/Leetcode}/FlowerPlacing (100%) rename {Leetcode => Coding Questions/Leetcode}/HeightofBinaryTreeAfterSubtreeRemovalQueries.java (100%) rename {Leetcode => Coding Questions/Leetcode}/IncreasingTriplet (100%) rename {Leetcode => Coding Questions/Leetcode}/IntegertoRoman.java (100%) rename {Leetcode => Coding Questions/Leetcode}/IsPallindrome.java (100%) rename {Leetcode => Coding Questions/Leetcode}/KClosestPointstoOrigin.java (100%) rename {Leetcode => Coding Questions/Leetcode}/KeysandRooms.java (100%) rename {Leetcode => Coding Questions/Leetcode}/KthLargestSuminaBinaryTree.java (100%) rename {Leetcode => Coding Questions/Leetcode}/LastWordLength.java (100%) rename {Leetcode => Coding Questions/Leetcode}/LeafSimilarTrees.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ListNode.java (100%) rename {Leetcode => Coding Questions/Leetcode}/LongestHappyString.java (100%) rename {Leetcode => Coding Questions/Leetcode}/LongestSquareStreakinanArray.java (100%) rename {Leetcode => Coding Questions/Leetcode}/LongestSubstring.java (100%) rename {Leetcode => Coding Questions/Leetcode}/LongestValidParentheses.java (100%) rename {Leetcode => Coding Questions/Leetcode}/LongestZigZagPathinaBinaryTree.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MaWidthramp.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MajorityElement.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MajorityElementFast.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MakeSumDivisible.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MaxAverageArray (100%) rename {Leetcode => Coding Questions/Leetcode}/MaxCandies (100%) rename {Leetcode => Coding Questions/Leetcode}/MaxConsecutive (100%) rename {Leetcode => Coding Questions/Leetcode}/MaxInList.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MaxKPairs (100%) rename {Leetcode => Coding Questions/Leetcode}/MaxWidthRamp.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MaximalScoreAfterApplyingKOperations.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MaximumDepthofBinaryTree.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MaximumLevelSumofaBinaryTree.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MaximumNumberofMovesinaGrid.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MaximumSwap.java (100%) rename MaximumTwinSumofaLinkedList.java => Coding Questions/Leetcode/MaximumTwinSumofaLinkedList.java (89%) rename {Leetcode => Coding Questions/Leetcode}/MedianOfTwoArrays.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MergeAlternatively.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MergeTwoSortedList.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MinimizedMaximumofProductsDistributedtoAnyStore.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MinimumInsertionstoBalanceaParenthesesString.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MinimumNumberofChangestoMakeBinaryStringBeautiful.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MinimumNumberofRemovalstoMakeMountainArray.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MinimumNumberofSwapstoMaketheStringBalanced.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MinimumTotalDistanceTraveled.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MostBeautifulItemforEachQuery.java (100%) rename {Leetcode => Coding Questions/Leetcode}/MoveZeros (100%) rename {Leetcode => Coding Questions/Leetcode}/Numberof1Bits.java (100%) rename {Leetcode => Coding Questions/Leetcode}/NumberofProvinces.java (100%) rename {Leetcode => Coding Questions/Leetcode}/OddEvenLinkedList.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ParsingABooleanExpression.java (100%) rename {Leetcode => Coding Questions/Leetcode}/PascalsTriangleII.java (100%) rename {Leetcode => Coding Questions/Leetcode}/PivotIndex.java (100%) rename {Leetcode => Coding Questions/Leetcode}/PowerOf4.java (100%) rename {Leetcode => Coding Questions/Leetcode}/PowerOfThree.java (100%) rename {Leetcode => Coding Questions/Leetcode}/PrimeSubtractionOperation.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ProductArray (100%) rename {Leetcode => Coding Questions/Leetcode}/RankTransform.java (100%) rename {Leetcode => Coding Questions/Leetcode}/RansomeCode.java (100%) rename {Leetcode => Coding Questions/Leetcode}/RecentCounter.java (100%) rename {Leetcode => Coding Questions/Leetcode}/RegularExpression.java (100%) rename {Leetcode => Coding Questions/Leetcode}/RemovStars.java (100%) rename {Leetcode => Coding Questions/Leetcode}/RemoveDuplicatesLinkedList.java (100%) rename {Leetcode => Coding Questions/Leetcode}/RemoveNthNodeFromLinkedList.java (100%) rename {Leetcode => Coding Questions/Leetcode}/RemoveSubFoldersfromtheFilesystem.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ReverseAlphabets.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ReverseLinkedList.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ReverseString (100%) rename {Leetcode => Coding Questions/Leetcode}/ReverseVowels (100%) rename {Leetcode => Coding Questions/Leetcode}/RotateArray.java (100%) rename {Leetcode => Coding Questions/Leetcode}/RotateString.java (100%) rename {Leetcode => Coding Questions/Leetcode}/SQL/managerEmployee.txt (100%) rename {Leetcode => Coding Questions/Leetcode}/SearchInSortedArray.java (100%) rename {Leetcode => Coding Questions/Leetcode}/SearchinaBinarySearchTree.java (100%) rename {Leetcode => Coding Questions/Leetcode}/SeparateBlackandWhiteBalls.java (100%) rename {Leetcode => Coding Questions/Leetcode}/SequenceSubset (100%) rename {Leetcode => Coding Questions/Leetcode}/SmallestOccupiedChar.java (100%) rename {Leetcode => Coding Questions/Leetcode}/SmallestRangeCoveringElementsfromKLists.java (100%) rename {Leetcode => Coding Questions/Leetcode}/SplitaStringIntotheMaxNumberofUniqueSubstrings.java (100%) rename {Leetcode => Coding Questions/Leetcode}/StringClose.java (100%) rename {Leetcode => Coding Questions/Leetcode}/StringGCD (100%) rename {Leetcode => Coding Questions/Leetcode}/StringtoInt.java (100%) rename {Leetcode => Coding Questions/Leetcode}/SubtractProdandSum.java (100%) rename {Leetcode => Coding Questions/Leetcode}/SumOfThree.java (100%) rename {Leetcode => Coding Questions/Leetcode}/SumThree.java (100%) rename {Leetcode => Coding Questions/Leetcode}/TappingRainWater.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ValidParanthesis.java (100%) rename {Leetcode => Coding Questions/Leetcode}/ValidParenthesis.java (100%) rename {Leetcode => Coding Questions/Leetcode}/WaterContainer (100%) rename {Leetcode => Coding Questions/Leetcode}/WordSubset.java (100%) rename {Leetcode => Coding Questions/Leetcode}/XofaKindinaDeckofCards.java (100%) rename {Leetcode => Coding Questions/Leetcode}/addone.java (100%) rename {Leetcode => Coding Questions/Leetcode}/findandreplace.java (100%) rename {Leetcode => Coding Questions/Leetcode}/lastcommonprefix.java (100%) rename {Leetcode => Coding Questions/Leetcode}/logestPalindromicSubstring.java (100%) rename {Leetcode => Coding Questions/Leetcode}/longestsubarray.java (100%) rename {Leetcode => Coding Questions/Leetcode}/reflectionmirror.java (100%) rename {Leetcode => Coding Questions/Leetcode}/removeDuplicates.java (100%) rename {Leetcode => Coding Questions/Leetcode}/removeelemnt.java (100%) rename {Leetcode => Coding Questions/Leetcode}/romantoint.java (100%) rename {Leetcode => Coding Questions/Leetcode}/setmatrixzeros.java (100%) rename {Leetcode => Coding Questions/Leetcode}/uniqueOcurances.java (100%) rename {Leetcode => Coding Questions/Leetcode}/zigzag.java (100%) rename {Recursion => Coding Questions/Recursion}/BinarySum.java (100%) rename {Recursion => Coding Questions/Recursion}/FindSqrt.java (100%) rename {Recursion => Coding Questions/Recursion}/Main.java (100%) rename {Recursion => Coding Questions/Recursion}/decimaltobinary.java (100%) rename {Recursion => Coding Questions/Recursion}/factorial.java (100%) rename {Recursion => Coding Questions/Recursion}/fibonacci.java (100%) rename {Recursion => Coding Questions/Recursion}/gcd.java (100%) rename {Recursion => Coding Questions/Recursion}/power.java (100%) rename {Recursion => Coding Questions/Recursion}/sumdigit.java (100%) rename {codingNinjas => Coding Questions/codingNinjas}/Fourdivisors.java (100%) rename {codingNinjas => Coding Questions/codingNinjas}/MinimumDifferenceArray.java (100%) rename {codingNinjas => Coding Questions/codingNinjas}/PairSum.java (100%) rename {Binary tree => Data Structures/Binary tree}/binarytree.java (100%) rename {Binary tree => Data Structures/Binary tree}/binarytree.txt (100%) rename {SinglyLinkedList => Data Structures/SinglyLinkedList}/CircularSinglyLinkedList.java (100%) rename {SinglyLinkedList => Data Structures/SinglyLinkedList}/CircularSinglyLinkedListTest.java (100%) rename {SinglyLinkedList => Data Structures/SinglyLinkedList}/Node.java (100%) rename {SinglyLinkedList => Data Structures/SinglyLinkedList}/SinglyLinkedList.java (100%) rename {SinglyLinkedList => Data Structures/SinglyLinkedList}/testsinglelinkedlist.java (100%) rename {arrayspackage => Data Structures/arrayspackage}/singledimensionarray.java (100%) rename {arrayspackage => Data Structures/arrayspackage}/singledimensionarraytest.java (100%) rename {arrayspackage => Data Structures/arrayspackage}/twodimenisonarray.class (100%) rename {arrayspackage => Data Structures/arrayspackage}/twodimenisonarray.java (100%) rename {arrayspackage => Data Structures/arrayspackage}/twodimensionalarray.java (100%) rename {arrayspackage => Data Structures/arrayspackage}/twodimensionalarraytest.java (100%) rename {doublyLinkedList => Data Structures/doublyLinkedList}/DLL_question.java (100%) rename {doublyLinkedList => Data Structures/doublyLinkedList}/doublyLinkedList.java (100%) rename {doublyLinkedList => Data Structures/doublyLinkedList}/doublyLinkedList.txt (100%) rename queue/queue.java => Data Structures/queue/Queue.java (99%) rename {queue => Data Structures/queue}/queue.txt (100%) rename {queue => Data Structures/queue}/queue_question.java (100%) delete mode 100644 LeetcodeLeaf/SimilarTrees.java delete mode 100644 NLP/it_mlnlpmdj_02_enus_03.py delete mode 100644 NLP/mlnlpmdj_02_02.py delete mode 100644 arrayproject/averagetemp.class delete mode 100644 hello.java diff --git a/Depth First Search/DepthFirstSearch.java b/Algorithms/Depth First Search/DepthFirstSearch.java similarity index 100% rename from Depth First Search/DepthFirstSearch.java rename to Algorithms/Depth First Search/DepthFirstSearch.java diff --git a/Depth First Search/DepthFirstSearch.md b/Algorithms/Depth First Search/DepthFirstSearch.md similarity index 100% rename from Depth First Search/DepthFirstSearch.md rename to Algorithms/Depth First Search/DepthFirstSearch.md diff --git a/arrayproject/averagetemp.java b/Coding Questions/ArrayInterviewQuestion/averagetemp.java similarity index 97% rename from arrayproject/averagetemp.java rename to Coding Questions/ArrayInterviewQuestion/averagetemp.java index c1b0bc5..50ec75b 100644 --- a/arrayproject/averagetemp.java +++ b/Coding Questions/ArrayInterviewQuestion/averagetemp.java @@ -1,5 +1,3 @@ -package arrayproject; - import java.util.Scanner; public class averagetemp { diff --git a/ArrayInterviewQuestion/copyarray.java b/Coding Questions/ArrayInterviewQuestion/copyarray.java similarity index 100% rename from ArrayInterviewQuestion/copyarray.java rename to Coding Questions/ArrayInterviewQuestion/copyarray.java diff --git a/ArrayInterviewQuestion/duplicatenumber.java b/Coding Questions/ArrayInterviewQuestion/duplicatenumber.java similarity index 100% rename from ArrayInterviewQuestion/duplicatenumber.java rename to Coding Questions/ArrayInterviewQuestion/duplicatenumber.java diff --git a/ArrayInterviewQuestion/matrixrotation.java b/Coding Questions/ArrayInterviewQuestion/matrixrotation.java similarity index 100% rename from ArrayInterviewQuestion/matrixrotation.java rename to Coding Questions/ArrayInterviewQuestion/matrixrotation.java diff --git a/ArrayInterviewQuestion/maxproduct.java b/Coding Questions/ArrayInterviewQuestion/maxproduct.java similarity index 100% rename from ArrayInterviewQuestion/maxproduct.java rename to Coding Questions/ArrayInterviewQuestion/maxproduct.java diff --git a/ArrayInterviewQuestion/missingnumber.java b/Coding Questions/ArrayInterviewQuestion/missingnumber.java similarity index 100% rename from ArrayInterviewQuestion/missingnumber.java rename to Coding Questions/ArrayInterviewQuestion/missingnumber.java diff --git a/ArrayInterviewQuestion/pairs.java b/Coding Questions/ArrayInterviewQuestion/pairs.java similarity index 100% rename from ArrayInterviewQuestion/pairs.java rename to Coding Questions/ArrayInterviewQuestion/pairs.java diff --git a/ArrayInterviewQuestion/permutation.java b/Coding Questions/ArrayInterviewQuestion/permutation.java similarity index 100% rename from ArrayInterviewQuestion/permutation.java rename to Coding Questions/ArrayInterviewQuestion/permutation.java diff --git a/ArrayInterviewQuestion/searchinarray.java b/Coding Questions/ArrayInterviewQuestion/searchinarray.java similarity index 100% rename from ArrayInterviewQuestion/searchinarray.java rename to Coding Questions/ArrayInterviewQuestion/searchinarray.java diff --git a/ArrayInterviewQuestion/subset.java b/Coding Questions/ArrayInterviewQuestion/subset.java similarity index 100% rename from ArrayInterviewQuestion/subset.java rename to Coding Questions/ArrayInterviewQuestion/subset.java diff --git a/ArrayInterviewQuestion/twosum.java b/Coding Questions/ArrayInterviewQuestion/twosum.java similarity index 100% rename from ArrayInterviewQuestion/twosum.java rename to Coding Questions/ArrayInterviewQuestion/twosum.java diff --git a/ArrayInterviewQuestion/unique.java b/Coding Questions/ArrayInterviewQuestion/unique.java similarity index 100% rename from ArrayInterviewQuestion/unique.java rename to Coding Questions/ArrayInterviewQuestion/unique.java diff --git a/sumproduct.java b/Coding Questions/General questions/sumproduct.java similarity index 100% rename from sumproduct.java rename to Coding Questions/General questions/sumproduct.java diff --git a/Leetcode/AddtwoNumbers.java b/Coding Questions/Leetcode/AddtwoNumbers.java similarity index 100% rename from Leetcode/AddtwoNumbers.java rename to Coding Questions/Leetcode/AddtwoNumbers.java diff --git a/Leetcode/AllODataStructre432.java b/Coding Questions/Leetcode/AllODataStructre432.java similarity index 100% rename from Leetcode/AllODataStructre432.java rename to Coding Questions/Leetcode/AllODataStructre432.java diff --git a/Leetcode/AsteriodCollision.java b/Coding Questions/Leetcode/AsteriodCollision.java similarity index 100% rename from Leetcode/AsteriodCollision.java rename to Coding Questions/Leetcode/AsteriodCollision.java diff --git a/Leetcode/AverageSalary.java b/Coding Questions/Leetcode/AverageSalary.java similarity index 100% rename from Leetcode/AverageSalary.java rename to Coding Questions/Leetcode/AverageSalary.java diff --git a/Leetcode/BinaryTreeLevelOrderTraversal.java b/Coding Questions/Leetcode/BinaryTreeLevelOrderTraversal.java similarity index 100% rename from Leetcode/BinaryTreeLevelOrderTraversal.java rename to Coding Questions/Leetcode/BinaryTreeLevelOrderTraversal.java diff --git a/Leetcode/BinaryTreeRightSideView.java b/Coding Questions/Leetcode/BinaryTreeRightSideView.java similarity index 100% rename from Leetcode/BinaryTreeRightSideView.java rename to Coding Questions/Leetcode/BinaryTreeRightSideView.java diff --git a/Leetcode/CircularSentence.java b/Coding Questions/Leetcode/CircularSentence.java similarity index 100% rename from Leetcode/CircularSentence.java rename to Coding Questions/Leetcode/CircularSentence.java diff --git a/Leetcode/ClimbingStairs.java b/Coding Questions/Leetcode/ClimbingStairs.java similarity index 100% rename from Leetcode/ClimbingStairs.java rename to Coding Questions/Leetcode/ClimbingStairs.java diff --git a/Leetcode/ContainerMostWater.java b/Coding Questions/Leetcode/ContainerMostWater.java similarity index 100% rename from Leetcode/ContainerMostWater.java rename to Coding Questions/Leetcode/ContainerMostWater.java diff --git a/Leetcode/CountGoodNodesinBinaryTree.java b/Coding Questions/Leetcode/CountGoodNodesinBinaryTree.java similarity index 100% rename from Leetcode/CountGoodNodesinBinaryTree.java rename to Coding Questions/Leetcode/CountGoodNodesinBinaryTree.java diff --git a/Leetcode/CountNumberofMaximumBitwiseORSubsets.java b/Coding Questions/Leetcode/CountNumberofMaximumBitwiseORSubsets.java similarity index 100% rename from Leetcode/CountNumberofMaximumBitwiseORSubsets.java rename to Coding Questions/Leetcode/CountNumberofMaximumBitwiseORSubsets.java diff --git a/Leetcode/CountOddNumbers.java b/Coding Questions/Leetcode/CountOddNumbers.java similarity index 100% rename from Leetcode/CountOddNumbers.java rename to Coding Questions/Leetcode/CountOddNumbers.java diff --git a/Leetcode/CountSquareSubmatriceswithAllOnes.java b/Coding Questions/Leetcode/CountSquareSubmatriceswithAllOnes.java similarity index 100% rename from Leetcode/CountSquareSubmatriceswithAllOnes.java rename to Coding Questions/Leetcode/CountSquareSubmatriceswithAllOnes.java diff --git a/Leetcode/CousinsinBinaryTreeII.java b/Coding Questions/Leetcode/CousinsinBinaryTreeII.java similarity index 100% rename from Leetcode/CousinsinBinaryTreeII.java rename to Coding Questions/Leetcode/CousinsinBinaryTreeII.java diff --git a/Leetcode/CustomStack.java b/Coding Questions/Leetcode/CustomStack.java similarity index 100% rename from Leetcode/CustomStack.java rename to Coding Questions/Leetcode/CustomStack.java diff --git a/Leetcode/DecodeString.java b/Coding Questions/Leetcode/DecodeString.java similarity index 100% rename from Leetcode/DecodeString.java rename to Coding Questions/Leetcode/DecodeString.java diff --git a/Leetcode/DeleteCharacterstoMakeFancyString.java b/Coding Questions/Leetcode/DeleteCharacterstoMakeFancyString.java similarity index 100% rename from Leetcode/DeleteCharacterstoMakeFancyString.java rename to Coding Questions/Leetcode/DeleteCharacterstoMakeFancyString.java diff --git a/Leetcode/DeleteMiddleLinkedList.java b/Coding Questions/Leetcode/DeleteMiddleLinkedList.java similarity index 100% rename from Leetcode/DeleteMiddleLinkedList.java rename to Coding Questions/Leetcode/DeleteMiddleLinkedList.java diff --git a/Leetcode/DeleteNodeinaBST.java b/Coding Questions/Leetcode/DeleteNodeinaBST.java similarity index 100% rename from Leetcode/DeleteNodeinaBST.java rename to Coding Questions/Leetcode/DeleteNodeinaBST.java diff --git a/Leetcode/DifferenceArray.java b/Coding Questions/Leetcode/DifferenceArray.java similarity index 100% rename from Leetcode/DifferenceArray.java rename to Coding Questions/Leetcode/DifferenceArray.java diff --git a/Leetcode/DivideIntervalsIntoMinimumNumberofGroups.java b/Coding Questions/Leetcode/DivideIntervalsIntoMinimumNumberofGroups.java similarity index 100% rename from Leetcode/DivideIntervalsIntoMinimumNumberofGroups.java rename to Coding Questions/Leetcode/DivideIntervalsIntoMinimumNumberofGroups.java diff --git a/Leetcode/DivisibleByK.java b/Coding Questions/Leetcode/DivisibleByK.java similarity index 100% rename from Leetcode/DivisibleByK.java rename to Coding Questions/Leetcode/DivisibleByK.java diff --git a/Leetcode/Dota2Senate.java b/Coding Questions/Leetcode/Dota2Senate.java similarity index 100% rename from Leetcode/Dota2Senate.java rename to Coding Questions/Leetcode/Dota2Senate.java diff --git a/Leetcode/DuplicatesEasy.java b/Coding Questions/Leetcode/DuplicatesEasy.java similarity index 100% rename from Leetcode/DuplicatesEasy.java rename to Coding Questions/Leetcode/DuplicatesEasy.java diff --git a/Leetcode/DuplicatesMedium.java b/Coding Questions/Leetcode/DuplicatesMedium.java similarity index 100% rename from Leetcode/DuplicatesMedium.java rename to Coding Questions/Leetcode/DuplicatesMedium.java diff --git a/Leetcode/EqualRowColumn.java b/Coding Questions/Leetcode/EqualRowColumn.java similarity index 100% rename from Leetcode/EqualRowColumn.java rename to Coding Questions/Leetcode/EqualRowColumn.java diff --git a/Leetcode/FindHighestAltitude.java b/Coding Questions/Leetcode/FindHighestAltitude.java similarity index 100% rename from Leetcode/FindHighestAltitude.java rename to Coding Questions/Leetcode/FindHighestAltitude.java diff --git a/Leetcode/FindKthBitinNthBinaryString.java b/Coding Questions/Leetcode/FindKthBitinNthBinaryString.java similarity index 100% rename from Leetcode/FindKthBitinNthBinaryString.java rename to Coding Questions/Leetcode/FindKthBitinNthBinaryString.java diff --git a/Leetcode/FindNonDuplicate.java b/Coding Questions/Leetcode/FindNonDuplicate.java similarity index 100% rename from Leetcode/FindNonDuplicate.java rename to Coding Questions/Leetcode/FindNonDuplicate.java diff --git a/Leetcode/FindtheMaximumFactorScoreofArray.java b/Coding Questions/Leetcode/FindtheMaximumFactorScoreofArray.java similarity index 100% rename from Leetcode/FindtheMaximumFactorScoreofArray.java rename to Coding Questions/Leetcode/FindtheMaximumFactorScoreofArray.java diff --git a/Leetcode/FindtheOriginalTypedStringI.java b/Coding Questions/Leetcode/FindtheOriginalTypedStringI.java similarity index 100% rename from Leetcode/FindtheOriginalTypedStringI.java rename to Coding Questions/Leetcode/FindtheOriginalTypedStringI.java diff --git a/Leetcode/FlipEquivalentBinaryTrees.java b/Coding Questions/Leetcode/FlipEquivalentBinaryTrees.java similarity index 100% rename from Leetcode/FlipEquivalentBinaryTrees.java rename to Coding Questions/Leetcode/FlipEquivalentBinaryTrees.java diff --git a/Leetcode/FlowerPlacing b/Coding Questions/Leetcode/FlowerPlacing similarity index 100% rename from Leetcode/FlowerPlacing rename to Coding Questions/Leetcode/FlowerPlacing diff --git a/Leetcode/HeightofBinaryTreeAfterSubtreeRemovalQueries.java b/Coding Questions/Leetcode/HeightofBinaryTreeAfterSubtreeRemovalQueries.java similarity index 100% rename from Leetcode/HeightofBinaryTreeAfterSubtreeRemovalQueries.java rename to Coding Questions/Leetcode/HeightofBinaryTreeAfterSubtreeRemovalQueries.java diff --git a/Leetcode/IncreasingTriplet b/Coding Questions/Leetcode/IncreasingTriplet similarity index 100% rename from Leetcode/IncreasingTriplet rename to Coding Questions/Leetcode/IncreasingTriplet diff --git a/Leetcode/IntegertoRoman.java b/Coding Questions/Leetcode/IntegertoRoman.java similarity index 100% rename from Leetcode/IntegertoRoman.java rename to Coding Questions/Leetcode/IntegertoRoman.java diff --git a/Leetcode/IsPallindrome.java b/Coding Questions/Leetcode/IsPallindrome.java similarity index 100% rename from Leetcode/IsPallindrome.java rename to Coding Questions/Leetcode/IsPallindrome.java diff --git a/Leetcode/KClosestPointstoOrigin.java b/Coding Questions/Leetcode/KClosestPointstoOrigin.java similarity index 100% rename from Leetcode/KClosestPointstoOrigin.java rename to Coding Questions/Leetcode/KClosestPointstoOrigin.java diff --git a/Leetcode/KeysandRooms.java b/Coding Questions/Leetcode/KeysandRooms.java similarity index 100% rename from Leetcode/KeysandRooms.java rename to Coding Questions/Leetcode/KeysandRooms.java diff --git a/Leetcode/KthLargestSuminaBinaryTree.java b/Coding Questions/Leetcode/KthLargestSuminaBinaryTree.java similarity index 100% rename from Leetcode/KthLargestSuminaBinaryTree.java rename to Coding Questions/Leetcode/KthLargestSuminaBinaryTree.java diff --git a/Leetcode/LastWordLength.java b/Coding Questions/Leetcode/LastWordLength.java similarity index 100% rename from Leetcode/LastWordLength.java rename to Coding Questions/Leetcode/LastWordLength.java diff --git a/Leetcode/LeafSimilarTrees.java b/Coding Questions/Leetcode/LeafSimilarTrees.java similarity index 100% rename from Leetcode/LeafSimilarTrees.java rename to Coding Questions/Leetcode/LeafSimilarTrees.java diff --git a/Leetcode/ListNode.java b/Coding Questions/Leetcode/ListNode.java similarity index 100% rename from Leetcode/ListNode.java rename to Coding Questions/Leetcode/ListNode.java diff --git a/Leetcode/LongestHappyString.java b/Coding Questions/Leetcode/LongestHappyString.java similarity index 100% rename from Leetcode/LongestHappyString.java rename to Coding Questions/Leetcode/LongestHappyString.java diff --git a/Leetcode/LongestSquareStreakinanArray.java b/Coding Questions/Leetcode/LongestSquareStreakinanArray.java similarity index 100% rename from Leetcode/LongestSquareStreakinanArray.java rename to Coding Questions/Leetcode/LongestSquareStreakinanArray.java diff --git a/Leetcode/LongestSubstring.java b/Coding Questions/Leetcode/LongestSubstring.java similarity index 100% rename from Leetcode/LongestSubstring.java rename to Coding Questions/Leetcode/LongestSubstring.java diff --git a/Leetcode/LongestValidParentheses.java b/Coding Questions/Leetcode/LongestValidParentheses.java similarity index 100% rename from Leetcode/LongestValidParentheses.java rename to Coding Questions/Leetcode/LongestValidParentheses.java diff --git a/Leetcode/LongestZigZagPathinaBinaryTree.java b/Coding Questions/Leetcode/LongestZigZagPathinaBinaryTree.java similarity index 100% rename from Leetcode/LongestZigZagPathinaBinaryTree.java rename to Coding Questions/Leetcode/LongestZigZagPathinaBinaryTree.java diff --git a/Leetcode/MaWidthramp.java b/Coding Questions/Leetcode/MaWidthramp.java similarity index 100% rename from Leetcode/MaWidthramp.java rename to Coding Questions/Leetcode/MaWidthramp.java diff --git a/Leetcode/MajorityElement.java b/Coding Questions/Leetcode/MajorityElement.java similarity index 100% rename from Leetcode/MajorityElement.java rename to Coding Questions/Leetcode/MajorityElement.java diff --git a/Leetcode/MajorityElementFast.java b/Coding Questions/Leetcode/MajorityElementFast.java similarity index 100% rename from Leetcode/MajorityElementFast.java rename to Coding Questions/Leetcode/MajorityElementFast.java diff --git a/Leetcode/MakeSumDivisible.java b/Coding Questions/Leetcode/MakeSumDivisible.java similarity index 100% rename from Leetcode/MakeSumDivisible.java rename to Coding Questions/Leetcode/MakeSumDivisible.java diff --git a/Leetcode/MaxAverageArray b/Coding Questions/Leetcode/MaxAverageArray similarity index 100% rename from Leetcode/MaxAverageArray rename to Coding Questions/Leetcode/MaxAverageArray diff --git a/Leetcode/MaxCandies b/Coding Questions/Leetcode/MaxCandies similarity index 100% rename from Leetcode/MaxCandies rename to Coding Questions/Leetcode/MaxCandies diff --git a/Leetcode/MaxConsecutive b/Coding Questions/Leetcode/MaxConsecutive similarity index 100% rename from Leetcode/MaxConsecutive rename to Coding Questions/Leetcode/MaxConsecutive diff --git a/Leetcode/MaxInList.java b/Coding Questions/Leetcode/MaxInList.java similarity index 100% rename from Leetcode/MaxInList.java rename to Coding Questions/Leetcode/MaxInList.java diff --git a/Leetcode/MaxKPairs b/Coding Questions/Leetcode/MaxKPairs similarity index 100% rename from Leetcode/MaxKPairs rename to Coding Questions/Leetcode/MaxKPairs diff --git a/Leetcode/MaxWidthRamp.java b/Coding Questions/Leetcode/MaxWidthRamp.java similarity index 100% rename from Leetcode/MaxWidthRamp.java rename to Coding Questions/Leetcode/MaxWidthRamp.java diff --git a/Leetcode/MaximalScoreAfterApplyingKOperations.java b/Coding Questions/Leetcode/MaximalScoreAfterApplyingKOperations.java similarity index 100% rename from Leetcode/MaximalScoreAfterApplyingKOperations.java rename to Coding Questions/Leetcode/MaximalScoreAfterApplyingKOperations.java diff --git a/Leetcode/MaximumDepthofBinaryTree.java b/Coding Questions/Leetcode/MaximumDepthofBinaryTree.java similarity index 100% rename from Leetcode/MaximumDepthofBinaryTree.java rename to Coding Questions/Leetcode/MaximumDepthofBinaryTree.java diff --git a/Leetcode/MaximumLevelSumofaBinaryTree.java b/Coding Questions/Leetcode/MaximumLevelSumofaBinaryTree.java similarity index 100% rename from Leetcode/MaximumLevelSumofaBinaryTree.java rename to Coding Questions/Leetcode/MaximumLevelSumofaBinaryTree.java diff --git a/Leetcode/MaximumNumberofMovesinaGrid.java b/Coding Questions/Leetcode/MaximumNumberofMovesinaGrid.java similarity index 100% rename from Leetcode/MaximumNumberofMovesinaGrid.java rename to Coding Questions/Leetcode/MaximumNumberofMovesinaGrid.java diff --git a/Leetcode/MaximumSwap.java b/Coding Questions/Leetcode/MaximumSwap.java similarity index 100% rename from Leetcode/MaximumSwap.java rename to Coding Questions/Leetcode/MaximumSwap.java diff --git a/MaximumTwinSumofaLinkedList.java b/Coding Questions/Leetcode/MaximumTwinSumofaLinkedList.java similarity index 89% rename from MaximumTwinSumofaLinkedList.java rename to Coding Questions/Leetcode/MaximumTwinSumofaLinkedList.java index a0cb605..275a54a 100644 --- a/MaximumTwinSumofaLinkedList.java +++ b/Coding Questions/Leetcode/MaximumTwinSumofaLinkedList.java @@ -22,8 +22,20 @@ In a linked list of size n, where n is even, the ith node (0-indexed) of the lin * ListNode(int val, ListNode next) { this.val = val; this.next = next; } * } */ + + +import java.util.*; + + class ListNode { + int val; + ListNode next; + ListNode() {} + ListNode(int val) { this.val = val; } + ListNode(int val, ListNode next) { this.val = val; this.next = next; } + } + /** My Solution **/ -class Solution { +public class MaximumTwinSumofaLinkedList { public int pairSum(ListNode head) { List a = new ArrayList<>(); while(head!=null){ @@ -42,7 +54,7 @@ public int pairSum(ListNode head) { } /** best solution **/ -class Solution { +class Solution1 { private static int [] a = new int[100000]; public int pairSum(ListNode head) { diff --git a/Leetcode/MedianOfTwoArrays.java b/Coding Questions/Leetcode/MedianOfTwoArrays.java similarity index 100% rename from Leetcode/MedianOfTwoArrays.java rename to Coding Questions/Leetcode/MedianOfTwoArrays.java diff --git a/Leetcode/MergeAlternatively.java b/Coding Questions/Leetcode/MergeAlternatively.java similarity index 100% rename from Leetcode/MergeAlternatively.java rename to Coding Questions/Leetcode/MergeAlternatively.java diff --git a/Leetcode/MergeTwoSortedList.java b/Coding Questions/Leetcode/MergeTwoSortedList.java similarity index 100% rename from Leetcode/MergeTwoSortedList.java rename to Coding Questions/Leetcode/MergeTwoSortedList.java diff --git a/Leetcode/MinimizedMaximumofProductsDistributedtoAnyStore.java b/Coding Questions/Leetcode/MinimizedMaximumofProductsDistributedtoAnyStore.java similarity index 100% rename from Leetcode/MinimizedMaximumofProductsDistributedtoAnyStore.java rename to Coding Questions/Leetcode/MinimizedMaximumofProductsDistributedtoAnyStore.java diff --git a/Leetcode/MinimumInsertionstoBalanceaParenthesesString.java b/Coding Questions/Leetcode/MinimumInsertionstoBalanceaParenthesesString.java similarity index 100% rename from Leetcode/MinimumInsertionstoBalanceaParenthesesString.java rename to Coding Questions/Leetcode/MinimumInsertionstoBalanceaParenthesesString.java diff --git a/Leetcode/MinimumNumberofChangestoMakeBinaryStringBeautiful.java b/Coding Questions/Leetcode/MinimumNumberofChangestoMakeBinaryStringBeautiful.java similarity index 100% rename from Leetcode/MinimumNumberofChangestoMakeBinaryStringBeautiful.java rename to Coding Questions/Leetcode/MinimumNumberofChangestoMakeBinaryStringBeautiful.java diff --git a/Leetcode/MinimumNumberofRemovalstoMakeMountainArray.java b/Coding Questions/Leetcode/MinimumNumberofRemovalstoMakeMountainArray.java similarity index 100% rename from Leetcode/MinimumNumberofRemovalstoMakeMountainArray.java rename to Coding Questions/Leetcode/MinimumNumberofRemovalstoMakeMountainArray.java diff --git a/Leetcode/MinimumNumberofSwapstoMaketheStringBalanced.java b/Coding Questions/Leetcode/MinimumNumberofSwapstoMaketheStringBalanced.java similarity index 100% rename from Leetcode/MinimumNumberofSwapstoMaketheStringBalanced.java rename to Coding Questions/Leetcode/MinimumNumberofSwapstoMaketheStringBalanced.java diff --git a/Leetcode/MinimumTotalDistanceTraveled.java b/Coding Questions/Leetcode/MinimumTotalDistanceTraveled.java similarity index 100% rename from Leetcode/MinimumTotalDistanceTraveled.java rename to Coding Questions/Leetcode/MinimumTotalDistanceTraveled.java diff --git a/Leetcode/MostBeautifulItemforEachQuery.java b/Coding Questions/Leetcode/MostBeautifulItemforEachQuery.java similarity index 100% rename from Leetcode/MostBeautifulItemforEachQuery.java rename to Coding Questions/Leetcode/MostBeautifulItemforEachQuery.java diff --git a/Leetcode/MoveZeros b/Coding Questions/Leetcode/MoveZeros similarity index 100% rename from Leetcode/MoveZeros rename to Coding Questions/Leetcode/MoveZeros diff --git a/Leetcode/Numberof1Bits.java b/Coding Questions/Leetcode/Numberof1Bits.java similarity index 100% rename from Leetcode/Numberof1Bits.java rename to Coding Questions/Leetcode/Numberof1Bits.java diff --git a/Leetcode/NumberofProvinces.java b/Coding Questions/Leetcode/NumberofProvinces.java similarity index 100% rename from Leetcode/NumberofProvinces.java rename to Coding Questions/Leetcode/NumberofProvinces.java diff --git a/Leetcode/OddEvenLinkedList.java b/Coding Questions/Leetcode/OddEvenLinkedList.java similarity index 100% rename from Leetcode/OddEvenLinkedList.java rename to Coding Questions/Leetcode/OddEvenLinkedList.java diff --git a/Leetcode/ParsingABooleanExpression.java b/Coding Questions/Leetcode/ParsingABooleanExpression.java similarity index 100% rename from Leetcode/ParsingABooleanExpression.java rename to Coding Questions/Leetcode/ParsingABooleanExpression.java diff --git a/Leetcode/PascalsTriangleII.java b/Coding Questions/Leetcode/PascalsTriangleII.java similarity index 100% rename from Leetcode/PascalsTriangleII.java rename to Coding Questions/Leetcode/PascalsTriangleII.java diff --git a/Leetcode/PivotIndex.java b/Coding Questions/Leetcode/PivotIndex.java similarity index 100% rename from Leetcode/PivotIndex.java rename to Coding Questions/Leetcode/PivotIndex.java diff --git a/Leetcode/PowerOf4.java b/Coding Questions/Leetcode/PowerOf4.java similarity index 100% rename from Leetcode/PowerOf4.java rename to Coding Questions/Leetcode/PowerOf4.java diff --git a/Leetcode/PowerOfThree.java b/Coding Questions/Leetcode/PowerOfThree.java similarity index 100% rename from Leetcode/PowerOfThree.java rename to Coding Questions/Leetcode/PowerOfThree.java diff --git a/Leetcode/PrimeSubtractionOperation.java b/Coding Questions/Leetcode/PrimeSubtractionOperation.java similarity index 100% rename from Leetcode/PrimeSubtractionOperation.java rename to Coding Questions/Leetcode/PrimeSubtractionOperation.java diff --git a/Leetcode/ProductArray b/Coding Questions/Leetcode/ProductArray similarity index 100% rename from Leetcode/ProductArray rename to Coding Questions/Leetcode/ProductArray diff --git a/Leetcode/RankTransform.java b/Coding Questions/Leetcode/RankTransform.java similarity index 100% rename from Leetcode/RankTransform.java rename to Coding Questions/Leetcode/RankTransform.java diff --git a/Leetcode/RansomeCode.java b/Coding Questions/Leetcode/RansomeCode.java similarity index 100% rename from Leetcode/RansomeCode.java rename to Coding Questions/Leetcode/RansomeCode.java diff --git a/Leetcode/RecentCounter.java b/Coding Questions/Leetcode/RecentCounter.java similarity index 100% rename from Leetcode/RecentCounter.java rename to Coding Questions/Leetcode/RecentCounter.java diff --git a/Leetcode/RegularExpression.java b/Coding Questions/Leetcode/RegularExpression.java similarity index 100% rename from Leetcode/RegularExpression.java rename to Coding Questions/Leetcode/RegularExpression.java diff --git a/Leetcode/RemovStars.java b/Coding Questions/Leetcode/RemovStars.java similarity index 100% rename from Leetcode/RemovStars.java rename to Coding Questions/Leetcode/RemovStars.java diff --git a/Leetcode/RemoveDuplicatesLinkedList.java b/Coding Questions/Leetcode/RemoveDuplicatesLinkedList.java similarity index 100% rename from Leetcode/RemoveDuplicatesLinkedList.java rename to Coding Questions/Leetcode/RemoveDuplicatesLinkedList.java diff --git a/Leetcode/RemoveNthNodeFromLinkedList.java b/Coding Questions/Leetcode/RemoveNthNodeFromLinkedList.java similarity index 100% rename from Leetcode/RemoveNthNodeFromLinkedList.java rename to Coding Questions/Leetcode/RemoveNthNodeFromLinkedList.java diff --git a/Leetcode/RemoveSubFoldersfromtheFilesystem.java b/Coding Questions/Leetcode/RemoveSubFoldersfromtheFilesystem.java similarity index 100% rename from Leetcode/RemoveSubFoldersfromtheFilesystem.java rename to Coding Questions/Leetcode/RemoveSubFoldersfromtheFilesystem.java diff --git a/Leetcode/ReverseAlphabets.java b/Coding Questions/Leetcode/ReverseAlphabets.java similarity index 100% rename from Leetcode/ReverseAlphabets.java rename to Coding Questions/Leetcode/ReverseAlphabets.java diff --git a/Leetcode/ReverseLinkedList.java b/Coding Questions/Leetcode/ReverseLinkedList.java similarity index 100% rename from Leetcode/ReverseLinkedList.java rename to Coding Questions/Leetcode/ReverseLinkedList.java diff --git a/Leetcode/ReverseString b/Coding Questions/Leetcode/ReverseString similarity index 100% rename from Leetcode/ReverseString rename to Coding Questions/Leetcode/ReverseString diff --git a/Leetcode/ReverseVowels b/Coding Questions/Leetcode/ReverseVowels similarity index 100% rename from Leetcode/ReverseVowels rename to Coding Questions/Leetcode/ReverseVowels diff --git a/Leetcode/RotateArray.java b/Coding Questions/Leetcode/RotateArray.java similarity index 100% rename from Leetcode/RotateArray.java rename to Coding Questions/Leetcode/RotateArray.java diff --git a/Leetcode/RotateString.java b/Coding Questions/Leetcode/RotateString.java similarity index 100% rename from Leetcode/RotateString.java rename to Coding Questions/Leetcode/RotateString.java diff --git a/Leetcode/SQL/managerEmployee.txt b/Coding Questions/Leetcode/SQL/managerEmployee.txt similarity index 100% rename from Leetcode/SQL/managerEmployee.txt rename to Coding Questions/Leetcode/SQL/managerEmployee.txt diff --git a/Leetcode/SearchInSortedArray.java b/Coding Questions/Leetcode/SearchInSortedArray.java similarity index 100% rename from Leetcode/SearchInSortedArray.java rename to Coding Questions/Leetcode/SearchInSortedArray.java diff --git a/Leetcode/SearchinaBinarySearchTree.java b/Coding Questions/Leetcode/SearchinaBinarySearchTree.java similarity index 100% rename from Leetcode/SearchinaBinarySearchTree.java rename to Coding Questions/Leetcode/SearchinaBinarySearchTree.java diff --git a/Leetcode/SeparateBlackandWhiteBalls.java b/Coding Questions/Leetcode/SeparateBlackandWhiteBalls.java similarity index 100% rename from Leetcode/SeparateBlackandWhiteBalls.java rename to Coding Questions/Leetcode/SeparateBlackandWhiteBalls.java diff --git a/Leetcode/SequenceSubset b/Coding Questions/Leetcode/SequenceSubset similarity index 100% rename from Leetcode/SequenceSubset rename to Coding Questions/Leetcode/SequenceSubset diff --git a/Leetcode/SmallestOccupiedChar.java b/Coding Questions/Leetcode/SmallestOccupiedChar.java similarity index 100% rename from Leetcode/SmallestOccupiedChar.java rename to Coding Questions/Leetcode/SmallestOccupiedChar.java diff --git a/Leetcode/SmallestRangeCoveringElementsfromKLists.java b/Coding Questions/Leetcode/SmallestRangeCoveringElementsfromKLists.java similarity index 100% rename from Leetcode/SmallestRangeCoveringElementsfromKLists.java rename to Coding Questions/Leetcode/SmallestRangeCoveringElementsfromKLists.java diff --git a/Leetcode/SplitaStringIntotheMaxNumberofUniqueSubstrings.java b/Coding Questions/Leetcode/SplitaStringIntotheMaxNumberofUniqueSubstrings.java similarity index 100% rename from Leetcode/SplitaStringIntotheMaxNumberofUniqueSubstrings.java rename to Coding Questions/Leetcode/SplitaStringIntotheMaxNumberofUniqueSubstrings.java diff --git a/Leetcode/StringClose.java b/Coding Questions/Leetcode/StringClose.java similarity index 100% rename from Leetcode/StringClose.java rename to Coding Questions/Leetcode/StringClose.java diff --git a/Leetcode/StringGCD b/Coding Questions/Leetcode/StringGCD similarity index 100% rename from Leetcode/StringGCD rename to Coding Questions/Leetcode/StringGCD diff --git a/Leetcode/StringtoInt.java b/Coding Questions/Leetcode/StringtoInt.java similarity index 100% rename from Leetcode/StringtoInt.java rename to Coding Questions/Leetcode/StringtoInt.java diff --git a/Leetcode/SubtractProdandSum.java b/Coding Questions/Leetcode/SubtractProdandSum.java similarity index 100% rename from Leetcode/SubtractProdandSum.java rename to Coding Questions/Leetcode/SubtractProdandSum.java diff --git a/Leetcode/SumOfThree.java b/Coding Questions/Leetcode/SumOfThree.java similarity index 100% rename from Leetcode/SumOfThree.java rename to Coding Questions/Leetcode/SumOfThree.java diff --git a/Leetcode/SumThree.java b/Coding Questions/Leetcode/SumThree.java similarity index 100% rename from Leetcode/SumThree.java rename to Coding Questions/Leetcode/SumThree.java diff --git a/Leetcode/TappingRainWater.java b/Coding Questions/Leetcode/TappingRainWater.java similarity index 100% rename from Leetcode/TappingRainWater.java rename to Coding Questions/Leetcode/TappingRainWater.java diff --git a/Leetcode/ValidParanthesis.java b/Coding Questions/Leetcode/ValidParanthesis.java similarity index 100% rename from Leetcode/ValidParanthesis.java rename to Coding Questions/Leetcode/ValidParanthesis.java diff --git a/Leetcode/ValidParenthesis.java b/Coding Questions/Leetcode/ValidParenthesis.java similarity index 100% rename from Leetcode/ValidParenthesis.java rename to Coding Questions/Leetcode/ValidParenthesis.java diff --git a/Leetcode/WaterContainer b/Coding Questions/Leetcode/WaterContainer similarity index 100% rename from Leetcode/WaterContainer rename to Coding Questions/Leetcode/WaterContainer diff --git a/Leetcode/WordSubset.java b/Coding Questions/Leetcode/WordSubset.java similarity index 100% rename from Leetcode/WordSubset.java rename to Coding Questions/Leetcode/WordSubset.java diff --git a/Leetcode/XofaKindinaDeckofCards.java b/Coding Questions/Leetcode/XofaKindinaDeckofCards.java similarity index 100% rename from Leetcode/XofaKindinaDeckofCards.java rename to Coding Questions/Leetcode/XofaKindinaDeckofCards.java diff --git a/Leetcode/addone.java b/Coding Questions/Leetcode/addone.java similarity index 100% rename from Leetcode/addone.java rename to Coding Questions/Leetcode/addone.java diff --git a/Leetcode/findandreplace.java b/Coding Questions/Leetcode/findandreplace.java similarity index 100% rename from Leetcode/findandreplace.java rename to Coding Questions/Leetcode/findandreplace.java diff --git a/Leetcode/lastcommonprefix.java b/Coding Questions/Leetcode/lastcommonprefix.java similarity index 100% rename from Leetcode/lastcommonprefix.java rename to Coding Questions/Leetcode/lastcommonprefix.java diff --git a/Leetcode/logestPalindromicSubstring.java b/Coding Questions/Leetcode/logestPalindromicSubstring.java similarity index 100% rename from Leetcode/logestPalindromicSubstring.java rename to Coding Questions/Leetcode/logestPalindromicSubstring.java diff --git a/Leetcode/longestsubarray.java b/Coding Questions/Leetcode/longestsubarray.java similarity index 100% rename from Leetcode/longestsubarray.java rename to Coding Questions/Leetcode/longestsubarray.java diff --git a/Leetcode/reflectionmirror.java b/Coding Questions/Leetcode/reflectionmirror.java similarity index 100% rename from Leetcode/reflectionmirror.java rename to Coding Questions/Leetcode/reflectionmirror.java diff --git a/Leetcode/removeDuplicates.java b/Coding Questions/Leetcode/removeDuplicates.java similarity index 100% rename from Leetcode/removeDuplicates.java rename to Coding Questions/Leetcode/removeDuplicates.java diff --git a/Leetcode/removeelemnt.java b/Coding Questions/Leetcode/removeelemnt.java similarity index 100% rename from Leetcode/removeelemnt.java rename to Coding Questions/Leetcode/removeelemnt.java diff --git a/Leetcode/romantoint.java b/Coding Questions/Leetcode/romantoint.java similarity index 100% rename from Leetcode/romantoint.java rename to Coding Questions/Leetcode/romantoint.java diff --git a/Leetcode/setmatrixzeros.java b/Coding Questions/Leetcode/setmatrixzeros.java similarity index 100% rename from Leetcode/setmatrixzeros.java rename to Coding Questions/Leetcode/setmatrixzeros.java diff --git a/Leetcode/uniqueOcurances.java b/Coding Questions/Leetcode/uniqueOcurances.java similarity index 100% rename from Leetcode/uniqueOcurances.java rename to Coding Questions/Leetcode/uniqueOcurances.java diff --git a/Leetcode/zigzag.java b/Coding Questions/Leetcode/zigzag.java similarity index 100% rename from Leetcode/zigzag.java rename to Coding Questions/Leetcode/zigzag.java diff --git a/Recursion/BinarySum.java b/Coding Questions/Recursion/BinarySum.java similarity index 100% rename from Recursion/BinarySum.java rename to Coding Questions/Recursion/BinarySum.java diff --git a/Recursion/FindSqrt.java b/Coding Questions/Recursion/FindSqrt.java similarity index 100% rename from Recursion/FindSqrt.java rename to Coding Questions/Recursion/FindSqrt.java diff --git a/Recursion/Main.java b/Coding Questions/Recursion/Main.java similarity index 100% rename from Recursion/Main.java rename to Coding Questions/Recursion/Main.java diff --git a/Recursion/decimaltobinary.java b/Coding Questions/Recursion/decimaltobinary.java similarity index 100% rename from Recursion/decimaltobinary.java rename to Coding Questions/Recursion/decimaltobinary.java diff --git a/Recursion/factorial.java b/Coding Questions/Recursion/factorial.java similarity index 100% rename from Recursion/factorial.java rename to Coding Questions/Recursion/factorial.java diff --git a/Recursion/fibonacci.java b/Coding Questions/Recursion/fibonacci.java similarity index 100% rename from Recursion/fibonacci.java rename to Coding Questions/Recursion/fibonacci.java diff --git a/Recursion/gcd.java b/Coding Questions/Recursion/gcd.java similarity index 100% rename from Recursion/gcd.java rename to Coding Questions/Recursion/gcd.java diff --git a/Recursion/power.java b/Coding Questions/Recursion/power.java similarity index 100% rename from Recursion/power.java rename to Coding Questions/Recursion/power.java diff --git a/Recursion/sumdigit.java b/Coding Questions/Recursion/sumdigit.java similarity index 100% rename from Recursion/sumdigit.java rename to Coding Questions/Recursion/sumdigit.java diff --git a/codingNinjas/Fourdivisors.java b/Coding Questions/codingNinjas/Fourdivisors.java similarity index 100% rename from codingNinjas/Fourdivisors.java rename to Coding Questions/codingNinjas/Fourdivisors.java diff --git a/codingNinjas/MinimumDifferenceArray.java b/Coding Questions/codingNinjas/MinimumDifferenceArray.java similarity index 100% rename from codingNinjas/MinimumDifferenceArray.java rename to Coding Questions/codingNinjas/MinimumDifferenceArray.java diff --git a/codingNinjas/PairSum.java b/Coding Questions/codingNinjas/PairSum.java similarity index 100% rename from codingNinjas/PairSum.java rename to Coding Questions/codingNinjas/PairSum.java diff --git a/Binary tree/binarytree.java b/Data Structures/Binary tree/binarytree.java similarity index 100% rename from Binary tree/binarytree.java rename to Data Structures/Binary tree/binarytree.java diff --git a/Binary tree/binarytree.txt b/Data Structures/Binary tree/binarytree.txt similarity index 100% rename from Binary tree/binarytree.txt rename to Data Structures/Binary tree/binarytree.txt diff --git a/SinglyLinkedList/CircularSinglyLinkedList.java b/Data Structures/SinglyLinkedList/CircularSinglyLinkedList.java similarity index 100% rename from SinglyLinkedList/CircularSinglyLinkedList.java rename to Data Structures/SinglyLinkedList/CircularSinglyLinkedList.java diff --git a/SinglyLinkedList/CircularSinglyLinkedListTest.java b/Data Structures/SinglyLinkedList/CircularSinglyLinkedListTest.java similarity index 100% rename from SinglyLinkedList/CircularSinglyLinkedListTest.java rename to Data Structures/SinglyLinkedList/CircularSinglyLinkedListTest.java diff --git a/SinglyLinkedList/Node.java b/Data Structures/SinglyLinkedList/Node.java similarity index 100% rename from SinglyLinkedList/Node.java rename to Data Structures/SinglyLinkedList/Node.java diff --git a/SinglyLinkedList/SinglyLinkedList.java b/Data Structures/SinglyLinkedList/SinglyLinkedList.java similarity index 100% rename from SinglyLinkedList/SinglyLinkedList.java rename to Data Structures/SinglyLinkedList/SinglyLinkedList.java diff --git a/SinglyLinkedList/testsinglelinkedlist.java b/Data Structures/SinglyLinkedList/testsinglelinkedlist.java similarity index 100% rename from SinglyLinkedList/testsinglelinkedlist.java rename to Data Structures/SinglyLinkedList/testsinglelinkedlist.java diff --git a/arrayspackage/singledimensionarray.java b/Data Structures/arrayspackage/singledimensionarray.java similarity index 100% rename from arrayspackage/singledimensionarray.java rename to Data Structures/arrayspackage/singledimensionarray.java diff --git a/arrayspackage/singledimensionarraytest.java b/Data Structures/arrayspackage/singledimensionarraytest.java similarity index 100% rename from arrayspackage/singledimensionarraytest.java rename to Data Structures/arrayspackage/singledimensionarraytest.java diff --git a/arrayspackage/twodimenisonarray.class b/Data Structures/arrayspackage/twodimenisonarray.class similarity index 100% rename from arrayspackage/twodimenisonarray.class rename to Data Structures/arrayspackage/twodimenisonarray.class diff --git a/arrayspackage/twodimenisonarray.java b/Data Structures/arrayspackage/twodimenisonarray.java similarity index 100% rename from arrayspackage/twodimenisonarray.java rename to Data Structures/arrayspackage/twodimenisonarray.java diff --git a/arrayspackage/twodimensionalarray.java b/Data Structures/arrayspackage/twodimensionalarray.java similarity index 100% rename from arrayspackage/twodimensionalarray.java rename to Data Structures/arrayspackage/twodimensionalarray.java diff --git a/arrayspackage/twodimensionalarraytest.java b/Data Structures/arrayspackage/twodimensionalarraytest.java similarity index 100% rename from arrayspackage/twodimensionalarraytest.java rename to Data Structures/arrayspackage/twodimensionalarraytest.java diff --git a/doublyLinkedList/DLL_question.java b/Data Structures/doublyLinkedList/DLL_question.java similarity index 100% rename from doublyLinkedList/DLL_question.java rename to Data Structures/doublyLinkedList/DLL_question.java diff --git a/doublyLinkedList/doublyLinkedList.java b/Data Structures/doublyLinkedList/doublyLinkedList.java similarity index 100% rename from doublyLinkedList/doublyLinkedList.java rename to Data Structures/doublyLinkedList/doublyLinkedList.java diff --git a/doublyLinkedList/doublyLinkedList.txt b/Data Structures/doublyLinkedList/doublyLinkedList.txt similarity index 100% rename from doublyLinkedList/doublyLinkedList.txt rename to Data Structures/doublyLinkedList/doublyLinkedList.txt diff --git a/queue/queue.java b/Data Structures/queue/Queue.java similarity index 99% rename from queue/queue.java rename to Data Structures/queue/Queue.java index e1dbdc5..fad423a 100644 --- a/queue/queue.java +++ b/Data Structures/queue/Queue.java @@ -1,3 +1,6 @@ +package queue; + + // Queue class implemented using an array public class Queue { int[] queue; diff --git a/queue/queue.txt b/Data Structures/queue/queue.txt similarity index 100% rename from queue/queue.txt rename to Data Structures/queue/queue.txt diff --git a/queue/queue_question.java b/Data Structures/queue/queue_question.java similarity index 100% rename from queue/queue_question.java rename to Data Structures/queue/queue_question.java diff --git a/LeetcodeLeaf/SimilarTrees.java b/LeetcodeLeaf/SimilarTrees.java deleted file mode 100644 index 272c126..0000000 --- a/LeetcodeLeaf/SimilarTrees.java +++ /dev/null @@ -1,55 +0,0 @@ -/** -872. Leaf-Similar Trees -Solved -Easy -Topics -Companies -Consider all the leaves of a binary tree, from left to right order, the values of those leaves form a leaf value sequence. - -**/ -/** - * Definition for a binary tree node. - * public class TreeNode { - * int val; - * TreeNode left; - * TreeNode right; - * TreeNode() {} - * TreeNode(int val) { this.val = val; } - * TreeNode(int val, TreeNode left, TreeNode right) { - * this.val = val; - * this.left = left; - * this.right = right; - * } - * } - */ -class Solution { - - public boolean leafSimilar(TreeNode root1, TreeNode root2) { - - List a = new ArrayList<>(); - List b = new ArrayList<>(); - returnleaf(root1,a); returnleaf(root2,b); - - return a.equals(b); - - } - - public void returnleaf(TreeNode root,List a){ - - - if(root.left == null && root.right==null){ - a.add(root.val); - }else if(root.left==null){ - returnleaf(root.right,a); - }else if(root.right==null){ - returnleaf(root.left,a); - } - else{ - returnleaf(root.right,a); - returnleaf(root.left,a); - } - - - - } -} diff --git a/NLP/it_mlnlpmdj_02_enus_03.py b/NLP/it_mlnlpmdj_02_enus_03.py deleted file mode 100644 index 324334d..0000000 --- a/NLP/it_mlnlpmdj_02_enus_03.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -""" -Created on Mon Jul 15 14:27:32 2019 - -@author: Welcome -""" - - - -from nltk.corpus import wordnet -syns = wordnet.synsets("animal") -print(syns) - -from nltk.corpus import wordnet -synonyms = [] -antonyms = [] - -for syn in wordnet.synsets("active"): - for l in syn.lemmas(): - synonyms.append(l.name()) - if l.antonyms():antonyms.append(l.antonyms()[0].name()) - print(set(synonyms)) - print(set(antonyms)) \ No newline at end of file diff --git a/NLP/mlnlpmdj_02_02.py b/NLP/mlnlpmdj_02_02.py deleted file mode 100644 index da2a63b..0000000 --- a/NLP/mlnlpmdj_02_02.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -""" -Created on Mon Jul 15 01:15:16 2019 - -@author: Welcome -""" -import nltk -from nltk.stem import SnowballStemmer -snowball = SnowballStemmer(language='english') -print(snowball.stem("cats")) -print(snowball.stem("run")) -print(snowball.stem("running")) -print(snowball.stem("runs")) - - -from nltk.stem import WordNetLemmatizer -nltk.download('wordnet') -lemmatizer = WordNetLemmatizer() -print("--------------------lemmentized words-------") -print(lemmatizer.lemmatize("mice")) - -print(lemmatizer.lemmatize("worst", pos="a")) -print(lemmatizer.lemmatize("best", pos="a")) -print(lemmatizer.lemmatize("jumping",pos="v")) -print(lemmatizer.lemmatize("run",'v')) - - - diff --git a/arrayproject/averagetemp.class b/arrayproject/averagetemp.class deleted file mode 100644 index ca7f44453ce73265e855709b8e76bd3a85dc39f0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1373 zcmaJ=U2hXd6g}gQ9mh3<#MuzQz|scd0EzpBX=?~ArU;|(AsMwoJhT&MNS3U3t=(~2 zzw{~n4}GpG^|?HNM63RQ{)_&B_C2bgXS|l;G*S0q=kC4do_p_^yMMfX^*ey8xK%_6 za}p;ea1y7A$e?1a(*>L<;w(JtIak2j(?nm8Sdgd+IM@8pH!A|!>f#pyxn{Jk1twSh zP~Y!&*L3_ytp)Vty2=j)W~)zDpQ&wC3sksKYn#{)HySqaNZY8+);-l5;w2U(E(#Re zQ9thJ+rFhZrnYsgHnh>*-m)br;RucjObrS9#t&-kjtWB^OI#}9GL|f0xr7?t6*ze( z`o`<3aNyligT%8WWHbF(-;j8(g!l152_NE$z{2OD(XnSX^$?{}lovgvOPQ2oogD1w zW)zvk#Hx2so6TrFnRHMu;A#mU;bVb06~}7Oi=$_{V`^jFGjmUb2WvJgP(DN%fy|TE zK6HDKuyy*anr^D4AJtl6uWu-)R^0{*R}T$XowHG&we}Jp@&@)2%fq(FH|7?QJqrqK z!4dI)Z%>B$Thj{3%r$5g@d?<)Jcahe!al7%Kk?LBw5`3790JF?YD+hxu%pbEzS*Re z7!?}I>sDKf2e(Dyn$`DH7T6Qf54WQ&JzA)g?6&HdC>}`M^o<+)ZofTHd_s*~*ZYO=`{{=_TSAhTk diff --git a/hello.java b/hello.java deleted file mode 100644 index bf5e892..0000000 --- a/hello.java +++ /dev/null @@ -1,6 +0,0 @@ -public class hello -{ - public static void main(String[] args) { - System.out.println("Hello World"); - } -}