### SPOJ Problem - CPTTRN5 - Character Patterns (Act 5)

This is a
problem from SPOJ. We have to print a character pattern according to the input given.

We have input

33 1 24 4 12 5 2

We have input

33 1 24 4 12 5 2

- Get link
- Google+

We have input

33 1 24 4 12 5 2

- Get link
- Google+

- Get link
- Google+

In a **Priority Queue**, an element with high priority is served before an element with low priority. If two elements have the same priority, they are served according to their order in the queue.

While priority queues are often implemented with heaps, they are conceptually distinct from heaps. [Wikipedia]

While priority queues are often implemented with heaps, they are conceptually distinct from heaps. [Wikipedia]

- Get link
- Google+

Selection sort is an sorting algorithm. It has O(*n*2) time complexity. It has performance advantages over more complicated algorithms in certain situations, particularly where auxiliary memory is limited.

It divides the input list or the array in two parts:

1. Sorted array

2. Unsorted array

The minimum element from the unsorted array is picked and placed at the end of sorted array in each iteration.

It divides the input list or the array in two parts:

1. Sorted array

2. Unsorted array

The minimum element from the unsorted array is picked and placed at the end of sorted array in each iteration.

- Get link
- Google+

This is a problem from GeeksForGeeks. I have tried to write different code for the problem.

The problem says we have an array of elements . We have to find the smallest element which is repeated exactly*k* times.

The problem says we have an array of elements . We have to find the smallest element which is repeated exactly

The problem says we have an array of elements . We have to find the smallest element which is repeated exactly

It divides the input list or the array in two parts:

1. Sorted array

2. Unsorted array

The minimum element from the unsorted array is picked and placed at the end of sorted array in each iteration.

Computer programming is one of the fastest growing field. If you are a programmer then you can be hired by a top tech company or you can also work as a freelancer and earn decent amount. So the question arises, how to learn to code ? Initially it was very difficult to learn programming. As there was no internet and you have to relay on books or your colleagues’ code. Now you can find tons of material on the internet. You can learn any computer programming language you want. I am going to tell you some sites which you should visit regularly.