# Recent questions tagged isi2015-pcb-a

2 votes
2 answers
1
Consider all possible permutations of eight distinct elements $a, b, c, d, e, f, g, h$. In how many of them, will $d$ appear before $b$? Note that $d$ and $b$ may not necessarily be consecutive.
3 votes
1 answer
2
Prove that in any sequence of $105$ integers, there will always be a subsequence of consecutive elements in the sequence, whose sum is divisible by $99$.
2 votes
1 answer
3
Given an array $A$ of n positive integers, write a program segment / pseudo-code to print the histogram of $A$ using the hash character ($\#$). Your histogram should consist of $n$ vertical columns of $\#$ with the $i$-th vertical bar containing $A[i]$ number of $\#$'s. For example, if you consider ... should look like $\begin{array}{llll} \# \\ \# \\ \# & & \# & \\ \# & \# & \# & \# \end{array}$
To see more, click for the full list of questions or popular tags.