Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west, respectively. You start at the origin (0, 0) on a 2D plane and walk on the path specified by path.
Return true if the path crosses itself at any point, that is, if at any time you are on a location you have previously visited. Return false otherwise.
##############
My other Leetcode solving videos (easy)
https://www.youtube.com/playlist?list=PLg9w7tItBlZt4oUpNyWU_0rOItlScu1_d
Leetcode solving videos (Medium):
https://www.youtube.com/playlist?list=PLg9w7tItBlZvMGxy-y1eXURPD6Ao6kkzA
Leetcode solving videos (Hard):
https://www.youtube.com/playlist?list=PLg9w7tItBlZt4JQmlkGD3M5idZn14NyL6
############
...
https://www.youtube.com/watch?v=1XJgbhur_Vo
Leetcode solving: 806 Number of Lines To Write String
####################################
Please subscribe to my channel
My other Leetcode solving videos (easy)
https://www.youtube.com/playlist?list=PLg9w7tItBlZt4oUpNyWU_0rOItlScu1_d
Leetcode solving videos (Medium):
https://www.youtube.com/playlist?list=PLg9w7tItBlZvMGxy-y1eXURPD6Ao6kkzA
Leetcode solving videos (Hard):
https://www.youtube.com/playlist?list=PLg9w7tItBlZt4JQmlkGD3M5idZn14NyL6
########################################
...
https://www.youtube.com/watch?v=dKKjUE_FcOE
Relativizing the P vs NP Question (1) P^A=NP^A
Donate to Channel(Support me): https://paypal.me/kuoenjui
Facebook: https://www.facebook.com/mathenjui
Instagram: https://www.instagram.com/mathphyen/
Hope you can subscribe to my channel
Complexity Theory:
https://www.youtube.com/playlist?list=PLg9w7tItBlZu5dzTT0xqtLrx-46jCfR4o
Advanced mathematics list:
Group representation for finite group
https://www.youtube.com/playlist?list=PLg9w7tItBlZvxk4eus_gi2Wp3yYAEXF9-
exact sequences
https://www.youtube.com/playlist?list=PLg9w7tItBlZuI7n7notRRA2jol69e9mc9
Ring theory lecture
https://www.youtube.com/playlist?list=PLg9w7tItBlZtfPKHWGlU55kqafEgUu45u
group theory lecture
https://www.youtube.com/playlist?list=PLg9w7tItBlZtSHrTTVjEzAsUcO69YXY7v
Category theory
https://www.youtube.com/playlist?app=desktop&list=PLg9w7tItBlZtI1njDjtXt_0Hkqbn9RVvi
Field theory in abstract algebra
https://www.youtube.com/playlist?list=PLg9w7tItBlZtA6XhMIgIPkgj_SDKChbN-
Mathematical analysis
https://www.youtube.com/playlist?list=PLg9w7tItBlZu-yFYxQrWrFKcdOHRz2Fkh
...
https://www.youtube.com/watch?v=PN2Dk0ioAXc
Sipser–Lautemann theorem and its proof
Donate to Channel(Support me): https://paypal.me/kuoenjui
Facebook: https://www.facebook.com/mathenjui
Instagram: https://www.instagram.com/mathphyen/
Hope you can subscribe to my channel
Complexity Theory:
https://www.youtube.com/playlist?list=PLg9w7tItBlZu5dzTT0xqtLrx-46jCfR4o
Advanced mathematics list:
Group representation for finite group
https://www.youtube.com/playlist?list=PLg9w7tItBlZvxk4eus_gi2Wp3yYAEXF9-
exact sequences
https://www.youtube.com/playlist?list=PLg9w7tItBlZuI7n7notRRA2jol69e9mc9
Ring theory lecture
https://www.youtube.com/playlist?list=PLg9w7tItBlZtfPKHWGlU55kqafEgUu45u
group theory lecture
https://www.youtube.com/playlist?list=PLg9w7tItBlZtSHrTTVjEzAsUcO69YXY7v
Category theory
https://www.youtube.com/playlist?app=desktop&list=PLg9w7tItBlZtI1njDjtXt_0Hkqbn9RVvi
Field theory in abstract algebra
https://www.youtube.com/playlist?list=PLg9w7tItBlZtA6XhMIgIPkgj_SDKChbN-
Mathematical analysis
https://www.youtube.com/playlist?list=PLg9w7tItBlZu-yFYxQrWrFKcdOHRz2Fkh
...
https://www.youtube.com/watch?v=s1oulFG4qMI
Complex contour: e^{-x}cos(x)/sqrt(x), e^{-x}sin(x)/sqrt(x) from 0 to infinity
Complex analysis: https://www.youtube.com/playlist?list=PLg9w7tItBlZsYfYG6dUISItqsSRSXaX4B
Contour Integral examples: https://www.youtube.com/playlist?list=PLg9w7tItBlZud9bIi24_ks00myY0X4atI
More interesting math questions:
https://www.youtube.com/playlist?list=PLg9w7tItBlZsC-FFxBJxFg3dkCFGUqXIR
Instagram account: https://www.instagram.com/mathphyen/
Subscribe to my channel
more video lists:
################
機率
Probability and discrete mathematics:
######################################################################
Probability interview questions:
https://www.youtube.com/watch?v=qphhG_1rWf8&list=PLg9w7tItBlZtI1eM6znSYfyDEaqQtUx5b
Probability theory:
https://www.youtube.com/watch?v=8s-nyRLBsDo&list=PLg9w7tItBlZsvciKHBx8lXXnCtQ7Ou4cV
Complex analysis:
https://www.youtube.com/playlist?list=PLg9w7tItBlZsYfYG6dUISItqsSRSXaX4B
Combinatorics:
https://www.youtube.com/playlist?list=PLg9w7tItBlZvQt0YNfCqcULzrPme2ai7K
additive combinatorics:
https://www.youtube.com/playlist?list=PLg9w7tItBlZseUrmXgf_2yc2NI_obVUhB
微積分 高等微積分 代數
Calculus and advanced mathematics (abstract algebra):
######################################################################
Real analysis
https://www.youtube.com/playlist?list=PLg9w7tItBlZumEJ4DacAKgstCvDHKtY63
Reduction formula in Calculus:
https://www.youtube.com/playlist?list=PLg9w7tItBlZubmhgkHoHvje1uOASnkcke
Integrals of trigonometric functions:
https://www.youtube.com/playlist?list=PLg9w7tItBlZuwEER2YvFV06ri6i1Cj3hh
(algebraic geometry)代數幾何筆記
https://www.youtube.com/playlist?list=PLg9w7tItBlZssQ4Smzgp_bk2rEszKaW0B
Linear algebra Proof:
https://www.youtube.com/playlist?list=PLg9w7tItBlZueH6LMeYzzwPMUlIaRhCZo
...
https://www.youtube.com/watch?v=wd9JJAXdWF0
interview question: dice 3 times payoff
Consider a game where we are allowed to throw a dice 3 times, and we winan amount equal to the number on the dice. We are allowed to stop whenwe want and obtain the value corresponding to the last throw, but if wethrow it 3 times, we must accept the last value. How much is this gameworth?
Donate to Channel(斗內一下): https://paypal.me/kuoenjui
Facebook: https://www.facebook.com/mathenjui
Instagram: https://www.instagram.com/mathphyen/
more video lists:
################
機率
Probability and discrete mathematics:
######################################################################
Probability interview questions:
https://www.youtube.com/watch?v=qphhG_1rWf8&list=PLg9w7tItBlZtI1eM6znSYfyDEaqQtUx5b
Probability theory:
https://www.youtube.com/watch?v=8s-nyRLBsDo&list=PLg9w7tItBlZsvciKHBx8lXXnCtQ7Ou4cV
...
https://www.youtube.com/watch?v=1RV4XItWgDA
introduce Weird complexity class, TFNP PPA, PPAD, PPP
TFNP: the complexity class TFNP is the class of total function problems which can be solved in nondeterministic polynomial time.
PPAD: Polynomial Parity Arguments on Directed graphs
PPA: parity arguments for undirected graphs
More computational complexity theory:
https://www.youtube.com/playlist?list=PLg9w7tItBlZu5dzTT0xqtLrx-46jCfR4o
Donate to Channel(Support me): https://paypal.me/kuoenjui
Facebook: https://www.facebook.com/mathenjui
Instagram: https://www.instagram.com/mathphyen/
...
https://www.youtube.com/watch?v=4USzN4CCKDg
arithmetic mean geometric mean harmonic mean
In this video, we prove arithmetic mean geometric mean inequality.
More interesting questions:
https://www.youtube.com/playlist?list=PLg9w7tItBlZsC-FFxBJxFg3dkCFGUqXIR
Instagram account: https://www.instagram.com/mathphyen/
Subscribe to my channel
...
https://www.youtube.com/watch?v=ft8DuTWKFzo