Monday, June 16, 2025

Index of "Algorithms: Design and Analysis"

Toggle All Sections

From Codility

Course Link: By James Cutajar
  1. Binary Gap (Problem of Iterations)
  2. Arrays
  3. Time Complexity
  4. Counting Elements
  5. Prefix Sums
  6. Sorting
  7. Stacks and Queues
  8. Leader using Boyer-Moore Majority Vote Algo
  9. Maximum Slice Problem (using Kadane's Algo leveraging Dynamic Programming)
  10. Recursion (An Introduction)
  11. Substring in another string (Lesson in Algorithms)

From Hacker Earth

Track: Basic Programming > Input/Output > Basics of Input/Output
Track: Basic Programming > Implementation > Basics of Implementation
Super Easy
  1. Count the number of occurrences of k in S
  2. Zoo creatures - The smallest number of creatures so they can grab each other hands
  3. A Special Number - Sum of whose digits is divisible by 4
  4. Excursion - Calculate the number of rooms you need to book in the hotel
Easy
  1. Find Pairs - Ordered Pairs with condition on difference of element and index
  2. Find Pairs - Unordered pairs with Bitwise-XOR condition
  3. Rook Attack - Find the position where we should place the rook, where Rook has maximum impact
    Case of mistakes and hallucination by GPT 5.2
  4. Largest Number - Find out the largest possible number which can be built from N after removing exactly K digits
  5. ASME to SAME - Can you convert s into t
  6. Cannibal Characters - You want to minimize the length of the string s
  7. Lunch Boxes - Determine the maximum number of schools that can get lunch boxes
  8. Erasing an array - minimum number of operations to delete the entire array
  9. Minimum moves - reach the destination X, Y
Medium
  1. Perfect Cube - Find the count of subarrays whose product of elements is a perfect cube
  2. Minimum Operations - You need to make all the elements of the array equal to zero
  3. BanquetSplit - Problem on Trees and Bipartite Graphs
  4. Special matrix - Determine the sum of all the elements of the matrix
Hard
  1. Update the array - Count minimum number of operations required such that 2 given conditions are met (Hard)
    ChatGPT 5.2 could not solve this one

Track: Basic Programming > Operators > Basics of Operators
Super Easy
  1. Going to office - Minimize the Travel Cost
Hard
  1. Let Us Understand Computer - Around the Concept of Division
    ChatGPT 5.2 struggled to solve this. Only produced a partially accepted solution.

Track: Basic Programming > Bit Manipulation > Basics of Bit Manipulation
Super Easy
  1. Parity-Binary Sort
Easy
  1. XOR Pairs (Easy Problem on Bit Manipulation)
  2. Range Queries - print the number of integers in the given range which satisfy the above condition
  3. Hamming Sort - Sorting based on count of differing bits in the binary representations of two integers
Medium
  1. Costliest Data Plan (Medium Complexity Problem on Bit Manipulation)
    ChatGPT 5.3 did not give a very comprehensible / easy to understand answer. So, I had to take help from DeepSeek.
  2. Help Alice to find the Parity
    Let X be the number we get by xoring all numbers in the range [L,R] (including L and R). What will be the parity on X?


From ChatGPT


Concept-wise

Tags: << /span>

No comments:

Post a Comment