├── .gitattributes ├── .gitignore ├── README.md ├── SUMMARY.md ├── docs ├── 勘误.md ├── 第1章-面试的流程 │ ├── image │ │ ├── 1531282268186.png │ │ ├── 1531282338855.png │ │ ├── 1531283017683.png │ │ ├── 1531283030294.png │ │ ├── 1531283441633.png │ │ ├── 1531283754971.png │ │ ├── 1531283762514.png │ │ ├── 1531283771696.png │ │ ├── 1531283780805.png │ │ ├── 1531284333070.png │ │ ├── 1531284341207.png │ │ ├── 1531284347963.png │ │ └── 1531284644076.png │ └── 第1章-面试的流程.md ├── 第2章-面试需要的基础知识 │ └── 第2章-面试需要的基础知识.md ├── 第3章-高质量的代码 │ └── 第3章-高质量的代码.md ├── 第4章-解决面试题的思路 │ └── 第4章-解决面试题的思路.md ├── 第5章-优化时间和空间效率 │ └── 第5章-优化时间和空间效率.md ├── 第6章-面试中的各项能力 │ └── 第6章-面试中的各项能力.md └── 第7章-两个面试案例 │ └── 第7章-两个面试案例.md ├── image ├── 1531275617069.png └── 1531276924667.png └── src ├── 01_AssignmentOperator ├── 01_AssignmentOperator.vcxproj ├── 01_AssignmentOperator.vcxproj.filters └── AssignmentOperator.cpp ├── 02_Singleton ├── 02_Singleton.csproj ├── App.config ├── Program.cs └── Properties │ └── AssemblyInfo.cs ├── 03_01_DuplicationInArray ├── 03_01_DuplicationInArray.vcxproj ├── 03_01_DuplicationInArray.vcxproj.filters └── FindDuplication.cpp ├── 03_02_DuplicationInArrayNoEdit ├── 03_02_DuplicationInArrayNoEdit.vcxproj ├── 03_02_DuplicationInArrayNoEdit.vcxproj.filters └── FindDuplicationNoEdit.cpp ├── 04_FindInPartiallySortedMatrix ├── 04_FindInPartiallySortedMatrix.vcxproj ├── 04_FindInPartiallySortedMatrix.vcxproj.filters └── FindInPartiallySortedMatrix.cpp ├── 05_ReplaceSpaces ├── 05_ReplaceSpaces.vcxproj ├── 05_ReplaceSpaces.vcxproj.filters └── ReplaceSpaces.cpp ├── 06_PrintListInReversedOrder ├── 06_PrintListInReversedOrder.vcxproj ├── 06_PrintListInReversedOrder.vcxproj.filters └── PrintListInReversedOrder.cpp ├── 07_ConstructBinaryTree ├── 07_ConstructBinaryTree.vcxproj ├── 07_ConstructBinaryTree.vcxproj.filters └── ConstructBinaryTree.cpp ├── 08_NextNodeInBinaryTrees ├── 08_NextNodeInBinaryTrees.vcxproj ├── 08_NextNodeInBinaryTrees.vcxproj.filters └── NextNodeInBinaryTrees.cpp ├── 09_QueueWithTwoStacks ├── 09_QueueWithTwoStacks.vcxproj ├── 09_QueueWithTwoStacks.vcxproj.filters ├── Queue.h └── QueueWithTwoStacks.cpp ├── 10_Fibonacci ├── 10_Fibonacci.vcxproj ├── 10_Fibonacci.vcxproj.filters └── Fibonacci.cpp ├── 11_MinNumberInRotatedArray ├── 11_MinNumberInRotatedArray.vcxproj ├── 11_MinNumberInRotatedArray.vcxproj.filters └── MinNumberInRotatedArray.cpp ├── 12_StringPathInMatrix ├── 12_StringPathInMatrix.vcxproj ├── 12_StringPathInMatrix.vcxproj.filters └── StringPathInMatrix.cpp ├── 13_RobotMove ├── 13_RobotMove.vcxproj ├── 13_RobotMove.vcxproj.filters └── RobotMove.cpp ├── 14_CuttingRope ├── 14_CuttingRope.vcxproj ├── 14_CuttingRope.vcxproj.filters └── CuttingRope.cpp ├── 15_NumberOf1InBinary ├── 15_NumberOf1InBinary.vcxproj ├── 15_NumberOf1InBinary.vcxproj.filters └── NumberOf1InBinary.cpp ├── 16_Power ├── 16_Power.vcxproj ├── 16_Power.vcxproj.filters └── Power.cpp ├── 17_Print1ToMaxOfNDigits ├── 17_Print1ToMaxOfNDigits.vcxproj ├── 17_Print1ToMaxOfNDigits.vcxproj.filters └── Print1ToMaxOfNDigits.cpp ├── 18_01_DeleteNodeInList ├── 18_01_DeleteNodeInList.vcxproj ├── 18_01_DeleteNodeInList.vcxproj.filters └── DeleteNodeInList.cpp ├── 18_02_DeleteDuplicatedNode ├── 18_02_DeleteDuplicatedNode.vcxproj ├── 18_02_DeleteDuplicatedNode.vcxproj.filters └── DeleteDuplicatedNode.cpp ├── 19_RegularExpressionsMatching ├── 19_RegularExpressionsMatching.vcxproj ├── 19_RegularExpressionsMatching.vcxproj.filters └── RegularExpressions.cpp ├── 20_NumericStrings ├── 20_NumericStrings.vcxproj ├── 20_NumericStrings.vcxproj.filters └── NumericStrings.cpp ├── 21_ReorderArray ├── 21_ReorderArray.vcxproj ├── 21_ReorderArray.vcxproj.filters └── ReorderArray.cpp ├── 22_KthNodeFromEnd ├── 22_KthNodeFromEnd.vcxproj ├── 22_KthNodeFromEnd.vcxproj.filters └── KthNodeFromEnd.cpp ├── 23_EntryNodeInListLoop ├── 23_EntryNodeInListLoop.vcxproj ├── 23_EntryNodeInListLoop.vcxproj.filters └── EntryNodeInListLoop.cpp ├── 24_ReverseList ├── 24_ReverseList.vcxproj ├── 24_ReverseList.vcxproj.filters └── ReverseList.cpp ├── 25_MergeSortedLists ├── 25_MergeSortedLists.vcxproj ├── 25_MergeSortedLists.vcxproj.filters └── MergeSortedLists.cpp ├── 26_SubstructureInTree ├── 26_SubstructureInTree.vcxproj ├── 26_SubstructureInTree.vcxproj.filters └── SubstructureInTree.cpp ├── 27_MirrorOfBinaryTree ├── 27_MirrorOfBinaryTree.vcxproj ├── 27_MirrorOfBinaryTree.vcxproj.filters └── MirrorOfBinaryTree.cpp ├── 28_SymmetricalBinaryTree ├── 28_SymmetricalBinaryTree.vcxproj ├── 28_SymmetricalBinaryTree.vcxproj.filters └── SymmetricalBinaryTree.cpp ├── 29_PrintMatrix ├── 29_PrintMatrix.vcxproj ├── 29_PrintMatrix.vcxproj.filters └── PrintMatrix.cpp ├── 30_MinInStack ├── 30_MinInStack.vcxproj ├── 30_MinInStack.vcxproj.filters ├── MinInStack.cpp └── StackWithMin.h ├── 31_StackPushPopOrder ├── 31_StackPushPopOrder.vcxproj ├── 31_StackPushPopOrder.vcxproj.filters └── StackPushPopOrder.cpp ├── 32_01_PrintTreeFromTopToBottom ├── 32_01_PrintTreeFromTopToBottom.vcxproj ├── 32_01_PrintTreeFromTopToBottom.vcxproj.filters └── PrintTreeFromTopToBottom.cpp ├── 32_02_PrintTreesInLines ├── 32_02_PrintTreesInLines.vcxproj ├── 32_02_PrintTreesInLines.vcxproj.filters └── PrintTreesInLines.cpp ├── 32_03_PrintTreesInZigzag ├── 32_03_PrintTreesInZigzag.vcxproj ├── 32_03_PrintTreesInZigzag.vcxproj.filters └── PrintTreesInZigzag.cpp ├── 33_SquenceOfBST ├── 33_SquenceOfBST.vcxproj ├── 33_SquenceOfBST.vcxproj.filters └── SquenceOfBST.cpp ├── 34_PathInTree ├── 34_PathInTree.vcxproj ├── 34_PathInTree.vcxproj.filters └── PathInTree.cpp ├── 35_CopyComplexList ├── 35_CopyComplexList.vcxproj ├── 35_CopyComplexList.vcxproj.filters ├── ComplexList.cpp ├── ComplexList.h └── CopyComplexList.cpp ├── 36_ConvertBinarySearchTree ├── 36_ConvertBinarySearchTree.vcxproj ├── 36_ConvertBinarySearchTree.vcxproj.filters └── ConvertBinarySearchTree.cpp ├── 37_SerializeBinaryTrees ├── 37_SerializeBinaryTrees.vcxproj ├── 37_SerializeBinaryTrees.vcxproj.filters ├── SerializeBinaryTrees.cpp └── test.txt ├── 38_StringPermutation ├── 38_StringPermutation.vcxproj ├── 38_StringPermutation.vcxproj.filters └── StringPermutation.cpp ├── 39_MoreThanHalfNumber ├── 39_MoreThanHalfNumber.vcxproj ├── 39_MoreThanHalfNumber.vcxproj.filters └── MoreThanHalfNumber.cpp ├── 40_KLeastNumbers ├── 40_KLeastNumbers.vcxproj ├── 40_KLeastNumbers.vcxproj.filters └── KLeastNumbers.cpp ├── 41_StreamMedian ├── 41_StreamMedian.vcxproj ├── 41_StreamMedian.vcxproj.filters └── StreamMedian.cpp ├── 42_GreatestSumOfSubarrays ├── 42_GreatestSumOfSubarrays.vcxproj ├── 42_GreatestSumOfSubarrays.vcxproj.filters └── GreatestSumOfSubarrays.cpp ├── 43_NumberOf1 ├── 43_NumberOf1.vcxproj ├── 43_NumberOf1.vcxproj.filters └── NumberOf1.cpp ├── 44_DigitsInSequence ├── 44_DigitsInSequence.vcxproj ├── 44_DigitsInSequence.vcxproj.filters └── DigitsInSequence.cpp ├── 45_SortArrayForMinNumber ├── 45_SortArrayForMinNumber.vcxproj ├── 45_SortArrayForMinNumber.vcxproj.filters └── SortArrayForMinNumber.cpp ├── 46_TranslateNumbersToStrings ├── 46_TranslateNumbersToStrings.vcxproj ├── 46_TranslateNumbersToStrings.vcxproj.filters └── TranslateNumbersToStrings.cpp ├── 47_MaxValueOfGifts ├── 47_MaxValueOfGifts.vcxproj ├── 47_MaxValueOfGifts.vcxproj.filters └── MaxValueOfGifts.cpp ├── 48_LongestSubstringWithoutDup ├── 48_LongestSubstringWithoutDup.vcxproj ├── 48_LongestSubstringWithoutDup.vcxproj.filters └── LongestSubstringWithoutDup.cpp ├── 49_UglyNumber ├── 49_UglyNumber.vcxproj ├── 49_UglyNumber.vcxproj.filters └── UglyNumber.cpp ├── 50_01_FirstNotRepeatingChar ├── 50_01_FirstNotRepeatingChar.vcxproj ├── 50_01_FirstNotRepeatingChar.vcxproj.filters └── FirstNotRepeatingChar.cpp ├── 50_02_FirstCharacterInStream ├── 50_02_FirstCharacterInStream.vcxproj ├── 50_02_FirstCharacterInStream.vcxproj.filters └── FirstCharacterInStream.cpp ├── 51_InversePairs ├── 51_InversePairs.vcxproj ├── 51_InversePairs.vcxproj.filters └── InversePairs.cpp ├── 52_FirstCommonNodesInLists ├── 52_FirstCommonNodesInLists.vcxproj ├── 52_FirstCommonNodesInLists.vcxproj.filters └── FirstCommonNodesInLists.cpp ├── 53_01_NumberOfK ├── 53_01_NumberOfK.vcxproj ├── 53_01_NumberOfK.vcxproj.filters └── NumberOfK.cpp ├── 53_02_MissingNumber ├── 53_02_MissingNumber.vcxproj ├── 53_02_MissingNumber.vcxproj.filters └── MissingNumber.cpp ├── 53_03_IntegerIdenticalToIndex ├── 53_03_IntegerIdenticalToIndex.vcxproj ├── 53_03_IntegerIdenticalToIndex.vcxproj.filters └── IntegerIdenticalToIndex.cpp ├── 54_KthNodeInBST ├── 54_KthNodeInBST.vcxproj ├── 54_KthNodeInBST.vcxproj.filters └── KthNodeInBST.cpp ├── 55_01_TreeDepth ├── 55_01_TreeDepth.vcxproj ├── 55_01_TreeDepth.vcxproj.filters └── TreeDepth.cpp ├── 55_02_BalancedBinaryTree ├── 55_02_BalancedBinaryTree.vcxproj ├── 55_02_BalancedBinaryTree.vcxproj.filters └── BalancedBinaryTree.cpp ├── 56_01_NumbersAppearOnce ├── 56_01_NumbersAppearOnce.vcxproj ├── 56_01_NumbersAppearOnce.vcxproj.filters └── NumbersAppearOnce.cpp ├── 56_02_NumberAppearingOnce ├── 56_02_NumberAppearingOnce.vcxproj ├── 56_02_NumberAppearingOnce.vcxproj.filters └── NumberAppearingOnce.cpp ├── 57_01_TwoNumbersWithSum ├── 57_01_TwoNumbersWithSum.vcxproj ├── 57_01_TwoNumbersWithSum.vcxproj.filters └── TwoNumbersWithSum.cpp ├── 57_02_ContinuousSquenceWithSum ├── 57_02_ContinuousSquenceWithSum.vcxproj ├── 57_02_ContinuousSquenceWithSum.vcxproj.filters └── ContinuousSquenceWithSum.cpp ├── 58_01_ReverseWordsInSentence ├── 58_01_ReverseWordsInSentence.vcxproj ├── 58_01_ReverseWordsInSentence.vcxproj.filters └── ReverseWordsInSentence.cpp ├── 58_02_LeftRotateString ├── 58_02_LeftRotateString.vcxproj ├── 58_02_LeftRotateString.vcxproj.filters └── LeftRotateString.cpp ├── 59_01_MaxInSlidingWindow ├── 59_01_MaxInSlidingWindow.vcxproj ├── 59_01_MaxInSlidingWindow.vcxproj.filters └── MaxInSlidingWindow.cpp ├── 59_02_QueueWithMax ├── 59_02_QueueWithMax.vcxproj ├── 59_02_QueueWithMax.vcxproj.filters └── QueueWithMax.cpp ├── 60_DicesProbability ├── 60_DicesProbability.vcxproj ├── 60_DicesProbability.vcxproj.filters └── DicesProbability.cpp ├── 61_ContinousCards ├── 61_ContinousCards.vcxproj ├── 61_ContinousCards.vcxproj.filters └── ContinousCards.cpp ├── 62_LastNumberInCircle ├── 62_LastNumberInCircle.vcxproj ├── 62_LastNumberInCircle.vcxproj.filters └── LastNumberInCircle.cpp ├── 63_MaximalProfit ├── 63_MaximalProfit.vcxproj ├── 63_MaximalProfit.vcxproj.filters └── MaximalProfit.cpp ├── 64_Accumulate ├── 64_Accumulate.vcxproj ├── 64_Accumulate.vcxproj.filters └── Accumulate.cpp ├── 65_AddTwoNumbers ├── 65_AddTwoNumbers.vcxproj ├── 65_AddTwoNumbers.vcxproj.filters └── AddTwoNumbers.cpp ├── 66_ConstuctArray ├── 66_ConstuctArray.vcxproj ├── 66_ConstuctArray.vcxproj.filters └── ConstuctArray.cpp ├── 67_StringToInt ├── 67_StringToInt.vcxproj ├── 67_StringToInt.vcxproj.filters └── StringToInt.cpp ├── 68_CommonParentInTree ├── 68_CommonParentInTree.vcxproj ├── 68_CommonParentInTree.vcxproj.filters └── CommonParentInTree.cpp ├── CodingInterviewChinese2.sln ├── LICENSE.txt └── Utilities ├── Array.cpp ├── Array.h ├── BinaryTree.cpp ├── BinaryTree.h ├── List.cpp ├── List.h ├── StringUtil.cpp ├── StringUtil.h ├── Tree.cpp ├── Tree.h ├── Utilities.vcxproj └── Utilities.vcxproj.filters /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | [Xx]64/ 19 | [Xx]86/ 20 | [Bb]uild/ 21 | bld/ 22 | [Bb]in/ 23 | [Oo]bj/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | artifacts/ 46 | 47 | *_i.c 48 | *_p.c 49 | *_i.h 50 | *.ilk 51 | *.meta 52 | *.obj 53 | *.pch 54 | *.pdb 55 | *.pgc 56 | *.pgd 57 | *.rsp 58 | *.sbr 59 | *.tlb 60 | *.tli 61 | *.tlh 62 | *.tmp 63 | *.tmp_proj 64 | *.log 65 | *.vspscc 66 | *.vssscc 67 | .builds 68 | *.pidb 69 | *.svclog 70 | *.scc 71 | 72 | # Chutzpah Test files 73 | _Chutzpah* 74 | 75 | # Visual C++ cache files 76 | ipch/ 77 | *.aps 78 | *.ncb 79 | *.opendb 80 | *.opensdf 81 | *.sdf 82 | *.cachefile 83 | *.VC.db 84 | 85 | # Visual Studio profiler 86 | *.psess 87 | *.vsp 88 | *.vspx 89 | *.sap 90 | 91 | # TFS 2012 Local Workspace 92 | $tf/ 93 | 94 | # Guidance Automation Toolkit 95 | *.gpState 96 | 97 | # ReSharper is a .NET coding add-in 98 | _ReSharper*/ 99 | *.[Rr]e[Ss]harper 100 | *.DotSettings.user 101 | 102 | # JustCode is a .NET coding add-in 103 | .JustCode 104 | 105 | # TeamCity is a build add-in 106 | _TeamCity* 107 | 108 | # DotCover is a Code Coverage Tool 109 | *.dotCover 110 | 111 | # NCrunch 112 | _NCrunch_* 113 | .*crunch*.local.xml 114 | nCrunchTemp_* 115 | 116 | # MightyMoose 117 | *.mm.* 118 | AutoTest.Net/ 119 | 120 | # Web workbench (sass) 121 | .sass-cache/ 122 | 123 | # Installshield output folder 124 | [Ee]xpress/ 125 | 126 | # DocProject is a documentation generator add-in 127 | DocProject/buildhelp/ 128 | DocProject/Help/*.HxT 129 | DocProject/Help/*.HxC 130 | DocProject/Help/*.hhc 131 | DocProject/Help/*.hhk 132 | DocProject/Help/*.hhp 133 | DocProject/Help/Html2 134 | DocProject/Help/html 135 | 136 | # Click-Once directory 137 | publish/ 138 | 139 | # Publish Web Output 140 | *.[Pp]ublish.xml 141 | *.azurePubxml 142 | 143 | # TODO: Un-comment the next line if you do not want to checkin 144 | # your web deploy settings because they may include unencrypted 145 | # passwords 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # NuGet Packages 150 | *.nupkg 151 | # The packages folder can be ignored because of Package Restore 152 | **/packages/* 153 | # except build/, which is used as an MSBuild target. 154 | !**/packages/build/ 155 | # Uncomment if necessary however generally it will be regenerated when needed 156 | #!**/packages/repositories.config 157 | # NuGet v3's project.json files produces more ignoreable files 158 | *.nuget.props 159 | *.nuget.targets 160 | 161 | # Microsoft Azure Build Output 162 | csx/ 163 | *.build.csdef 164 | 165 | # Microsoft Azure Emulator 166 | ecf/ 167 | rcf/ 168 | 169 | # Microsoft Azure ApplicationInsights config file 170 | ApplicationInsights.config 171 | 172 | # Windows Store app package directory 173 | AppPackages/ 174 | BundleArtifacts/ 175 | 176 | # Visual Studio cache files 177 | # files ending in .cache can be ignored 178 | *.[Cc]ache 179 | # but keep track of directories ending in .cache 180 | !*.[Cc]ache/ 181 | 182 | # Others 183 | ClientBin/ 184 | [Ss]tyle[Cc]op.* 185 | ~$* 186 | *~ 187 | *.dbmdl 188 | *.dbproj.schemaview 189 | *.pfx 190 | *.publishsettings 191 | node_modules/ 192 | orleans.codegen.cs 193 | 194 | # RIA/Silverlight projects 195 | Generated_Code/ 196 | 197 | # Backup & report files from converting an old project file 198 | # to a newer Visual Studio version. Backup files are not needed, 199 | # because we have git ;-) 200 | _UpgradeReport_Files/ 201 | Backup*/ 202 | UpgradeLog*.XML 203 | UpgradeLog*.htm 204 | 205 | # SQL Server files 206 | *.mdf 207 | *.ldf 208 | 209 | # Business Intelligence projects 210 | *.rdl.data 211 | *.bim.layout 212 | *.bim_*.settings 213 | 214 | # Microsoft Fakes 215 | FakesAssemblies/ 216 | 217 | # GhostDoc plugin setting file 218 | *.GhostDoc.xml 219 | 220 | # Node.js Tools for Visual Studio 221 | .ntvs_analysis.dat 222 | 223 | # Visual Studio 6 build log 224 | *.plg 225 | 226 | # Visual Studio 6 workspace options file 227 | *.opt 228 | 229 | # Visual Studio LightSwitch build output 230 | **/*.HTMLClient/GeneratedArtifacts 231 | **/*.DesktopClient/GeneratedArtifacts 232 | **/*.DesktopClient/ModelManifest.xml 233 | **/*.Server/GeneratedArtifacts 234 | **/*.Server/ModelManifest.xml 235 | _Pvt_Extensions 236 | 237 | # LightSwitch generated files 238 | GeneratedArtifacts/ 239 | ModelManifest.xml 240 | 241 | # Paket dependency manager 242 | .paket/paket.exe 243 | 244 | # FAKE - F# Make 245 | .fake/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 《剑指offer》第二版 2 | 3 | ![1531275617069.png](image/1531275617069.png) 4 | 5 | 6 | 该书剖析了**80个典型的编程面试题**,系统整理基础知识、代码质量、解题思路、优化效率和综合能力这5个面试要点。全书共分7章,主要包括面试的流程,讨论面试每一环节需要注意的问题;面试需要的基础知识,从编程语言、数据结构及算法三方面总结程序员面试知识点;高质量的代码,讨论影响代码质量的3个要素(**规范性、完整性和鲁棒性**),强调高质量代码除完成基本功能外,还能考虑特殊情况并对非法输入进行合理处理;解决面试题的思路,总结编程面试中解决难题的有效思考模式,如在面试中遇到复杂难题,应聘者可利用**画图、举例和分解**这3种方法将其化繁为简,先形成清晰思路,再动手编程;优化时间和空间效率,读者将**学会优化时间效率及用空间换时间的常用算法**,从而在面试中找到最优解;面试中的各项能力,总结应聘者如何充分表现学习和沟通能力,并通过具体面试题讨论如何培养知识迁移、抽象建模和发散思维能力;两个面试案例,总结哪些面试举动是不良行为,而哪些表现又是面试官所期待的行为。 7 | 8 | 该书作者 **何海涛(Harry He)**,思科高级软件工程师,之前先后任职于Autodesk和微软,对软件开发各项技术有高度热情。何海涛多年来从事软件开发工作,对软件设计、开发、调试等均有较深的功底,对C/C++/C#以及.NET等语言及平台都较为熟悉,对图形图像、CAD、设计模式、项目管理等领域均有涉猎。 9 | 10 | ![1531276924667.png](image/1531276924667.png) 11 | 12 | 13 | 14 | ## 本仓库内容 15 | 16 | 1. 《剑指offer》第二版源码 17 | 2. 各个章节学习笔记 18 | 19 | ``` 20 | Something I hope you know before go into the coding~ 21 | First, please watch or star this repo, I'll be more happy if you follow me. 22 | Bug report, questions and discussion are welcome, you can post an issue or pull a request. 23 | ``` 24 | 25 | ## 相关站点 26 | 27 | * 何海涛163博客: 28 | 29 | * 博文视点社区网站: 30 | 31 | * 本仓库GitHub地址: 32 | 33 | * 本仓库GibBook地址: 34 | 35 | 36 | ## 总结 37 | 38 | 1.基础永远值得花费90%的精力去学习加强。厚积而薄发~ 39 | -------------------------------------------------------------------------------- /SUMMARY.md: -------------------------------------------------------------------------------- 1 | # Summary 2 | 3 | * [codinginterview2](README.md) 4 | * [第1章-面试的流程](docs/第1章-面试的流程/第1章-面试的流程.md) 5 | * [第2章-面试需要的基础知识](docs/第2章-面试需要的基础知识/第2章-面试需要的基础知识.md) 6 | * [第3章-高质量的代码](docs/第3章-高质量的代码/第3章-高质量的代码.md) 7 | * [第4章-解决面试题的思路](docs/第4章-解决面试题的思路/第4章-解决面试题的思路.md) 8 | * [第5章-优化时间和空间效率](docs/第5章-优化时间和空间效率/第5章-优化时间和空间效率.md) 9 | * [第6章-面试中的各项能力](docs/第6章-面试中的各项能力/第6章-面试中的各项能力.md) 10 | * [第7章-两个面试案例](docs/第7章-两个面试案例/第7章-两个面试案例.md) 11 | * [勘误](docs/勘误.md) 12 | 13 | -------------------------------------------------------------------------------- /docs/勘误.md: -------------------------------------------------------------------------------- 1 | # 勘误 2 | 3 | 1. 页码:216 • 行数:10 • 印次: 1 • 修订印次: 3 “但这个数据小于最小堆里的一些数据时”种 “小于”应为“大于”。 4 | -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531282268186.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531282268186.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531282338855.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531282338855.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531283017683.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531283017683.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531283030294.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531283030294.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531283441633.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531283441633.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531283754971.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531283754971.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531283762514.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531283762514.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531283771696.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531283771696.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531283780805.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531283780805.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531284333070.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531284333070.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531284341207.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531284341207.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531284347963.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531284347963.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/image/1531284644076.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/docs/第1章-面试的流程/image/1531284644076.png -------------------------------------------------------------------------------- /docs/第1章-面试的流程/第1章-面试的流程.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | - [第1章-面试的流程](#第1章-面试的流程) 4 | - [面试套路](#面试套路) 5 | - [面试三种形式](#面试三种形式) 6 | - [电话面试](#电话面试) 7 | - [共享桌面远程面试](#共享桌面远程面试) 8 | - [现场面试](#现场面试) 9 | - [面试三个环节](#面试三个环节) 10 | - [行为面试](#行为面试) 11 | - [区分了解+熟悉+精通](#区分了解熟悉精通) 12 | - [技术面试](#技术面试) 13 | - [基本功](#基本功) 14 | - [应聘狗提问环节](#应聘狗提问环节) 15 | - [END](#end) 16 | 17 | 18 | 19 | # 第1章-面试的流程 20 | 21 | ## 面试套路 22 | 23 | * 简历扫选只是第一步,之后还有电话面试、共享桌面远程面试、现场面试 24 | * 初级程序员看算法和数据结构,高级程序员看项目经验 25 | * **不要不懂装懂,答非所问 - 大忌**,不确定面试官问题一定要问清,直到弄懂面试官的意图再作答。 26 | * 面试官需要写面试报告的哦,所以一般会在一定时间一刻,半小时时间,问你足够多的问题,如果你答的少就问得多,答得多就问的少,这很有可能哦~谁都不想自己被走过场似得问一堆问题然后不了了之,也不跟你说答得对不对,问的问题也没啥思路,这种多半很尴尬,凑时间问完拜拜~ 27 | 28 | ### 面试三种形式 29 | 30 | * 各公司都有一套面试流程,**当然简历扫选就被淘汰了后面没玩头,所以简历一定要特么的认真写~** 31 | * 然后再谈面试,简历--->面试。无简历不面试 32 | 33 | #### 电话面试 34 | 35 | * 投简历过后一两周内要时刻保持手机能够通话一两个小时,夜间凌晨什么的没有哪个智障公司会给你打电话,放心~ 36 | 37 | #### 共享桌面远程面试 38 | 39 | * 也不是很多公司有这个环节,其实就是要看你代码调试能力,编写代码速度。其实这多数在现场面试考核,可能没有条件现场面试就会酱紫 40 | 41 | 42 | 43 | #### 现场面试 44 | 45 | * 心态好,皮厚,妥妥的。就算不会也是一脸吊里吊气 46 | * IT屌丝男无需正装,干净舒服出场就行 47 | 48 | 49 | ### 面试三个环节 50 | 51 | #### 行为面试 52 | 53 | * 暖场过程,自我介绍,工作经历,学习经历 30S到1分钟。面试官手头有你的简历,基本废话少说 54 | * 目的:了解你性格,是否反人类,反社会。心态如何,别吓尿了 55 | * 行为面试还包括项目,当然,项目就是你过往的行为~,没毛病 56 | * 项目介绍按这个过程来,**大家都很忙,按套路出牌谁也不懵逼** 57 | 58 | ![1531282268186.png](image/1531282268186.png) 59 | 60 | ![1531283017683.png](image/1531283017683.png) 61 | 62 | ![1531283030294.png](image/1531283030294.png) 63 | 64 | * 这个套路再详细不过了。可能某些智障面试官会反套路?听多了面试者的套话估摸会酱紫 65 | * 项目扯完,面试官基本就这些问题 66 | 67 | ![1531283441633.png](image/1531283441633.png) 68 | 69 | * 项目可以瞎掰,没毛病,你牛逼到可以不用做项目就能把项目吃透,那也是种能力。PS:Big old,god bless you~ 70 | * 也可能你自己做的项目但是了解不够透彻,这时候被问懵逼也没什么,老实交代自己没尝试从哪方面去想什么的也可以 71 | * 项目介绍突出自己的工作,毕竟是你面试,面试就是把自己端出来求收留~ 72 | * 吊里吊气的叔叔阿姨,你们不适合面试,自己开公司去吧 73 | * 还记得研究生面试的时候,某某学生口气很吊,“鉴于我的优秀,愿意与你合作”。。这人咋不上天嘞? 74 | * 态度诚恳,必要装怂不可少。诚实守信八荣八耻记牢喽。 75 | 76 | ##### 区分了解+熟悉+精通 77 | 78 | ![1531283754971.png](image/1531283754971.png) 79 | 80 | ![1531283762514.png](image/1531283762514.png) 81 | 82 | ![1531283771696.png](image/1531283771696.png) 83 | 84 | ![1531283780805.png](image/1531283780805.png) 85 | 86 | * 装逼遭雷劈,从头劈到小鸡鸡~ 87 | * 量力而行,好自为之~ 88 | 89 | 90 | #### 技术面试 91 | 92 | ![1531282338855.png](image/1531282338855.png) 93 | 94 | * 技术面试占绝大部分时间,面试官会尽可能虐死你。这是重头戏环节~ 95 | * 关注5大素质: 96 | - 扎实的专业基础 97 | - 高质量代码编写 98 | - 分析问题思辨能力 99 | - 优化时间空间效率 100 | - 学习沟通能力 101 | * 面试之前要拼命复习or预习,掌握**编程语言、数据结构、算法**等基础知识 102 | * **鲁棒**是Robust的音译,也就是健壮和强壮的意思。它是在异常和危险情况下系统生存的关键。比如说,计算机软件在输入错误、磁盘故障、网络过载或有意攻击情况下,能否不死机、不崩溃,就是该软件的鲁棒性。所谓“鲁棒性”,是指控制系统在一定(结构,大小)的参数摄动下,维持其它某些性能的特性。根据对性能的不同定义,可分为稳定鲁棒性和性能鲁棒性。以闭环系统的鲁棒性作为目标设计得到的固定控制器称为鲁棒控制器。 103 | * 如果问题之间有关联,回答也尽可能关联起来答,根据之前特性,怎么滴怎么滴。这种学习方式叫啥来着,举一反三?类比? 104 | 105 | ##### 基本功 106 | 107 | ![1531284333070.png](image/1531284333070.png) 108 | 109 | ![1531284341207.png](image/1531284341207.png) 110 | 111 | ![1531284347963.png](image/1531284347963.png) 112 | 113 | * 如何鉴定代码鲁棒?面试官会用临界条件、特殊输入输出调戏你~其实代码的健壮性就是代码是否考虑到了足够多的问题,很多特殊状态没考虑就容易JJ 114 | * 面试官喜欢用简单问题调戏你哟,你特么的要是一听题目简单就嘚瑟,99.99%就唧唧复唧唧了~ 115 | 116 | ![1531284644076.png](image/1531284644076.png) 117 | 118 | * 面试官不能容忍的就是程序的鲁棒性。智障代码没有考虑周全,不知道判断参数正确性直接执行核心代码妥妥鸡鸡~ 119 | * C语言里面很神奇的goto语句,妥善用。但是不排除面试官菜鸡不会用一看goto让你鸡鸡也不是不可能。毕竟谁也不知道谁水平如何,万一你超神了嘞,虽然这是小概率事件。 120 | * 写完代码之后,不要急着给面试官看,你的脑子就是个运行环境,跑一跑。急锤子急,鉴于你太嘚瑟,下一道题让你懵逼。哦对,也可能没有下一题。 121 | * **软技能**,其实就是团队合作的能力,这年头一个大型软件绝不可能一个人搞定,多是很多大佬协作。 122 | * **丑数**,首先除2,直到不能整除为止,然后除5到不能整除为止,然后除3直到不能整除为止。最终判断剩余的数字是否为1,如果是1则为丑数,否则不是丑数。 123 | * 面试官可能对你的方向表示怀疑,你对这个行业有多了解基本可以判断。 124 | * 面试官会考察:软技能、学习能力、知识迁移能力、抽象建模能力、发散思维能力 125 | 126 | 127 | #### 应聘狗提问环节 128 | 129 | * 面试官让你提问,要考验你对该公司,该部门是否感兴趣~所以,也别瞎扯淡问。如果你都不感兴趣,还来干锤子~ 130 | * 去之前了解一下该公司,想想该问啥?至少准备一两个问题,如果,一个问题不问就走了,不怼一下不四男子汉~ 131 | * 不要问薪水 132 | * 不要立即问面试结果,因为问也白问,都是全都面完优胜劣汰 133 | 134 | ## END 135 | -------------------------------------------------------------------------------- /docs/第2章-面试需要的基础知识/第2章-面试需要的基础知识.md: -------------------------------------------------------------------------------- 1 | # 第2章-面试需要的基础知识 2 | 3 | -------------------------------------------------------------------------------- /docs/第3章-高质量的代码/第3章-高质量的代码.md: -------------------------------------------------------------------------------- 1 | # 第3章-高质量的代码 2 | 3 | -------------------------------------------------------------------------------- /docs/第4章-解决面试题的思路/第4章-解决面试题的思路.md: -------------------------------------------------------------------------------- 1 | # 第4章-解决面试题的思路 2 | 3 | -------------------------------------------------------------------------------- /docs/第5章-优化时间和空间效率/第5章-优化时间和空间效率.md: -------------------------------------------------------------------------------- 1 | # 第5章-优化时间和空间效率 2 | 3 | -------------------------------------------------------------------------------- /docs/第6章-面试中的各项能力/第6章-面试中的各项能力.md: -------------------------------------------------------------------------------- 1 | # 第6章-面试中的各项能力 2 | 3 | -------------------------------------------------------------------------------- /docs/第7章-两个面试案例/第7章-两个面试案例.md: -------------------------------------------------------------------------------- 1 | # 第7章-两个面试案例 2 | 3 | -------------------------------------------------------------------------------- /image/1531275617069.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/image/1531275617069.png -------------------------------------------------------------------------------- /image/1531276924667.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/image/1531276924667.png -------------------------------------------------------------------------------- /src/01_AssignmentOperator/01_AssignmentOperator.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/01_AssignmentOperator/AssignmentOperator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/01_AssignmentOperator/AssignmentOperator.cpp -------------------------------------------------------------------------------- /src/02_Singleton/02_Singleton.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {7CC5C371-1678-490B-88BB-2013C40A3520} 8 | Exe 9 | Properties 10 | _02_Singleton 11 | 02_Singleton 12 | v4.5.2 13 | 512 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 60 | -------------------------------------------------------------------------------- /src/02_Singleton/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/02_Singleton/Program.cs: -------------------------------------------------------------------------------- 1 | /******************************************************************* 2 | Copyright(c) 2016, Harry He 3 | All rights reserved. 4 | 5 | Distributed under the BSD license. 6 | (See accompanying file LICENSE.txt at 7 | https://github.com/zhedahht/CodingInterviewChinese2/blob/master/LICENSE.txt) 8 | *******************************************************************/ 9 | 10 | //================================================================== 11 | // 《剑指Offer——名企面试官精讲典型编程题》代码 12 | // 作者:何海涛 13 | //================================================================== 14 | 15 | // 面试题2:实现Singleton模式 16 | // 题目:设计一个类,我们只能生成该类的一个实例。 17 | 18 | using System; 19 | 20 | namespace _02_Singleton 21 | { 22 | public sealed class Singleton1 23 | { 24 | private Singleton1() 25 | { 26 | } 27 | 28 | private static Singleton1 instance = null; 29 | public static Singleton1 Instance 30 | { 31 | get 32 | { 33 | if (instance == null) 34 | instance = new Singleton1(); 35 | 36 | return instance; 37 | } 38 | } 39 | } 40 | 41 | public sealed class Singleton2 42 | { 43 | private Singleton2() 44 | { 45 | } 46 | 47 | private static readonly object syncObj = new object(); 48 | 49 | private static Singleton2 instance = null; 50 | public static Singleton2 Instance 51 | { 52 | get 53 | { 54 | lock (syncObj) 55 | { 56 | if (instance == null) 57 | instance = new Singleton2(); 58 | } 59 | 60 | return instance; 61 | } 62 | } 63 | } 64 | 65 | public sealed class Singleton3 66 | { 67 | private Singleton3() 68 | { 69 | } 70 | 71 | private static object syncObj = new object(); 72 | 73 | private static Singleton3 instance = null; 74 | public static Singleton3 Instance 75 | { 76 | get 77 | { 78 | if (instance == null) 79 | { 80 | lock (syncObj) 81 | { 82 | if (instance == null) 83 | instance = new Singleton3(); 84 | } 85 | } 86 | 87 | return instance; 88 | } 89 | } 90 | } 91 | 92 | public sealed class Singleton4 93 | { 94 | private Singleton4() 95 | { 96 | Console.WriteLine("An instance of Singleton4 is created."); 97 | } 98 | 99 | public static void Print() 100 | { 101 | Console.WriteLine("Singleton4 Print"); 102 | } 103 | 104 | private static Singleton4 instance = new Singleton4(); 105 | public static Singleton4 Instance 106 | { 107 | get 108 | { 109 | return instance; 110 | } 111 | } 112 | } 113 | 114 | public sealed class Singleton5 115 | { 116 | Singleton5() 117 | { 118 | Console.WriteLine("An instance of Singleton5 is created."); 119 | } 120 | 121 | public static void Print() 122 | { 123 | Console.WriteLine("Singleton5 Print"); 124 | } 125 | 126 | public static Singleton5 Instance 127 | { 128 | get 129 | { 130 | return Nested.instance; 131 | } 132 | } 133 | 134 | class Nested 135 | { 136 | static Nested() 137 | { 138 | } 139 | 140 | internal static readonly Singleton5 instance = new Singleton5(); 141 | } 142 | } 143 | 144 | class Program 145 | { 146 | static void Main(string[] args) 147 | { 148 | // 也会打印An instance of Singleton4 is created. 149 | Singleton4.Print(); 150 | 151 | // 不会打印An instance of Singleton5 is created. 152 | Singleton5.Print(); 153 | } 154 | } 155 | } 156 | -------------------------------------------------------------------------------- /src/02_Singleton/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("02_Singleton")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("02_Singleton")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("7cc5c371-1678-490b-88bb-2013c40a3520")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /src/03_01_DuplicationInArray/03_01_DuplicationInArray.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/03_01_DuplicationInArray/FindDuplication.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/03_01_DuplicationInArray/FindDuplication.cpp -------------------------------------------------------------------------------- /src/03_02_DuplicationInArrayNoEdit/03_02_DuplicationInArrayNoEdit.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/03_02_DuplicationInArrayNoEdit/FindDuplicationNoEdit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/03_02_DuplicationInArrayNoEdit/FindDuplicationNoEdit.cpp -------------------------------------------------------------------------------- /src/04_FindInPartiallySortedMatrix/04_FindInPartiallySortedMatrix.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/04_FindInPartiallySortedMatrix/FindInPartiallySortedMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/04_FindInPartiallySortedMatrix/FindInPartiallySortedMatrix.cpp -------------------------------------------------------------------------------- /src/05_ReplaceSpaces/05_ReplaceSpaces.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/05_ReplaceSpaces/ReplaceSpaces.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/05_ReplaceSpaces/ReplaceSpaces.cpp -------------------------------------------------------------------------------- /src/06_PrintListInReversedOrder/06_PrintListInReversedOrder.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/06_PrintListInReversedOrder/PrintListInReversedOrder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/06_PrintListInReversedOrder/PrintListInReversedOrder.cpp -------------------------------------------------------------------------------- /src/07_ConstructBinaryTree/07_ConstructBinaryTree.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/07_ConstructBinaryTree/ConstructBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/07_ConstructBinaryTree/ConstructBinaryTree.cpp -------------------------------------------------------------------------------- /src/08_NextNodeInBinaryTrees/08_NextNodeInBinaryTrees.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/08_NextNodeInBinaryTrees/NextNodeInBinaryTrees.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/08_NextNodeInBinaryTrees/NextNodeInBinaryTrees.cpp -------------------------------------------------------------------------------- /src/09_QueueWithTwoStacks/09_QueueWithTwoStacks.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Header Files 20 | 21 | 22 | 23 | 24 | Source Files 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/09_QueueWithTwoStacks/Queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/09_QueueWithTwoStacks/Queue.h -------------------------------------------------------------------------------- /src/09_QueueWithTwoStacks/QueueWithTwoStacks.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/09_QueueWithTwoStacks/QueueWithTwoStacks.cpp -------------------------------------------------------------------------------- /src/10_Fibonacci/10_Fibonacci.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {C168F24E-1E5B-4683-A6A0-28480961133F} 23 | Win32Proj 24 | My10_Fibonacci 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | 87 | 88 | Level3 89 | Disabled 90 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | Level3 102 | Disabled 103 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | 105 | 106 | Console 107 | true 108 | 109 | 110 | 111 | 112 | Level3 113 | 114 | 115 | MaxSpeed 116 | true 117 | true 118 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 119 | 120 | 121 | Console 122 | true 123 | true 124 | true 125 | 126 | 127 | 128 | 129 | Level3 130 | 131 | 132 | MaxSpeed 133 | true 134 | true 135 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 136 | 137 | 138 | Console 139 | true 140 | true 141 | true 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /src/10_Fibonacci/10_Fibonacci.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/10_Fibonacci/Fibonacci.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/10_Fibonacci/Fibonacci.cpp -------------------------------------------------------------------------------- /src/11_MinNumberInRotatedArray/11_MinNumberInRotatedArray.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/11_MinNumberInRotatedArray/MinNumberInRotatedArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/11_MinNumberInRotatedArray/MinNumberInRotatedArray.cpp -------------------------------------------------------------------------------- /src/12_StringPathInMatrix/12_StringPathInMatrix.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/12_StringPathInMatrix/StringPathInMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/12_StringPathInMatrix/StringPathInMatrix.cpp -------------------------------------------------------------------------------- /src/13_RobotMove/13_RobotMove.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {1FC7EAAC-57D1-4629-B842-CCFA002C4CCF} 23 | Win32Proj 24 | My13_RobotMove 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | 87 | 88 | Level3 89 | Disabled 90 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | Level3 102 | Disabled 103 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | 105 | 106 | Console 107 | true 108 | 109 | 110 | 111 | 112 | Level3 113 | 114 | 115 | MaxSpeed 116 | true 117 | true 118 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 119 | 120 | 121 | Console 122 | true 123 | true 124 | true 125 | 126 | 127 | 128 | 129 | Level3 130 | 131 | 132 | MaxSpeed 133 | true 134 | true 135 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 136 | 137 | 138 | Console 139 | true 140 | true 141 | true 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /src/13_RobotMove/13_RobotMove.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/13_RobotMove/RobotMove.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/13_RobotMove/RobotMove.cpp -------------------------------------------------------------------------------- /src/14_CuttingRope/14_CuttingRope.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {FF7ED3B0-5CE4-4D7B-954A-9EE93936D9A1} 23 | Win32Proj 24 | My14_CuttingRope 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | 87 | 88 | Level3 89 | Disabled 90 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | Level3 102 | Disabled 103 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | 105 | 106 | Console 107 | true 108 | 109 | 110 | 111 | 112 | Level3 113 | 114 | 115 | MaxSpeed 116 | true 117 | true 118 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 119 | 120 | 121 | Console 122 | true 123 | true 124 | true 125 | 126 | 127 | 128 | 129 | Level3 130 | 131 | 132 | MaxSpeed 133 | true 134 | true 135 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 136 | 137 | 138 | Console 139 | true 140 | true 141 | true 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /src/14_CuttingRope/14_CuttingRope.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/14_CuttingRope/CuttingRope.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/14_CuttingRope/CuttingRope.cpp -------------------------------------------------------------------------------- /src/15_NumberOf1InBinary/15_NumberOf1InBinary.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/15_NumberOf1InBinary/NumberOf1InBinary.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/15_NumberOf1InBinary/NumberOf1InBinary.cpp -------------------------------------------------------------------------------- /src/16_Power/16_Power.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {5D7F5EE4-EC87-4F2C-A3BD-C27671D1767C} 23 | Win32Proj 24 | My16_Power 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | 87 | 88 | Level3 89 | Disabled 90 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | Level3 102 | Disabled 103 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | 105 | 106 | Console 107 | true 108 | 109 | 110 | 111 | 112 | Level3 113 | 114 | 115 | MaxSpeed 116 | true 117 | true 118 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 119 | 120 | 121 | Console 122 | true 123 | true 124 | true 125 | 126 | 127 | 128 | 129 | Level3 130 | 131 | 132 | MaxSpeed 133 | true 134 | true 135 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 136 | 137 | 138 | Console 139 | true 140 | true 141 | true 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /src/16_Power/16_Power.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/16_Power/Power.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/16_Power/Power.cpp -------------------------------------------------------------------------------- /src/17_Print1ToMaxOfNDigits/17_Print1ToMaxOfNDigits.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/17_Print1ToMaxOfNDigits/Print1ToMaxOfNDigits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/17_Print1ToMaxOfNDigits/Print1ToMaxOfNDigits.cpp -------------------------------------------------------------------------------- /src/18_01_DeleteNodeInList/18_01_DeleteNodeInList.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/18_01_DeleteNodeInList/DeleteNodeInList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/18_01_DeleteNodeInList/DeleteNodeInList.cpp -------------------------------------------------------------------------------- /src/18_02_DeleteDuplicatedNode/18_02_DeleteDuplicatedNode.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/18_02_DeleteDuplicatedNode/DeleteDuplicatedNode.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/18_02_DeleteDuplicatedNode/DeleteDuplicatedNode.cpp -------------------------------------------------------------------------------- /src/19_RegularExpressionsMatching/19_RegularExpressionsMatching.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/19_RegularExpressionsMatching/RegularExpressions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/19_RegularExpressionsMatching/RegularExpressions.cpp -------------------------------------------------------------------------------- /src/20_NumericStrings/20_NumericStrings.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/20_NumericStrings/NumericStrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/20_NumericStrings/NumericStrings.cpp -------------------------------------------------------------------------------- /src/21_ReorderArray/21_ReorderArray.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/21_ReorderArray/ReorderArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/21_ReorderArray/ReorderArray.cpp -------------------------------------------------------------------------------- /src/22_KthNodeFromEnd/22_KthNodeFromEnd.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/22_KthNodeFromEnd/KthNodeFromEnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/22_KthNodeFromEnd/KthNodeFromEnd.cpp -------------------------------------------------------------------------------- /src/23_EntryNodeInListLoop/23_EntryNodeInListLoop.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/23_EntryNodeInListLoop/EntryNodeInListLoop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/23_EntryNodeInListLoop/EntryNodeInListLoop.cpp -------------------------------------------------------------------------------- /src/24_ReverseList/24_ReverseList.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/24_ReverseList/ReverseList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/24_ReverseList/ReverseList.cpp -------------------------------------------------------------------------------- /src/25_MergeSortedLists/25_MergeSortedLists.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/25_MergeSortedLists/MergeSortedLists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/25_MergeSortedLists/MergeSortedLists.cpp -------------------------------------------------------------------------------- /src/26_SubstructureInTree/26_SubstructureInTree.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/26_SubstructureInTree/SubstructureInTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/26_SubstructureInTree/SubstructureInTree.cpp -------------------------------------------------------------------------------- /src/27_MirrorOfBinaryTree/27_MirrorOfBinaryTree.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/27_MirrorOfBinaryTree/MirrorOfBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/27_MirrorOfBinaryTree/MirrorOfBinaryTree.cpp -------------------------------------------------------------------------------- /src/28_SymmetricalBinaryTree/28_SymmetricalBinaryTree.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/28_SymmetricalBinaryTree/SymmetricalBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/28_SymmetricalBinaryTree/SymmetricalBinaryTree.cpp -------------------------------------------------------------------------------- /src/29_PrintMatrix/29_PrintMatrix.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {AEC239E0-E973-4139-93A4-399FFF2B35BE} 23 | Win32Proj 24 | My29_PrintMatrix 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | 87 | 88 | Level3 89 | Disabled 90 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | Level3 102 | Disabled 103 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | 105 | 106 | Console 107 | true 108 | 109 | 110 | 111 | 112 | Level3 113 | 114 | 115 | MaxSpeed 116 | true 117 | true 118 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 119 | 120 | 121 | Console 122 | true 123 | true 124 | true 125 | 126 | 127 | 128 | 129 | Level3 130 | 131 | 132 | MaxSpeed 133 | true 134 | true 135 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 136 | 137 | 138 | Console 139 | true 140 | true 141 | true 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /src/29_PrintMatrix/29_PrintMatrix.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/29_PrintMatrix/PrintMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/29_PrintMatrix/PrintMatrix.cpp -------------------------------------------------------------------------------- /src/30_MinInStack/30_MinInStack.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | 23 | 24 | Header Files 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/30_MinInStack/MinInStack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/30_MinInStack/MinInStack.cpp -------------------------------------------------------------------------------- /src/30_MinInStack/StackWithMin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/30_MinInStack/StackWithMin.h -------------------------------------------------------------------------------- /src/31_StackPushPopOrder/31_StackPushPopOrder.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/31_StackPushPopOrder/StackPushPopOrder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/31_StackPushPopOrder/StackPushPopOrder.cpp -------------------------------------------------------------------------------- /src/32_01_PrintTreeFromTopToBottom/32_01_PrintTreeFromTopToBottom.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/32_01_PrintTreeFromTopToBottom/PrintTreeFromTopToBottom.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/32_01_PrintTreeFromTopToBottom/PrintTreeFromTopToBottom.cpp -------------------------------------------------------------------------------- /src/32_02_PrintTreesInLines/32_02_PrintTreesInLines.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/32_02_PrintTreesInLines/PrintTreesInLines.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/32_02_PrintTreesInLines/PrintTreesInLines.cpp -------------------------------------------------------------------------------- /src/32_03_PrintTreesInZigzag/32_03_PrintTreesInZigzag.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/32_03_PrintTreesInZigzag/PrintTreesInZigzag.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/32_03_PrintTreesInZigzag/PrintTreesInZigzag.cpp -------------------------------------------------------------------------------- /src/33_SquenceOfBST/33_SquenceOfBST.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/33_SquenceOfBST/SquenceOfBST.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/33_SquenceOfBST/SquenceOfBST.cpp -------------------------------------------------------------------------------- /src/34_PathInTree/34_PathInTree.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/34_PathInTree/PathInTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/34_PathInTree/PathInTree.cpp -------------------------------------------------------------------------------- /src/35_CopyComplexList/35_CopyComplexList.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Header Files 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/35_CopyComplexList/ComplexList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/35_CopyComplexList/ComplexList.cpp -------------------------------------------------------------------------------- /src/35_CopyComplexList/ComplexList.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/35_CopyComplexList/ComplexList.h -------------------------------------------------------------------------------- /src/35_CopyComplexList/CopyComplexList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/35_CopyComplexList/CopyComplexList.cpp -------------------------------------------------------------------------------- /src/36_ConvertBinarySearchTree/36_ConvertBinarySearchTree.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/36_ConvertBinarySearchTree/ConvertBinarySearchTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/36_ConvertBinarySearchTree/ConvertBinarySearchTree.cpp -------------------------------------------------------------------------------- /src/37_SerializeBinaryTrees/37_SerializeBinaryTrees.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/37_SerializeBinaryTrees/SerializeBinaryTrees.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/37_SerializeBinaryTrees/SerializeBinaryTrees.cpp -------------------------------------------------------------------------------- /src/37_SerializeBinaryTrees/test.txt: -------------------------------------------------------------------------------- 1 | 5,$,5,$,5,5,5,5,5,$,$,$,5,$,5,$,$,$,$, -------------------------------------------------------------------------------- /src/38_StringPermutation/38_StringPermutation.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/38_StringPermutation/StringPermutation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/38_StringPermutation/StringPermutation.cpp -------------------------------------------------------------------------------- /src/39_MoreThanHalfNumber/39_MoreThanHalfNumber.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/39_MoreThanHalfNumber/MoreThanHalfNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/39_MoreThanHalfNumber/MoreThanHalfNumber.cpp -------------------------------------------------------------------------------- /src/40_KLeastNumbers/40_KLeastNumbers.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/40_KLeastNumbers/KLeastNumbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/40_KLeastNumbers/KLeastNumbers.cpp -------------------------------------------------------------------------------- /src/41_StreamMedian/41_StreamMedian.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/41_StreamMedian/StreamMedian.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/41_StreamMedian/StreamMedian.cpp -------------------------------------------------------------------------------- /src/42_GreatestSumOfSubarrays/42_GreatestSumOfSubarrays.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/42_GreatestSumOfSubarrays/GreatestSumOfSubarrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/42_GreatestSumOfSubarrays/GreatestSumOfSubarrays.cpp -------------------------------------------------------------------------------- /src/43_NumberOf1/43_NumberOf1.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {0EA1A952-E722-43BF-B785-8A9FA7236683} 23 | Win32Proj 24 | My43_NumberOf1 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | 87 | 88 | Level3 89 | Disabled 90 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | Level3 102 | Disabled 103 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | 105 | 106 | Console 107 | true 108 | 109 | 110 | 111 | 112 | Level3 113 | 114 | 115 | MaxSpeed 116 | true 117 | true 118 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 119 | 120 | 121 | Console 122 | true 123 | true 124 | true 125 | 126 | 127 | 128 | 129 | Level3 130 | 131 | 132 | MaxSpeed 133 | true 134 | true 135 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 136 | 137 | 138 | Console 139 | true 140 | true 141 | true 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /src/43_NumberOf1/43_NumberOf1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/43_NumberOf1/NumberOf1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/43_NumberOf1/NumberOf1.cpp -------------------------------------------------------------------------------- /src/44_DigitsInSequence/44_DigitsInSequence.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/44_DigitsInSequence/DigitsInSequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/44_DigitsInSequence/DigitsInSequence.cpp -------------------------------------------------------------------------------- /src/45_SortArrayForMinNumber/45_SortArrayForMinNumber.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/45_SortArrayForMinNumber/SortArrayForMinNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/45_SortArrayForMinNumber/SortArrayForMinNumber.cpp -------------------------------------------------------------------------------- /src/46_TranslateNumbersToStrings/46_TranslateNumbersToStrings.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/46_TranslateNumbersToStrings/TranslateNumbersToStrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/46_TranslateNumbersToStrings/TranslateNumbersToStrings.cpp -------------------------------------------------------------------------------- /src/47_MaxValueOfGifts/47_MaxValueOfGifts.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/47_MaxValueOfGifts/MaxValueOfGifts.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/47_MaxValueOfGifts/MaxValueOfGifts.cpp -------------------------------------------------------------------------------- /src/48_LongestSubstringWithoutDup/48_LongestSubstringWithoutDup.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/48_LongestSubstringWithoutDup/LongestSubstringWithoutDup.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/48_LongestSubstringWithoutDup/LongestSubstringWithoutDup.cpp -------------------------------------------------------------------------------- /src/49_UglyNumber/49_UglyNumber.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {C736D9FB-C5D5-477F-A3E3-2654C5CF0E17} 23 | Win32Proj 24 | My49_UglyNumber 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | 87 | 88 | Level3 89 | Disabled 90 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | Level3 102 | Disabled 103 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | 105 | 106 | Console 107 | true 108 | 109 | 110 | 111 | 112 | Level3 113 | 114 | 115 | MaxSpeed 116 | true 117 | true 118 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 119 | 120 | 121 | Console 122 | true 123 | true 124 | true 125 | 126 | 127 | 128 | 129 | Level3 130 | 131 | 132 | MaxSpeed 133 | true 134 | true 135 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 136 | 137 | 138 | Console 139 | true 140 | true 141 | true 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /src/49_UglyNumber/49_UglyNumber.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/49_UglyNumber/UglyNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/49_UglyNumber/UglyNumber.cpp -------------------------------------------------------------------------------- /src/50_01_FirstNotRepeatingChar/50_01_FirstNotRepeatingChar.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/50_01_FirstNotRepeatingChar/FirstNotRepeatingChar.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/50_01_FirstNotRepeatingChar/FirstNotRepeatingChar.cpp -------------------------------------------------------------------------------- /src/50_02_FirstCharacterInStream/50_02_FirstCharacterInStream.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/50_02_FirstCharacterInStream/FirstCharacterInStream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/50_02_FirstCharacterInStream/FirstCharacterInStream.cpp -------------------------------------------------------------------------------- /src/51_InversePairs/51_InversePairs.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/51_InversePairs/InversePairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/51_InversePairs/InversePairs.cpp -------------------------------------------------------------------------------- /src/52_FirstCommonNodesInLists/52_FirstCommonNodesInLists.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/52_FirstCommonNodesInLists/FirstCommonNodesInLists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/52_FirstCommonNodesInLists/FirstCommonNodesInLists.cpp -------------------------------------------------------------------------------- /src/53_01_NumberOfK/53_01_NumberOfK.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {FB4B4B49-99A8-4EA3-8BF2-84F559B1E59A} 23 | Win32Proj 24 | My53_01_NumberOfK 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | 87 | 88 | Level3 89 | Disabled 90 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | Level3 102 | Disabled 103 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | 105 | 106 | Console 107 | true 108 | 109 | 110 | 111 | 112 | Level3 113 | 114 | 115 | MaxSpeed 116 | true 117 | true 118 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 119 | 120 | 121 | Console 122 | true 123 | true 124 | true 125 | 126 | 127 | 128 | 129 | Level3 130 | 131 | 132 | MaxSpeed 133 | true 134 | true 135 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 136 | 137 | 138 | Console 139 | true 140 | true 141 | true 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /src/53_01_NumberOfK/53_01_NumberOfK.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/53_01_NumberOfK/NumberOfK.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/53_01_NumberOfK/NumberOfK.cpp -------------------------------------------------------------------------------- /src/53_02_MissingNumber/53_02_MissingNumber.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/53_02_MissingNumber/MissingNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/53_02_MissingNumber/MissingNumber.cpp -------------------------------------------------------------------------------- /src/53_03_IntegerIdenticalToIndex/53_03_IntegerIdenticalToIndex.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/53_03_IntegerIdenticalToIndex/IntegerIdenticalToIndex.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/53_03_IntegerIdenticalToIndex/IntegerIdenticalToIndex.cpp -------------------------------------------------------------------------------- /src/54_KthNodeInBST/54_KthNodeInBST.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/54_KthNodeInBST/KthNodeInBST.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/54_KthNodeInBST/KthNodeInBST.cpp -------------------------------------------------------------------------------- /src/55_01_TreeDepth/55_01_TreeDepth.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/55_01_TreeDepth/TreeDepth.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/55_01_TreeDepth/TreeDepth.cpp -------------------------------------------------------------------------------- /src/55_02_BalancedBinaryTree/55_02_BalancedBinaryTree.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/55_02_BalancedBinaryTree/BalancedBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/55_02_BalancedBinaryTree/BalancedBinaryTree.cpp -------------------------------------------------------------------------------- /src/56_01_NumbersAppearOnce/56_01_NumbersAppearOnce.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/56_01_NumbersAppearOnce/NumbersAppearOnce.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/56_01_NumbersAppearOnce/NumbersAppearOnce.cpp -------------------------------------------------------------------------------- /src/56_02_NumberAppearingOnce/56_02_NumberAppearingOnce.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/56_02_NumberAppearingOnce/NumberAppearingOnce.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/56_02_NumberAppearingOnce/NumberAppearingOnce.cpp -------------------------------------------------------------------------------- /src/57_01_TwoNumbersWithSum/57_01_TwoNumbersWithSum.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/57_01_TwoNumbersWithSum/TwoNumbersWithSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/57_01_TwoNumbersWithSum/TwoNumbersWithSum.cpp -------------------------------------------------------------------------------- /src/57_02_ContinuousSquenceWithSum/57_02_ContinuousSquenceWithSum.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp -------------------------------------------------------------------------------- /src/58_01_ReverseWordsInSentence/58_01_ReverseWordsInSentence.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/58_01_ReverseWordsInSentence/ReverseWordsInSentence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/58_01_ReverseWordsInSentence/ReverseWordsInSentence.cpp -------------------------------------------------------------------------------- /src/58_02_LeftRotateString/58_02_LeftRotateString.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/58_02_LeftRotateString/LeftRotateString.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/58_02_LeftRotateString/LeftRotateString.cpp -------------------------------------------------------------------------------- /src/59_01_MaxInSlidingWindow/59_01_MaxInSlidingWindow.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/59_01_MaxInSlidingWindow/MaxInSlidingWindow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/59_01_MaxInSlidingWindow/MaxInSlidingWindow.cpp -------------------------------------------------------------------------------- /src/59_02_QueueWithMax/59_02_QueueWithMax.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/59_02_QueueWithMax/QueueWithMax.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/59_02_QueueWithMax/QueueWithMax.cpp -------------------------------------------------------------------------------- /src/60_DicesProbability/60_DicesProbability.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/60_DicesProbability/DicesProbability.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/60_DicesProbability/DicesProbability.cpp -------------------------------------------------------------------------------- /src/61_ContinousCards/61_ContinousCards.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/61_ContinousCards/ContinousCards.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/61_ContinousCards/ContinousCards.cpp -------------------------------------------------------------------------------- /src/62_LastNumberInCircle/62_LastNumberInCircle.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/62_LastNumberInCircle/LastNumberInCircle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/62_LastNumberInCircle/LastNumberInCircle.cpp -------------------------------------------------------------------------------- /src/63_MaximalProfit/63_MaximalProfit.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/63_MaximalProfit/MaximalProfit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/63_MaximalProfit/MaximalProfit.cpp -------------------------------------------------------------------------------- /src/64_Accumulate/64_Accumulate.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {6D98C48B-78FF-449D-B4C2-3D0DE1258D5D} 23 | Win32Proj 24 | My64_Accumulate 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | 87 | 88 | Level3 89 | Disabled 90 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | Level3 102 | Disabled 103 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | 105 | 106 | Console 107 | true 108 | 109 | 110 | 111 | 112 | Level3 113 | 114 | 115 | MaxSpeed 116 | true 117 | true 118 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 119 | 120 | 121 | Console 122 | true 123 | true 124 | true 125 | 126 | 127 | 128 | 129 | Level3 130 | 131 | 132 | MaxSpeed 133 | true 134 | true 135 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 136 | 137 | 138 | Console 139 | true 140 | true 141 | true 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /src/64_Accumulate/64_Accumulate.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/64_Accumulate/Accumulate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/64_Accumulate/Accumulate.cpp -------------------------------------------------------------------------------- /src/65_AddTwoNumbers/65_AddTwoNumbers.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/65_AddTwoNumbers/AddTwoNumbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/65_AddTwoNumbers/AddTwoNumbers.cpp -------------------------------------------------------------------------------- /src/66_ConstuctArray/66_ConstuctArray.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/66_ConstuctArray/ConstuctArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/66_ConstuctArray/ConstuctArray.cpp -------------------------------------------------------------------------------- /src/67_StringToInt/67_StringToInt.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/67_StringToInt/StringToInt.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/67_StringToInt/StringToInt.cpp -------------------------------------------------------------------------------- /src/68_CommonParentInTree/68_CommonParentInTree.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/68_CommonParentInTree/CommonParentInTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/68_CommonParentInTree/CommonParentInTree.cpp -------------------------------------------------------------------------------- /src/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright(c) 2016, Harry He (何海涛) 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met : 6 | * Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and / or other materials provided with the distribution. 11 | * Neither the name of Harry He nor the names of its contributors 12 | may be used to endorse or promote products derived from this software 13 | without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED.IN NO EVENT SHALL HARRY HE BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /src/Utilities/Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/Array.cpp -------------------------------------------------------------------------------- /src/Utilities/Array.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/Array.h -------------------------------------------------------------------------------- /src/Utilities/BinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/BinaryTree.cpp -------------------------------------------------------------------------------- /src/Utilities/BinaryTree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/BinaryTree.h -------------------------------------------------------------------------------- /src/Utilities/List.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/List.cpp -------------------------------------------------------------------------------- /src/Utilities/List.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/List.h -------------------------------------------------------------------------------- /src/Utilities/StringUtil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/StringUtil.cpp -------------------------------------------------------------------------------- /src/Utilities/StringUtil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/StringUtil.h -------------------------------------------------------------------------------- /src/Utilities/Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/Tree.cpp -------------------------------------------------------------------------------- /src/Utilities/Tree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yifengyou/CodingInterview2/9c0de20354a9976d1aad24c54d25cb31b585904e/src/Utilities/Tree.h -------------------------------------------------------------------------------- /src/Utilities/Utilities.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 6 | h;hh;hpp;hxx;hm;inl;inc;xsd 7 | 8 | 9 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 10 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 11 | 12 | 13 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 14 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 15 | 16 | 17 | 18 | 19 | Header Files 20 | 21 | 22 | Header Files 23 | 24 | 25 | Header Files 26 | 27 | 28 | Header Files 29 | 30 | 31 | Header Files 32 | 33 | 34 | 35 | 36 | Source Files 37 | 38 | 39 | Source Files 40 | 41 | 42 | Source Files 43 | 44 | 45 | Source Files 46 | 47 | 48 | Source Files 49 | 50 | 51 | --------------------------------------------------------------------------------