insidcode
ProblemsDuelLeaderboardStats
Sign In
  1. Home
  2. Problems
  3. Count how many positive, negative, and zero elements are in an array.

Count how many positive, negative, and zero elements are in an array.

Difficulty: Easy

Phase: 6 · Mixed Logical Challenges

XP Reward: 10 XP

Topics: Mixed Logical Challenges, Easy

Supported Languages: Python, JavaScript, C, C++, Java

Problem Description

Given N followed by N integers, sort the array using Selection Sort and print. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).

Constraints

  • -10^9 <= N <= 10^9

Examples

Example 1

Input: 5 64 25 12 22 11

Output: 11 12 22 25 64

Explanation: Sample execution for input 5 64 25 12 22 11