Open in app

Sign In

Write

Sign In

Syed Tousif Ahmed
Syed Tousif Ahmed

166 Followers

Home

About

May 9, 2020

Peak element Intuition

Your goal is to find the peak element in a given collection of elements.

Problem Solving

3 min read

Peak element Intuition
Peak element Intuition
Problem Solving

3 min read


Mar 24, 2020

Dynamic Programming: Climb to the top of the staircase with minimum cost

Frankly speaking, I would rather take the elevator, except when an interviewer forces you to take the stairs. It isn’t fair that you have to exert so much physical effort. On top of it, you have to remember that every step has an underlying penalty. Rules of engagement: Your task is to reach…

Dynamic Programming

3 min read

Dynamic Programming: Climb to the top of the staircase with minimum cost
Dynamic Programming: Climb to the top of the staircase with minimum cost
Dynamic Programming

3 min read


Sep 21, 2019

Falsy club of JavaScript: Cheat Sheet

You may know about the Avengers, the A-team, the Expendables, the Fantastic Five or the X-men. However, none of these superheroes can get past the “Falsy” club. They are the values that can prevent your condition from passing, no matter how mighty you are. A simple cheat sheet to help…

Java Script

1 min read

Falsy club of JavaScript: Cheat Sheet
Falsy club of JavaScript: Cheat Sheet
Java Script

1 min read


Jun 21, 2019

A little push to get you over the edge of your comfort zone

Sometimes what you need is a reality check, and I am here to give it to you. In the days of positive thinking, self-affirmations, and the law of attraction, we are not thinking about the bad things that can happen in our life. It is easy to get sucked in…

Self Improvement

3 min read

A little push to get you over the edge of your comfort zone
A little push to get you over the edge of your comfort zone
Self Improvement

3 min read


Aug 30, 2018

Dynamic Programming

Not an interview from the tech giants goes by without a question from Dynamic Programming. It is kind of a fancy name for memorization or storing values for future references. Would it take time for you to calculate the Fibonacci of 100? Would it take much time to calculate the…

Programming

2 min read

Dynamic Programming
Dynamic Programming
Programming

2 min read


Aug 30, 2018

Hashing and Hash maps

Say you wanted to code up an implementation of a dictionary of English words, then how would you approach this problem Approach 1: Using a LinkedList or an Array In order to check the definition or presence of a word, we would have to iterate over all the words sequentially, and the…

Programming

3 min read

Hashing and Hash maps
Hashing and Hash maps
Programming

3 min read


Aug 30, 2018

Modular exponentiation

Say you are required to code up: (a ^ b) % c Now why do “% c” after exponentiation, because a ^ b will be really large even for relatively small values of a, b and that is a problem because the data type of the language that we try…

Programming

2 min read

Modular exponentiation
Modular exponentiation
Programming

2 min read


Aug 30, 2018

Fibonacci Iterative vs. Recursive

Fibonacci series: fib(n) = fib(n-1) + fib(n-2) → for n > 1 fib(n) = 1→ for n = 0, 1 Fibonacci can be solved iteratively as well as recursively Recursive approach: The recursive approach seems to be much simpler and smaller, but there is a caveat, as it is calculating the Fibonacci…

Programming

3 min read

Fibonacci Iterative vs. Recursive
Fibonacci Iterative vs. Recursive
Programming

3 min read


Aug 29, 2018

Calculating the factorial of number recursively (Time and Space analysis)

The factorial of a number is defined as: f(n) = n * f(n-1) → for all n >0 f(0) = 1 → for n = 0 factorial(n): if n is 0 return 1 return n * factorial(n-1) C++ code: Time complexity If we look at the pseudo-code again, added below for convenience. …

Backtracking

3 min read

Calculating the factorial of number recursively (Time and Space analysis)
Calculating the factorial of number recursively (Time and Space analysis)
Backtracking

3 min read


Aug 29, 2018

How to find the index of the next and previous element of a circular array

If you have an array that is circular, i.e. the next element of the last element is the first element. To find the next and the previous index we are going to rely of the modulus operator. if N is the array element, curr is the current index in a…

Arrays

2 min read

How to find the index of the next and previous element of a circular array
How to find the index of the next and previous element of a circular array
Arrays

2 min read

Syed Tousif Ahmed

Syed Tousif Ahmed

166 Followers

Re-learning the fundamentals of programming.

Following
  • Swehahazari

    Swehahazari

  • Swapnil

    Swapnil

  • Yashasvi Girdhar

    Yashasvi Girdhar

  • Nisarg Shah

    Nisarg Shah

  • Kartheik Iyer

    Kartheik Iyer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech