In C, given a string variable str, which of the following two should be preferred to print it to stdout?
1) puts(str);
2) printf(str);
puts() can be preferre...
Share
This article is aimed at giving a C++ implementation for pattern printing.
Simple pyramid pattern
// C++ code to demonstrate star pattern
#include <iostr...
Share
The media query is used to hide an element when printing a web pages. Use @media print query and set the visibility hidden to that element which need to hide at print...
Share
This article is aimed at giving a PHP implementation for pattern printing.
Simple Pyramid Pattern
<?php
// Php code to demonstrate
// star pattern

...
Share
Patterns can be printed in python using simple for loops. First outer loop is used to handle number of rows and Inner nested loop is used to handle the number of col...
Share
Prerequisite : Object Oriented Programming in Python | Set 1 (Class, Object and Members)
 
Data hiding
In Python, we use double underscore (Or __) before the at...
Share
The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, following is a solution for 4 Que...
Share
Given weights and values of n items, put these items in a knapsack of capacity W to get the maximum total value in the knapsack. In other words, given two integer arr...
Share
The Longest Bitonic Subsequence problem is to find the longest subsequence of a given sequence such that it is first increasing and then decreasing. A sequence, sorte...
Share
The Maximum Sum Increasing Subsequence problem is to find the maximum sum subsequence of a given sequence such that all elements of the subsequence are sorted in incr...
Share