This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
https://scammingthecodinginterview.com | |
Week 2: Trees | |
Problem: 5 | |
""" | |
class TreeNode(object): | |
def __init__(self, x): | |
self.val = x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
https://scammingthecodinginterview.com | |
Week 2: Trees | |
Problem: 4 | |
""" | |
class Node: | |
def __init__(self, data): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
https://scammingthecodinginterview.com | |
Week 2: Trees | |
Problem: 3 | |
""" | |
class Node: | |
def __init__(self, value): | |
self.left = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
https://scammingthecodinginterview.com | |
Week 2: Trees | |
Problem: 2 | |
""" | |
class Node(object): | |
def __init__(self, value): | |
self.value = value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Scamming the coding interview. Problem 051 | |
Subscribe to our newsletter at https://scammingthecodinginterview.com/ | |
to get a coding or design problem daily in your inbox and become exceptionally good at | |
coding interviews. | |
""" | |
class Solution(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Scamming the coding interview. Problem 051 | |
Subscribe to our newsletter at https://scammingthecodinginterview.com/ | |
to get a coding or design problem daily in your inbox and become exceptionally good at | |
coding interviews. | |
""" | |
class Solution(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Scamming the coding interview. Problem 050 | |
Subscribe to our newsletter at https://scammingthecodinginterview.com/ | |
to get a coding or design problem daily in your inbox and become exceptionally good at | |
coding interviews. | |
""" | |
class Solution(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Scamming the coding interview. Problem 049 | |
Subscribe to our newsletter at https://scammingthecodinginterview.com/ | |
to get a coding or design problem daily in your inbox and become exceptionally good at | |
coding interviews. | |
""" | |
class Solution(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Scamming the coding interview. Problem 048 | |
Subscribe to our newsletter at https://scammingthecodinginterview.com/ | |
to get a coding or design problem daily in your inbox and become exceptionally good at | |
coding interviews. | |
""" | |
class Solution(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Scamming the coding interview. Problem 047 | |
Subscribe to our newsletter at https://scammingthecodinginterview.com/ | |
to get a coding or design problem daily in your inbox and become exceptionally good at | |
coding interviews. | |
""" | |
class Solution(object): |