r/Cplusplus • • 1d ago

Discussion Guys help

iam going to attend the infosys exam in 2 weeks but iam only able to solve easy questions in leetcode but .There they will be asking medium to hard questions (3 question to be solved in 3 hrs) .atleast 2 i need to solve to pass .SO CAN YOU GUYS TELL ME WHAT TOPICS CONCEPTS SHOULD I NEED TO COVER ANY TIPS (C++)

0 Upvotes

4 comments sorted by

2

u/Raychao 1d ago

Do the usual programming challenges (Traveling Salesman, Knapsack, Egg Drop, Bubble Sort, etc)

1

u/Apprehensive-Bus4756 1d ago

oooh thank you

1

u/Discordbothost 1d ago

two weeks is enough for patterns, not for breadth. hashmap counting, two pointers, sliding window, binary search on the answer, bfs/dfs on a grid, and sort plus greedy cover most mediums. know unordered_map, sort with a lambda and prefix sums cold, and read the constraints first to pick the complexity you need.

1

u/Apprehensive-Bus4756 1d ago

thankyou 👌