This channel is mostly for Algorithms and Data Structures in C++. I help you through interview questions as well as competitive programming questions involving Graph Theory, Number Theory, Algorithms, Data Structures, and maybe probability.
You have made mistake in the equation a + b = 3x a +b = 3y When sum this 2 equation we will get 2(a+b) = 3(x+y) But u have written 2(a+b) = 6(x + y) How this is possible?
some python code to solve this without libs word = list(input()) n = len(word) ans = set() def solve(cur: list, options: list): if len(cur) == n: ans.add("".join(cur)) return for i in range(len(options)): solve(cur + [options[i]], options[:i] + options[i+1:]) solve([], word) print(len(ans)) for answer in sorted(ans): print(answer) basically this sets up a recursive function whose base case is when the length of the currently generated word reaches the size of the original word (which means the current permutation is done). otherwise, it iterates through the options of unused characters and calls the function again every iteration, removing the currently selected character from the options list and appending it to the current word permutation
oh my god, the amount of enthusiasm at the start of the video, just made me happy for some reason, probably cuz i was killing for this qs, thanks for the explaination!
Hello sir how are you so let me introduce my self my name is anmol and i am a video editor having a experience of 3.5 so i want to say as begin a video editor Anlazie you RU-vid and a found someone mistakes due to this your RU-vid channel is not growing so i can edit and make your video more effective so if you're interested reply
I'll say good phrase to describe what's really true. Programmers don't need hight IQ to program, no! But programmers mostpy have high iq for my opinion because you pearn new stuff 3D, 2D 1D, sometimes 4D and 5D. You understand programming language like language which other people don't understand and set it as arabian language. Imagine programmers would talk on python language in real life like: print("Hello!") print("Hi, what's up!") and say to me if that possible.
Hey friend! Thanks for video! Great tips! Can you make advice? How to start learn competitive programming by this book?(I mean what read first?) Book1 then Book2 of CP4 and then read Handbook CP?