r/cpp_questions • u/krishna_2606 • 2d ago
OPEN problem solving!!
guys.. i was doing hackerRank but there are many question which are been asked to solve by pointers and all but i am very new to coding and cpp i am easily able to do it by other alternatives!!
so i am wrong solving those q's by other method or what!!
and i would like to solve the questions in team?
any of uh interested?
2
u/sodium_123 2d ago
its fine till u can solve the questions, but soon yll encounter some representions of ADT or some questions where solving using pointers is unavoidable then that is a good signal that u should learn them
0
u/krishna_2606 6h ago
Ohk.. but overall as I did it was too basic and the qs I found their were too good that I was not able to solve them in a way they require but still I made it happened to solve by some other way
1
u/sodium_123 5h ago
if you managed to get the solution accepted then your method is also correct. and if u are doing it in a simpler manner its a better solution then
1
1
u/Independent_Art_6676 2d ago
like what? If you can do it without a pointer easily that is fine for that problem. But you should understand how to do it both ways, and which way was better, and why. It would be great to know what sort of problem we are talking about...
1
u/krishna_2606 6h ago
Ohkk.. and You can check it on hacker rank it self. Their are few questions only.
5
u/LongLiveTheDiego 2d ago
Understanding pointers is crucial for a C++ programmer, you should put in the effort to get familiar with them. Many things aren't doable without pointers.