Skip to content

DevankS5/technojam-task-DSA-CP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

technojam-task-DSA-CP

Hi my name is Devank Srivastava. I am from first year B.tech CS AI section 23 and I started my coding journey in August 2024. As of now, I know the basics of C++ and a little bit of Frontend. Here is my solution for techno jam 2024 problems for DSA

Problem 1 View Index

Screenshot 2024-11-19 014854

In this Pascal triangle problem,

  1. I used the mathematical formula that uses the value of the previous value [c = c * (i - j ) / j ]
  2. The problem here was that the formula can be only derived if you have some knowledge of PnC.

Problem 2 View Index

Screenshot 2024-11-19 015949

In this Stairs problem,

  1. The problem is very similar to the fibonacci series problem i.e the no is sum of previous 2 terms and so on. You only have to jump either 1 or 2 steps and calculate the no of steps can be possible to achieve so.
  2. The difficult part of the question for me was to understand and link the pattern to the fibonacci series.

Problem 3 View Index

Screenshot 2024-11-19 034901

In this range_bitwise problem,

  1. I initialized the starting index in starting variable but kept updating the ending index in ending variable till the end. The shift variable takes of the right shift performed and counts it.
  2. The major problem I faced here was that I learned >>= operation which is to shift right by just 1 bits and <<= for left 1 bit. After learning that operation the question became easier.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages