├── .gitattributes ├── .gitignore ├── 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/ -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /01_AssignmentOperator/AssignmentOperator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/01_AssignmentOperator/AssignmentOperator.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /02_Singleton/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /03_01_DuplicationInArray/FindDuplication.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/03_01_DuplicationInArray/FindDuplication.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /03_02_DuplicationInArrayNoEdit/FindDuplicationNoEdit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/03_02_DuplicationInArrayNoEdit/FindDuplicationNoEdit.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /04_FindInPartiallySortedMatrix/FindInPartiallySortedMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/04_FindInPartiallySortedMatrix/FindInPartiallySortedMatrix.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /05_ReplaceSpaces/ReplaceSpaces.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/05_ReplaceSpaces/ReplaceSpaces.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /06_PrintListInReversedOrder/PrintListInReversedOrder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/06_PrintListInReversedOrder/PrintListInReversedOrder.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /07_ConstructBinaryTree/ConstructBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/07_ConstructBinaryTree/ConstructBinaryTree.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /08_NextNodeInBinaryTrees/NextNodeInBinaryTrees.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/08_NextNodeInBinaryTrees/NextNodeInBinaryTrees.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /09_QueueWithTwoStacks/Queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/09_QueueWithTwoStacks/Queue.h -------------------------------------------------------------------------------- /09_QueueWithTwoStacks/QueueWithTwoStacks.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/09_QueueWithTwoStacks/QueueWithTwoStacks.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /10_Fibonacci/Fibonacci.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/10_Fibonacci/Fibonacci.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /11_MinNumberInRotatedArray/MinNumberInRotatedArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/11_MinNumberInRotatedArray/MinNumberInRotatedArray.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /12_StringPathInMatrix/StringPathInMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/12_StringPathInMatrix/StringPathInMatrix.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /13_RobotMove/RobotMove.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/13_RobotMove/RobotMove.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /14_CuttingRope/CuttingRope.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/14_CuttingRope/CuttingRope.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /15_NumberOf1InBinary/NumberOf1InBinary.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/15_NumberOf1InBinary/NumberOf1InBinary.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /16_Power/Power.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/16_Power/Power.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /17_Print1ToMaxOfNDigits/Print1ToMaxOfNDigits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/17_Print1ToMaxOfNDigits/Print1ToMaxOfNDigits.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /18_01_DeleteNodeInList/DeleteNodeInList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/18_01_DeleteNodeInList/DeleteNodeInList.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /18_02_DeleteDuplicatedNode/DeleteDuplicatedNode.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/18_02_DeleteDuplicatedNode/DeleteDuplicatedNode.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /19_RegularExpressionsMatching/RegularExpressions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/19_RegularExpressionsMatching/RegularExpressions.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /20_NumericStrings/NumericStrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/20_NumericStrings/NumericStrings.cpp -------------------------------------------------------------------------------- /21_ReorderArray/21_ReorderArray.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 | {940BA854-308D-4E32-9E0E-53F598D5E471} 23 | Win32Proj 24 | My21_ReorderArray 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /21_ReorderArray/ReorderArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/21_ReorderArray/ReorderArray.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /22_KthNodeFromEnd/KthNodeFromEnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/22_KthNodeFromEnd/KthNodeFromEnd.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /23_EntryNodeInListLoop/EntryNodeInListLoop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/23_EntryNodeInListLoop/EntryNodeInListLoop.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /24_ReverseList/ReverseList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/24_ReverseList/ReverseList.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /25_MergeSortedLists/MergeSortedLists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/25_MergeSortedLists/MergeSortedLists.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /26_SubstructureInTree/SubstructureInTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/26_SubstructureInTree/SubstructureInTree.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /27_MirrorOfBinaryTree/MirrorOfBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/27_MirrorOfBinaryTree/MirrorOfBinaryTree.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /28_SymmetricalBinaryTree/SymmetricalBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/28_SymmetricalBinaryTree/SymmetricalBinaryTree.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /29_PrintMatrix/PrintMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/29_PrintMatrix/PrintMatrix.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /30_MinInStack/MinInStack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/30_MinInStack/MinInStack.cpp -------------------------------------------------------------------------------- /30_MinInStack/StackWithMin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/30_MinInStack/StackWithMin.h -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /31_StackPushPopOrder/StackPushPopOrder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/31_StackPushPopOrder/StackPushPopOrder.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /32_01_PrintTreeFromTopToBottom/PrintTreeFromTopToBottom.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/32_01_PrintTreeFromTopToBottom/PrintTreeFromTopToBottom.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /32_02_PrintTreesInLines/PrintTreesInLines.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/32_02_PrintTreesInLines/PrintTreesInLines.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /32_03_PrintTreesInZigzag/PrintTreesInZigzag.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/32_03_PrintTreesInZigzag/PrintTreesInZigzag.cpp -------------------------------------------------------------------------------- /33_SquenceOfBST/33_SquenceOfBST.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 | {966FE247-8D7C-48A4-B35A-C17B45ED80C4} 23 | Win32Proj 24 | My33_SquenceOfBST 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /33_SquenceOfBST/SquenceOfBST.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/33_SquenceOfBST/SquenceOfBST.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /34_PathInTree/PathInTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/34_PathInTree/PathInTree.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /35_CopyComplexList/ComplexList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/35_CopyComplexList/ComplexList.cpp -------------------------------------------------------------------------------- /35_CopyComplexList/ComplexList.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/35_CopyComplexList/ComplexList.h -------------------------------------------------------------------------------- /35_CopyComplexList/CopyComplexList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/35_CopyComplexList/CopyComplexList.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /36_ConvertBinarySearchTree/ConvertBinarySearchTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/36_ConvertBinarySearchTree/ConvertBinarySearchTree.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /37_SerializeBinaryTrees/SerializeBinaryTrees.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/37_SerializeBinaryTrees/SerializeBinaryTrees.cpp -------------------------------------------------------------------------------- /37_SerializeBinaryTrees/test.txt: -------------------------------------------------------------------------------- 1 | 5,$,5,$,5,5,5,5,5,$,$,$,5,$,5,$,$,$,$, -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /38_StringPermutation/StringPermutation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/38_StringPermutation/StringPermutation.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /39_MoreThanHalfNumber/MoreThanHalfNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/39_MoreThanHalfNumber/MoreThanHalfNumber.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /40_KLeastNumbers/KLeastNumbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/40_KLeastNumbers/KLeastNumbers.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /41_StreamMedian/StreamMedian.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/41_StreamMedian/StreamMedian.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /42_GreatestSumOfSubarrays/GreatestSumOfSubarrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/42_GreatestSumOfSubarrays/GreatestSumOfSubarrays.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /43_NumberOf1/NumberOf1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/43_NumberOf1/NumberOf1.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /44_DigitsInSequence/DigitsInSequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/44_DigitsInSequence/DigitsInSequence.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /45_SortArrayForMinNumber/SortArrayForMinNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/45_SortArrayForMinNumber/SortArrayForMinNumber.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /46_TranslateNumbersToStrings/TranslateNumbersToStrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/46_TranslateNumbersToStrings/TranslateNumbersToStrings.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /47_MaxValueOfGifts/MaxValueOfGifts.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/47_MaxValueOfGifts/MaxValueOfGifts.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /48_LongestSubstringWithoutDup/LongestSubstringWithoutDup.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/48_LongestSubstringWithoutDup/LongestSubstringWithoutDup.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /49_UglyNumber/UglyNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/49_UglyNumber/UglyNumber.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /50_01_FirstNotRepeatingChar/FirstNotRepeatingChar.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/50_01_FirstNotRepeatingChar/FirstNotRepeatingChar.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /50_02_FirstCharacterInStream/FirstCharacterInStream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/50_02_FirstCharacterInStream/FirstCharacterInStream.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /51_InversePairs/InversePairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/51_InversePairs/InversePairs.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /52_FirstCommonNodesInLists/FirstCommonNodesInLists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/52_FirstCommonNodesInLists/FirstCommonNodesInLists.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /53_01_NumberOfK/NumberOfK.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/53_01_NumberOfK/NumberOfK.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /53_02_MissingNumber/MissingNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/53_02_MissingNumber/MissingNumber.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /53_03_IntegerIdenticalToIndex/IntegerIdenticalToIndex.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/53_03_IntegerIdenticalToIndex/IntegerIdenticalToIndex.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /54_KthNodeInBST/KthNodeInBST.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/54_KthNodeInBST/KthNodeInBST.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /55_01_TreeDepth/TreeDepth.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/55_01_TreeDepth/TreeDepth.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /55_02_BalancedBinaryTree/BalancedBinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/55_02_BalancedBinaryTree/BalancedBinaryTree.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /56_01_NumbersAppearOnce/NumbersAppearOnce.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/56_01_NumbersAppearOnce/NumbersAppearOnce.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /56_02_NumberAppearingOnce/NumberAppearingOnce.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/56_02_NumberAppearingOnce/NumberAppearingOnce.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /57_01_TwoNumbersWithSum/TwoNumbersWithSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/57_01_TwoNumbersWithSum/TwoNumbersWithSum.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /58_01_ReverseWordsInSentence/ReverseWordsInSentence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/58_01_ReverseWordsInSentence/ReverseWordsInSentence.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /58_02_LeftRotateString/LeftRotateString.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/58_02_LeftRotateString/LeftRotateString.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /59_01_MaxInSlidingWindow/MaxInSlidingWindow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/59_01_MaxInSlidingWindow/MaxInSlidingWindow.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /59_02_QueueWithMax/QueueWithMax.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/59_02_QueueWithMax/QueueWithMax.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /60_DicesProbability/DicesProbability.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/60_DicesProbability/DicesProbability.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /61_ContinousCards/ContinousCards.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/61_ContinousCards/ContinousCards.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /62_LastNumberInCircle/LastNumberInCircle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/62_LastNumberInCircle/LastNumberInCircle.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /63_MaximalProfit/MaximalProfit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/63_MaximalProfit/MaximalProfit.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /64_Accumulate/Accumulate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/64_Accumulate/Accumulate.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /65_AddTwoNumbers/AddTwoNumbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/65_AddTwoNumbers/AddTwoNumbers.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /66_ConstuctArray/ConstuctArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/66_ConstuctArray/ConstuctArray.cpp -------------------------------------------------------------------------------- /67_StringToInt/67_StringToInt.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 | {23085B6E-4F6E-40EE-BA2E-547ADB5D91B9} 23 | Win32Proj 24 | My67_StringToInt 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /67_StringToInt/StringToInt.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/67_StringToInt/StringToInt.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /68_CommonParentInTree/CommonParentInTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/68_CommonParentInTree/CommonParentInTree.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Utilities/Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/Array.cpp -------------------------------------------------------------------------------- /Utilities/Array.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/Array.h -------------------------------------------------------------------------------- /Utilities/BinaryTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/BinaryTree.cpp -------------------------------------------------------------------------------- /Utilities/BinaryTree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/BinaryTree.h -------------------------------------------------------------------------------- /Utilities/List.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/List.cpp -------------------------------------------------------------------------------- /Utilities/List.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/List.h -------------------------------------------------------------------------------- /Utilities/StringUtil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/StringUtil.cpp -------------------------------------------------------------------------------- /Utilities/StringUtil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/StringUtil.h -------------------------------------------------------------------------------- /Utilities/Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/Tree.cpp -------------------------------------------------------------------------------- /Utilities/Tree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhedahht/CodingInterviewChinese2/2d6eb6d9127d1ad728ba60bb25bc5a5e91e519ac/Utilities/Tree.h -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------