Skip to content

Commit e31abeb

Browse files
author
Partho Biswas
committed
no message
1 parent 4ed570a commit e31abeb

File tree

5 files changed

+353
-0
lines changed

5 files changed

+353
-0
lines changed
Lines changed: 290 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,290 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 50;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
775295A8248611A20010FBCE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 775295A7248611A20010FBCE /* main.m */; };
11+
775295B4248612260010FBCE /* 226_Invert_Binary_Tree.m in Sources */ = {isa = PBXBuildFile; fileRef = 775295B3248612260010FBCE /* 226_Invert_Binary_Tree.m */; };
12+
/* End PBXBuildFile section */
13+
14+
/* Begin PBXCopyFilesBuildPhase section */
15+
775295A2248611A20010FBCE /* CopyFiles */ = {
16+
isa = PBXCopyFilesBuildPhase;
17+
buildActionMask = 2147483647;
18+
dstPath = /usr/share/man/man1/;
19+
dstSubfolderSpec = 0;
20+
files = (
21+
);
22+
runOnlyForDeploymentPostprocessing = 1;
23+
};
24+
/* End PBXCopyFilesBuildPhase section */
25+
26+
/* Begin PBXFileReference section */
27+
775295A4248611A20010FBCE /* DS_ALGO_PRAC */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = DS_ALGO_PRAC; sourceTree = BUILT_PRODUCTS_DIR; };
28+
775295A7248611A20010FBCE /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
29+
775295B3248612260010FBCE /* 226_Invert_Binary_Tree.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = 226_Invert_Binary_Tree.m; sourceTree = "<group>"; };
30+
/* End PBXFileReference section */
31+
32+
/* Begin PBXFrameworksBuildPhase section */
33+
775295A1248611A20010FBCE /* Frameworks */ = {
34+
isa = PBXFrameworksBuildPhase;
35+
buildActionMask = 2147483647;
36+
files = (
37+
);
38+
runOnlyForDeploymentPostprocessing = 0;
39+
};
40+
/* End PBXFrameworksBuildPhase section */
41+
42+
/* Begin PBXGroup section */
43+
7752959B248611A20010FBCE = {
44+
isa = PBXGroup;
45+
children = (
46+
775295A6248611A20010FBCE /* DS_ALGO_PRAC */,
47+
775295A5248611A20010FBCE /* Products */,
48+
);
49+
sourceTree = "<group>";
50+
};
51+
775295A5248611A20010FBCE /* Products */ = {
52+
isa = PBXGroup;
53+
children = (
54+
775295A4248611A20010FBCE /* DS_ALGO_PRAC */,
55+
);
56+
name = Products;
57+
sourceTree = "<group>";
58+
};
59+
775295A6248611A20010FBCE /* DS_ALGO_PRAC */ = {
60+
isa = PBXGroup;
61+
children = (
62+
775295A7248611A20010FBCE /* main.m */,
63+
775295AE248611C20010FBCE /* Problems */,
64+
);
65+
path = DS_ALGO_PRAC;
66+
sourceTree = "<group>";
67+
};
68+
775295AE248611C20010FBCE /* Problems */ = {
69+
isa = PBXGroup;
70+
children = (
71+
775295B3248612260010FBCE /* 226_Invert_Binary_Tree.m */,
72+
);
73+
path = Problems;
74+
sourceTree = "<group>";
75+
};
76+
/* End PBXGroup section */
77+
78+
/* Begin PBXNativeTarget section */
79+
775295A3248611A20010FBCE /* DS_ALGO_PRAC */ = {
80+
isa = PBXNativeTarget;
81+
buildConfigurationList = 775295AB248611A20010FBCE /* Build configuration list for PBXNativeTarget "DS_ALGO_PRAC" */;
82+
buildPhases = (
83+
775295A0248611A20010FBCE /* Sources */,
84+
775295A1248611A20010FBCE /* Frameworks */,
85+
775295A2248611A20010FBCE /* CopyFiles */,
86+
);
87+
buildRules = (
88+
);
89+
dependencies = (
90+
);
91+
name = DS_ALGO_PRAC;
92+
productName = DS_ALGO_PRAC;
93+
productReference = 775295A4248611A20010FBCE /* DS_ALGO_PRAC */;
94+
productType = "com.apple.product-type.tool";
95+
};
96+
/* End PBXNativeTarget section */
97+
98+
/* Begin PBXProject section */
99+
7752959C248611A20010FBCE /* Project object */ = {
100+
isa = PBXProject;
101+
attributes = {
102+
LastUpgradeCheck = 1150;
103+
ORGANIZATIONNAME = "Partho Biswas";
104+
TargetAttributes = {
105+
775295A3248611A20010FBCE = {
106+
CreatedOnToolsVersion = 11.5;
107+
};
108+
};
109+
};
110+
buildConfigurationList = 7752959F248611A20010FBCE /* Build configuration list for PBXProject "DS_ALGO_PRAC" */;
111+
compatibilityVersion = "Xcode 9.3";
112+
developmentRegion = en;
113+
hasScannedForEncodings = 0;
114+
knownRegions = (
115+
en,
116+
Base,
117+
);
118+
mainGroup = 7752959B248611A20010FBCE;
119+
productRefGroup = 775295A5248611A20010FBCE /* Products */;
120+
projectDirPath = "";
121+
projectRoot = "";
122+
targets = (
123+
775295A3248611A20010FBCE /* DS_ALGO_PRAC */,
124+
);
125+
};
126+
/* End PBXProject section */
127+
128+
/* Begin PBXSourcesBuildPhase section */
129+
775295A0248611A20010FBCE /* Sources */ = {
130+
isa = PBXSourcesBuildPhase;
131+
buildActionMask = 2147483647;
132+
files = (
133+
775295A8248611A20010FBCE /* main.m in Sources */,
134+
775295B4248612260010FBCE /* 226_Invert_Binary_Tree.m in Sources */,
135+
);
136+
runOnlyForDeploymentPostprocessing = 0;
137+
};
138+
/* End PBXSourcesBuildPhase section */
139+
140+
/* Begin XCBuildConfiguration section */
141+
775295A9248611A20010FBCE /* Debug */ = {
142+
isa = XCBuildConfiguration;
143+
buildSettings = {
144+
ALWAYS_SEARCH_USER_PATHS = NO;
145+
CLANG_ANALYZER_NONNULL = YES;
146+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
147+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
148+
CLANG_CXX_LIBRARY = "libc++";
149+
CLANG_ENABLE_MODULES = YES;
150+
CLANG_ENABLE_OBJC_ARC = YES;
151+
CLANG_ENABLE_OBJC_WEAK = YES;
152+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
153+
CLANG_WARN_BOOL_CONVERSION = YES;
154+
CLANG_WARN_COMMA = YES;
155+
CLANG_WARN_CONSTANT_CONVERSION = YES;
156+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
157+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
158+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
159+
CLANG_WARN_EMPTY_BODY = YES;
160+
CLANG_WARN_ENUM_CONVERSION = YES;
161+
CLANG_WARN_INFINITE_RECURSION = YES;
162+
CLANG_WARN_INT_CONVERSION = YES;
163+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
164+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
165+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
166+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
167+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
168+
CLANG_WARN_STRICT_PROTOTYPES = YES;
169+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
170+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
171+
CLANG_WARN_UNREACHABLE_CODE = YES;
172+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
173+
COPY_PHASE_STRIP = NO;
174+
DEBUG_INFORMATION_FORMAT = dwarf;
175+
ENABLE_STRICT_OBJC_MSGSEND = YES;
176+
ENABLE_TESTABILITY = YES;
177+
GCC_C_LANGUAGE_STANDARD = gnu11;
178+
GCC_DYNAMIC_NO_PIC = NO;
179+
GCC_NO_COMMON_BLOCKS = YES;
180+
GCC_OPTIMIZATION_LEVEL = 0;
181+
GCC_PREPROCESSOR_DEFINITIONS = (
182+
"DEBUG=1",
183+
"$(inherited)",
184+
);
185+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
186+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
187+
GCC_WARN_UNDECLARED_SELECTOR = YES;
188+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
189+
GCC_WARN_UNUSED_FUNCTION = YES;
190+
GCC_WARN_UNUSED_VARIABLE = YES;
191+
MACOSX_DEPLOYMENT_TARGET = 10.15;
192+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
193+
MTL_FAST_MATH = YES;
194+
ONLY_ACTIVE_ARCH = YES;
195+
SDKROOT = macosx;
196+
};
197+
name = Debug;
198+
};
199+
775295AA248611A20010FBCE /* Release */ = {
200+
isa = XCBuildConfiguration;
201+
buildSettings = {
202+
ALWAYS_SEARCH_USER_PATHS = NO;
203+
CLANG_ANALYZER_NONNULL = YES;
204+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
205+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
206+
CLANG_CXX_LIBRARY = "libc++";
207+
CLANG_ENABLE_MODULES = YES;
208+
CLANG_ENABLE_OBJC_ARC = YES;
209+
CLANG_ENABLE_OBJC_WEAK = YES;
210+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
211+
CLANG_WARN_BOOL_CONVERSION = YES;
212+
CLANG_WARN_COMMA = YES;
213+
CLANG_WARN_CONSTANT_CONVERSION = YES;
214+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
215+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
216+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
217+
CLANG_WARN_EMPTY_BODY = YES;
218+
CLANG_WARN_ENUM_CONVERSION = YES;
219+
CLANG_WARN_INFINITE_RECURSION = YES;
220+
CLANG_WARN_INT_CONVERSION = YES;
221+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
222+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
223+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
224+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
225+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
226+
CLANG_WARN_STRICT_PROTOTYPES = YES;
227+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
228+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
229+
CLANG_WARN_UNREACHABLE_CODE = YES;
230+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
231+
COPY_PHASE_STRIP = NO;
232+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
233+
ENABLE_NS_ASSERTIONS = NO;
234+
ENABLE_STRICT_OBJC_MSGSEND = YES;
235+
GCC_C_LANGUAGE_STANDARD = gnu11;
236+
GCC_NO_COMMON_BLOCKS = YES;
237+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
238+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
239+
GCC_WARN_UNDECLARED_SELECTOR = YES;
240+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
241+
GCC_WARN_UNUSED_FUNCTION = YES;
242+
GCC_WARN_UNUSED_VARIABLE = YES;
243+
MACOSX_DEPLOYMENT_TARGET = 10.15;
244+
MTL_ENABLE_DEBUG_INFO = NO;
245+
MTL_FAST_MATH = YES;
246+
SDKROOT = macosx;
247+
};
248+
name = Release;
249+
};
250+
775295AC248611A20010FBCE /* Debug */ = {
251+
isa = XCBuildConfiguration;
252+
buildSettings = {
253+
CODE_SIGN_STYLE = Automatic;
254+
PRODUCT_NAME = "$(TARGET_NAME)";
255+
};
256+
name = Debug;
257+
};
258+
775295AD248611A20010FBCE /* Release */ = {
259+
isa = XCBuildConfiguration;
260+
buildSettings = {
261+
CODE_SIGN_STYLE = Automatic;
262+
PRODUCT_NAME = "$(TARGET_NAME)";
263+
};
264+
name = Release;
265+
};
266+
/* End XCBuildConfiguration section */
267+
268+
/* Begin XCConfigurationList section */
269+
7752959F248611A20010FBCE /* Build configuration list for PBXProject "DS_ALGO_PRAC" */ = {
270+
isa = XCConfigurationList;
271+
buildConfigurations = (
272+
775295A9248611A20010FBCE /* Debug */,
273+
775295AA248611A20010FBCE /* Release */,
274+
);
275+
defaultConfigurationIsVisible = 0;
276+
defaultConfigurationName = Release;
277+
};
278+
775295AB248611A20010FBCE /* Build configuration list for PBXNativeTarget "DS_ALGO_PRAC" */ = {
279+
isa = XCConfigurationList;
280+
buildConfigurations = (
281+
775295AC248611A20010FBCE /* Debug */,
282+
775295AD248611A20010FBCE /* Release */,
283+
);
284+
defaultConfigurationIsVisible = 0;
285+
defaultConfigurationName = Release;
286+
};
287+
/* End XCConfigurationList section */
288+
};
289+
rootObject = 7752959C248611A20010FBCE /* Project object */;
290+
}

leetcode.com/objective-c/DS_ALGO_PRAC/DS_ALGO_PRAC.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//
2+
// 226_Invert_Binary_Tree.m
3+
// DS_ALGO_PRAC
4+
//
5+
// Created by Partho Biswas on 6/2/20.
6+
// Copyright © 2020 Partho Biswas. All rights reserved.
7+
//
8+
9+
#import "226_Invert_Binary_Tree.h"
10+
11+
struct TreeNode {
12+
int val;
13+
struct TreeNode *left;
14+
struct TreeNode *right;
15+
};
16+
17+
@implementation _26_Invert_Binary_Tree
18+
19+
- (struct TreeNode *)invertTree:(struct TreeNode *)root {
20+
if (!root) {
21+
return nil;
22+
}
23+
24+
struct TreeNode *left = [self invertTree:root->left];
25+
struct TreeNode *right = [self invertTree:root->right];
26+
root->left = right;
27+
root->right = left;
28+
return root;
29+
}
30+
31+
@end
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// main.m
3+
// DS_ALGO_PRAC
4+
//
5+
// Created by Partho Biswas on 6/2/20.
6+
// Copyright © 2020 Partho Biswas. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
int main(int argc, const char * argv[]) {
12+
@autoreleasepool {
13+
// insert code here...
14+
NSLog(@"Hello, World!");
15+
}
16+
return 0;
17+
}

0 commit comments

Comments
 (0)