Coder Baba
2.41K subscribers
1.01K photos
23 videos
722 files
723 links
Everything about programming for beginners.
1 and only official telegram channel of CODERBABA India.

Content:
.NET Developer,
Programming (ASP. NET, VB. NET, C#, SQL Server),
& Projects
follow me https://linktr.ee/coderbaba
*Programming
*Coding
*Note
Download Telegram
66. Generate random input from an array according to given probabilities
67. Find pair in an array having minimum absolute sum
68. Find Index of Maximum Occurring Element with Equal Probability
69. Check if an Array is Formed by Consecutive Integers
70. Find two non-overlapping pairs having same sum in an array
71. Add elements of two arrays into a new array
72. Find Minimum Product among all Combinations of Triplets in an Array
73. Replace every element of an array with the least greater element on its right
74. Find all odd occurring elements in an array having limited range of elements
75. Count the distinct absolute values in the sorted array
76. Print all combinations of positive integers in increasing order that sum to a given number
77. Find all distinct combinations of given length — II
78. Find subarrays with given sum in an array
79. Find the surpasser count for each element of an array
80. Find maximum length sequence of continuous ones (Using Sliding Window)
81. Find maximum length sequence of continuous ones
82. Find index that divides an array into two non-empty subarrays of equal sum
83. Calculate frequency of all elements present in an array of specified range
84. Rearrange the array such that it contains positive and negative numbers at alternate positions
85. Find a sorted triplet in the given array
86. Shuffle an array according to the given order of elements
87. Count number of strictly increasing sub-arrays in an array
88. Find duplicates within given range k in an array
89. Longest Alternating Subarray Problem
90. Find minimum range with at-least one element from each of the given arrays
91. Find longest subsequence formed by consecutive integers
92. Find all elements in an array that are greater than all elements present to their right
93. Find missing number in array without using extra space
94. Determine index of an element in given array which satisfies given constraints
95. Find minimum moves required for converting a given array to an array of zeroes
96. Left rotate an array
97. Right rotate an array k times
98. Find maximum profit earned from at most two stock transactions
99. Find Frequency of each element in a sorted array containing duplicates
100. Find Minimum and Maximum element in an array using minimum comparisons
101. Difference between Subarray, Subsequence and Subset
102. Find odd occurring element in an array in single traversal
103. Find odd occurring element in logarithmic time
104. Find two odd occurring elements in an array without using any extra space
105. Check if given array represents min heap or not
106. Find K’th smallest element in an array
107. Find K’th largest element in an array
108. Sort a K-Sorted Array
109. Merge M sorted lists of variable length
110. Find smallest range with at-least one element from each of the given lists
111. Merge M sorted lists each containing N elements
112. Find maximum sum of subsequence with no adjacent elements
113. Find ways to calculate a target from elements of specified array
114. Sort elements by their frequency and Index
115. Sort an array based on order defined by another array
116. Inversion Count of an array
117. Segregate positive and negative integers in linear time
118. Find number of rotations in a circularly sorted array
119. Search an element in a circular sorted array
120. Find first or last occurrence of a given number in a sorted array
121. Count occurrences of a number in a sorted array with duplicates
122. Find smallest missing element from a sorted array
123. Find Floor and Ceil of a number in a sorted array
124. Search in a nearly sorted array in logarithmic time
125. Find number of 1’s in a sorted binary array
126. Find Missing Term in a Sequence in Logarithmic time
127. Find missing number and duplicate elements in an array
128. Find the peak element in an array
129. Find Floor and Ceil of a number in a sorted array (Recursive solution)
130. Print all distinct subsets of a given set
131. Find two duplicate elements in a limited range array (using XOR)
132. Combinations of words formed by replacing given numbers with corresponding alphabets
133. 0–1 Knapsack Problem
134. Subset sum Problem
135. Partition Problem
136. 3-Partition Problem
137. 3-partition problem extended | Print all partitions
138. K-Partition Problem | Printing all Partitions
139. Minimum Sum Partition Problem
140. Rod Cutting
141. Longest Alternating Subsequence Problem
142. Coin change-making problem (unlimited supply of coins)
143. Coin Change Problem — Find total number of ways to get the denomination of coins
144. Find maximum profit earned from at most K stock transactions
-: Data Structure | Algorithm Question:-

Backtracking

1. Print all possible solutions to N Queens Problem
2. Print all Possible Knight’s Tours in a chessboard
3. Find Shortest Path in Maze
4. Find Longest Possible Route in a Matrix
5. Find path from source to destination in a matrix that satisfies given constraints
6. Find total number of unique paths in a maze from source to destination
7. Print All Hamiltonian Path present in a graph
8. Print all k-colorable configurations of the graph (Vertex coloring of graph)
9. Find all Permutations of a given string
10. All combinations of elements satisfying given constraints
11. Find all binary strings that can be formed from given wildcard pattern
12. K-Partition Problem | Printing all Partitions
13. Magnet Puzzle
14. Find ways to calculate a target from elements of specified array
15. Find minimum number possible by doing at-most K swaps
16. Determine if a pattern matches with a string or not
17. Generate list of possible words from a character matrix
18. Find the path between given vertices in a directed graph
19. Find all Possible Topological Orderings of a DAG
20. Print all shortest routes in a rectangular grid
python_cheat_sheet.pdf
401.1 KB
The Zen of Python
Python Cheatsheet for beginner🚀🚀
Linux Commands.pdf
13.9 MB
The Linux Commands handbook [A to Z] Commands🧜‍♂️🧜‍♂️
🚀ASP. NET is a popular framework for building web applications and websites using the .NET framework. Here are some of the key features of ASP. NET:

Server-side programming: ASP. NET is a server-side framework, which means that the code runs on the server rather than on the client's computer. This allows for more control over the application and enables developers to build more complex and powerful applications.

Model-View-Controller (MVC) architecture: ASP. NET uses the MVC architecture, which separates the application into three parts: the model (which represents the data), the view (which represents the user interface), and the controller (which handles user input and updates the model and view). This separation of concerns makes it easier to develop and maintain complex applications.

Integration with the .NET framework: ASP. NET integrates with the .NET framework, which provides a rich set of libraries and tools for building web applications. This makes it easier to develop and maintain applications, and also allows for easy integration with other .NET applications.

Cross-platform development: ASP. NET Core is a cross-platform version of ASP. NET that can run on Windows, Linux, and macOS. This allows developers to build web applications that can run on any operating system, which can save time and resources.

Scalability: ASP. NET is designed to be scalable, which means that it can handle high levels of traffic and large amounts of data. This makes it suitable for building applications that need to handle a large number of users or that need to process large amounts of data.

Security: ASP. NET includes a number of security features, such as authentication and authorization, that help protect applications from malicious attacks. It also provides tools for encrypting data, validating user input, and preventing cross-site scripting (XSS) attacks.

Overall, ASP. NET is a powerful and flexible framework for building web applications and websites. Its many features make it suitable for a wide range of applications, from small websites to large enterprise applications.
👉🏻CODERBABA is a YouTube channel dedicated to providing professional and informative programming videos for learners of all levels. Here are 5 features that make this channel stand out:

🕸Wide Range of Programming Languages Covered
CODERBABA covers a variety of programming languages, including C, VB.NET, JAVA, Asp.Net, and C#. Whether you're just starting out or looking to expand your knowledge, you're sure to find helpful programming tutorials that cater to your needs.

🕸High-Quality Video Content
All of the videos on CODERBABA are of high quality and provide clear explanations and demonstrations. The production value is excellent, and the videos are easy to follow along with, making them accessible to a wide range of viewers.

🕸New Videos Guaranteed Twice a Week
CODERBABA guarantees to post new videos twice a week on Saturdays and Mondays. This means that learners can expect fresh content on a regular basis, and they can plan their learning schedule accordingly.

🕸Engaging and Entertaining Content
In addition to providing helpful programming tutorials, CODERBABA aims to entertain its viewers as well. The channel's videos are engaging and enjoyable to watch, which makes learning to code more fun and accessible for everyone.

🕸Free Learning Resource
Perhaps the most significant feature of the CODERBABA YouTube channel is that all of its content is completely free. Learners can access informative and engaging programming videos without having to pay a dime, which is an invaluable resource for anyone looking to improve their programming skills.

Overall, CODERBABA is an excellent YouTube channel for anyone looking to learn programming or expand their coding knowledge. Its wide range of programming languages, high-quality video content, guaranteed new videos twice a week, engaging and entertaining content, and free learning resource make it a standout channel in the programming community.
👉🏻Repeater control V/S GridView which on e is better and why?

The choice between using a Repeater control or a GridView control in ASP.NET depends on the specific requirements of the project and the features needed for the presentation of data. Both controls are used to display data from a data source, but they have some key differences in terms of functionality and flexibility.

A GridView control is a more advanced control that provides many features out of the box, such as sorting, filtering, paging, and editing of data. It is a highly customizable control that allows developers to easily bind data from a variety of data sources, including databases, XML, and custom collections. With GridView, developers can easily customize the appearance of data by using templates for columns, rows, and headers.

On the other hand, a Repeater control is a more basic control that provides a greater degree of flexibility in terms of layout and styling. The Repeater control does not have built-in support for features such as sorting, filtering, or editing of data. Instead, it is designed to display data in a highly customizable way, allowing developers to fully control the HTML markup and layout of the rendered data. With a Repeater control, developers can easily customize the appearance of data by using templates for item layout, header, and footer.

So, if the project requires advanced features such as sorting, filtering, and editing of data, then GridView control would be the better option. However, if the project requires a greater degree of flexibility in terms of layout and styling, or if the data being displayed is relatively simple, then Repeater control would be a better choice.

In conclusion, both controls have their own unique strengths and weaknesses, and the choice between them should be based on the specific requirements of the project.
School Database Query:
————————————-
CREATE DATABASE SchoolManagementSystem;
USE SchoolManagementSystem;

CREATE TABLE Grades (
GradeID INT PRIMARY KEY IDENTITY(1,1),
GradeName VARCHAR(50) NOT NULL
);

CREATE TABLE Subjects (
SubjectID INT PRIMARY KEY IDENTITY(1,1),
SubjectName VARCHAR(50) NOT NULL
);

CREATE TABLE Classes (
ClassID INT PRIMARY KEY IDENTITY(1,1),
ClassName VARCHAR(50) NOT NULL,
GradeID INT NOT NULL,
FOREIGN KEY (GradeID) REFERENCES Grades(GradeID)
);

CREATE TABLE Teachers (
TeacherID INT PRIMARY KEY IDENTITY(1,1),
TeacherName VARCHAR(50) NOT NULL,
Email VARCHAR(100) NOT NULL,
Phone VARCHAR(20) NOT NULL,
Address VARCHAR(100) NOT NULL
);

CREATE TABLE Students (
StudentID INT PRIMARY KEY IDENTITY(1,1),
StudentName VARCHAR(50) NOT NULL,
DateOfBirth DATE NOT NULL,
Gender VARCHAR(10) NOT NULL,
Address VARCHAR(100) NOT NULL,
Phone VARCHAR(20) NOT NULL,
Email VARCHAR(50) NOT NULL,
DateEnrolled DATE NOT NULL
);

CREATE TABLE ClassTeachers (
ClassID INT NOT NULL,
TeacherID INT NOT NULL,
PRIMARY KEY (ClassID, TeacherID),
FOREIGN KEY (ClassID) REFERENCES Classes(ClassID),
FOREIGN KEY (TeacherID) REFERENCES Teachers(TeacherID)
);

CREATE TABLE Enrollments (
EnrollmentID INT PRIMARY KEY IDENTITY(1,1),
StudentID INT NOT NULL,
ClassID INT NOT NULL,
EnrollmentDate DATE NOT NULL,
FOREIGN KEY (StudentID) REFERENCES Students(StudentID),
FOREIGN KEY (ClassID) REFERENCES Classes(ClassID)
);

CREATE TABLE Assignments (
AssignmentID INT PRIMARY KEY IDENTITY(1,1),
AssignmentName VARCHAR(50) NOT NULL,
SubjectID INT NOT NULL,
ClassID INT NOT NULL,
TeacherID INT NOT NULL,
DueDate DATE NOT NULL,
FOREIGN KEY (SubjectID) REFERENCES Subjects(SubjectID),
FOREIGN KEY (ClassID) REFERENCES Classes(ClassID),
FOREIGN KEY (TeacherID) REFERENCES Teachers(TeacherID)
);

CREATE TABLE GradesSubjects (
GradeID INT NOT NULL,
SubjectID INT NOT NULL,
PRIMARY KEY (GradeID, SubjectID),
FOREIGN KEY (GradeID) REFERENCES Grades(GradeID),
FOREIGN KEY (SubjectID) REFERENCES Subjects(SubjectID)
);
𝐒𝐐𝐋_𝐇𝐚𝐧𝐝𝐰𝐫𝐢𝐭𝐭𝐞𝐧_𝐍𝐨𝐭𝐞𝐬.pdf
1.1 MB
🌱SQL Handwritten Notes
Follow @coder_baba #coderbaba #SQL
SQL is the one of the important topic of any technical interview.
Make sure you are well prepared for it.

I am sharing this simple and scrips notes on SQL, hope it helps you understand SQL in simple way.

Do not forget to follow @coder_baba for more such awesome technical notes.

credit : Unknown
LINQ in .NET
👇👇👇💪superb short video ye nahi dekha to kya dekha💪👇👇👇
https://youtube.com/shorts/O8pL-e7eODw?feature=share
Microsoft Giving Free Machine Learning Course: Enroll Now
Name: Foundations of data science for machine learning
Duration: 12 Hours 45 mins
Number of Modules: 14
Difficulty level: Beginner
Offered By: Microsoft
Rating: 4.8/5

Click here to enroll now
Link: https://bit.ly/3Av8SW7