Posts

Variables in C++ Programing Language

 Variables in C++ Programing Language  Definition: It is a name of storage space that is used to store data. Its value is changeable. It always contains the last value stored in it. It is always declared with the data type. Types of Variables in  C++: In C++ there are 5 types of variables. let's discuss each variable with an example. Local Variables Global Variable Static Variables Automatic Variables External Variables. Rules to declare a variable: The first letter of the variable should be the alphabet or underscore (_). The first letter of the variable should not be a digit. After the first character it may be a combination of alphabets and digits. Blank spaces are not allowed in a variable name. Variable name should not be a Keyword. Variable Initialization int rollno=201; float narks=85.25; char grade='A'; Here 201 is the value of rollno,85.6 is the value of marks and A is the value of grade. The character value is always written in single quotes.  Oth...

All Algorithms that you must learn :-

All Algorithms that you must learn: - Algorithms is one best part to solve coding problem in low time complexity and take low space in memory. Following algorithms is most important and atleast  one or two questions ask in MNC's interview and coding round.  This algorithm can write in all different type of programming language like C, C++, JAVA, PYTHON, R, etc. All are most important and star in Algorithms solve problem in low time. Arrays: Kadane's Algorithm Floy's Cyle Detection KMP Algorithms Quick Select Algorithm Boyer Algorithm  Searching : Linear Search Jump Search Binary Search DFS (Depth-First Search) BFS (Breadth-First Search) Sorting: Bubble Sort Insertion Sort Heap Sot Merge Sort Selection Sort Quick Sort Counting Sort General Algorithm: Euclid's Algorithm Union Find Algorithm Huffman Algorithm Graphs: Kruskal Algorithm Dijkstra's Bellman-Fort Topological Sort Floyd Warshall Flood Fill Lee

What is Programming.

Image
  What is Programming. Put simply, programming is giving a set of instructions to a computer to execute. If you’ve ever cooked using a recipe before, you can think of yourself as the computer and the recipe’s author as a programmer. The recipe author provides you with a set of instructions which you read and then follow. The more complex the instructions, the more complex the result! Programming  is an exercise or practice that boost our logical thinking and improves a problem-solving skill. It teaches us how to accomplish a task with the help of a computer program or software. Therefore, in simple terms,  programming  is a task to implement a solution to a problem in the form of computer language. In this section, we will discuss the word  programming, programming languages, its type, advantages, disadvantages,  and their uses.                                ...