Skip to content

Instantly share code, notes, and snippets.

View ZeeshanAdilButt's full-sized avatar
🏠
Working from home

Zeeshan Adil ZeeshanAdilButt

🏠
Working from home
View GitHub Profile
@ZeeshanAdilButt
ZeeshanAdilButt / gist:3dc49b03f182df4a4afb2c1219dc7043
Created July 14, 2023 19:05
DSA Roadmap to Leetcode 150+ Problems
Some considerations while starting with problem solving till 100+ Leetcode problems are solved:
- Start with the most-easiest problems.
- DO NOT try to solve each problem yourself, instead try to learn and understand how different problems are being solved
- Do not try to solve a problem for more than 1 hour initially to get fast and to achieve more in less time, for any problem taking more than 1 hour, put it in a backlog and solve it later
- Average time to solve a problem should be 3-45 minutes
- Do not try to solve a lot of problems from one topic, instead try to solve 5-10 problems per topic
- Do not try to jump into problem solving directly wihtout the necessary pre-requisites, For example
> If you are trying to solve a problem that requires HashSet/HashMap then make sure you have studied HashMap before solving the problem
> If you are trying to solve a problem that uses recursion, first make sure you learn recursion properly
@ZeeshanAdilButt
ZeeshanAdilButt / suggestion.md
Created September 25, 2021 22:12
a suggestion list to help you save from common errors/bug in your problems

String algorithms suggestions

  1. Make sure when looping, always start from 0 and always keep the condition of your loop less than the length of array for example: for(int i= 0; i< str.Lenght; i++){ } as we know that the arrays start at index 0, and the string array size is always greater than the last index of the element

  2. Take care of case insensitivity, read problems carefully and decide on the case insensitivity accordingly

  3. Always plan your solution according to the allowed characters, else you might end up replacing a character with a character leaving a bug

@ZeeshanAdilButt
ZeeshanAdilButt / gist.md
Last active September 25, 2021 22:15
Git gist for the programming problems we covered so far and the relevant learning material