Docsity

This book is for DSA, Study Guides, Projects, Research of Data Structures and Algorithms

Toggle sidebar
bg1
B.Tech CSE (all Specializations) Semester III/BCA,B.SC III
Semester
Department
School of Engineering Technology
Course Name: Competitive Coding-I
Course
Code
L-T-P
Credits
2-0-0
NIL
Type of Course:
Audit Course
Prerequisite(s), if any: Fundamentals of programming
Course Objective:
To enhance students' problem-solving abilities in competitive coding by providing in-depth knowledge
of core data structures, algorithms, and efficient coding techniques. This course aims to prepare
students for technical assessments and coding interviews, building a strong foundation for tackling
real-world coding challenges.
Course Outcomes:
● Apply fundamental and advanced coding techniques to solve problems involving arrays,
strings, recursion, matrices, and linked lists.
● Analyze and implement efficient data structure operations, including stacks, queues, and their
real-world applications in competitive programming.
● Evaluate and optimize problem-solving approaches through comprehensive understanding and
revision of key concepts from previous sessions.
SESSION WISE DETAILS
Session: 1
Introduction to LeetCode and Codechef coding platforms, Overview of competitive programming,
setting up environment, approach to problem solving
Session: 2
No. of hours: 2
Content Summary: find factorial, find power of a number, (printing increasing, decreasing and
Decreasing Increasing), count digit, sum of array using recursion
Reverse String, Different Ways to Add Parentheses, Expression Add Operators
Session: 3
No. of hours: 2
pf3
pf4
pf5

Partial preview of the text

Download This book is for DSA and more Study Guides, Projects, Research Data Structures and Algorithms in PDF only on Docsity!

B.Tech CSE (all Specializations) Semester III/BCA,B.SC III

Semester

Department School of Engineering Technology Course Name: Competitive Coding-I Course Code L-T-P Credits 2 - 0 - 0 NIL Type of Course: Audit Course Prerequisite(s), if any: Fundamentals of programming Course Objective: To enhance students' problem-solving abilities in competitive coding by providing in-depth knowledge of core data structures, algorithms, and efficient coding techniques. This course aims to prepare students for technical assessments and coding interviews, building a strong foundation for tackling real-world coding challenges. Course Outcomes: ● Apply fundamental and advanced coding techniques to solve problems involving arrays, strings, recursion, matrices, and linked lists. ● Analyze and implement efficient data structure operations, including stacks, queues, and their real-world applications in competitive programming. ● Evaluate and optimize problem-solving approaches through comprehensive understanding and revision of key concepts from previous sessions. SESSION WISE DETAILS Session: 1 Introduction to problem solving Introduction to LeetCode and Codechef coding platforms, Overview of competitive programming, setting up environment, approach to problem solving Session: 2 Recursion No. of hours: 2 Content Summary: find factorial, find power of a number, (printing increasing, decreasing and Decreasing Increasing), count digit, sum of array using recursion

Reverse String, Different Ways to Add Parentheses, Expression Add Operators

Session: 3 Recursion II No. of hours: 2

Content Summary: find pivot index, remove duplicates, fibonacci number, tower of hanoi with recursion tree presentation,

Pascal's Triangle II, Pow(x, n), Letter Tile Possibilities, K-th Symbol in Grammar

Session: 4 Array I No. of hours: 2 Content Summary: maximum subarray sum (Kadane’s Algorithm), maximum product subarray(based on Kandane’s), majority Element (moore’s voting algorithm)

Maximum Average Subarray I, Maximum Sum Circular Subarray, Maximum Product of Three Numbers,

Partition Array According to Given Pivot, Maximum Erasure Value, Longest Turbulent Subarray

Session: 5 Array II No. of hours: 2 Content Summary:Two sum , count elements with maximum frequency , left/right rotate an array by k positions.

Find Lucky Integer in an Array, Shuffle the Array, Can Place Flowers, Find All Numbers Disappeared in an

Array, First Missing Positive, Find Pivot Index

Session: 6 Array III No. of hours: 2 Content Summary: Sort 0, 1 and 2(Dutch flag algorithm), container with most water, trapping rain water

Height Checker, Squares of a Sorted Array, Boats to Save People, 3Sum Closest, Candy, Jump Game

Session: 7 Binary Search-I No. of hours: 2 Content Summary: lower bound , upper bound, koko eating bananas, first bad version

Binary Search, Search Insert Position, Arranging Coins, Find Smallest Letter Greater Than Target, Find

Peak Element, Find First and Last Position of Element in Sorted Array

Session: 8 Binary Search-II Content Summary: Search in rotated sorted array, Search in rotated sorted array II, aggressive cows

Search in Rotated Sorted Array, Find Minimum in Rotated Sorted Array, Peak Index in a Mountain Array,

Find in Mountain Array, Magnetic Force Between Two Balls, Capacity To Ship Packages Within D Days,

Session: 9 Matrix Problems I No. of hours: 2 Content Summary: Spiral traversal, searching elements in a matrix, Printing elements in sorted order.

Session: 16 Stack Implementation No. of hours: 2 Content Summary: Stack Implementation using Array, Next Greater Element , PSE

Implement Stack using Queues, Remove All Adjacent Duplicates In String, Crawler Log Folder, Final

Prices With a Special Discount in a Shop, Next Greater Node In Linked List, Remove Duplicate Letters

Session: 17 Stack I No. of hours: 2 Content Summary: Smaller element on left, valid parentheses, Evaluate postfix expression

Minimum Remove to Make Valid Parentheses, Remove Outermost Parentheses, Baseball Game, Validate

Stack Sequences, Simplify Path, Exclusive Time of Functions

Session: 18 Stack II No. of hours: 2 Content Summary: min stack, asteroid collision, stock span problem

Design Browser History, Maximum Frequency Stack, Number of Visible People in a Queue, Sum of

Subarray Minimums, Shortest Unsorted Continuous Subarray, Online Stock Span

Session : 19 Queue Introduction. No. of hours: 2 Content Summary: Queue implementation using array, Implement circular queue, queue using stack , stack using queue

Design Circular Deque, Number of Recent Calls, Dota2 Senate, Time Needed to Buy Tickets, Reveal

Cards In Increasing Order, Design Front Middle Back Queue

Session :20 Summary Content Summary: Revising the completed topics and company specific problems on given topics. Evaluation Criteria Criteria Internal (50 marks) After 2 weeks Coding Test No. of tests: 6 Marks per test: 5 Total marks: 30 Mid Term Coding Test 20 Marks

External ( marks) End Term Paper