Sign Up

Join the Codozzle community now and ask questions, share knowledge, and connect with peers and industry leaders!

Have an account? Sign In

Have an account? Sign In Now

Sign In

Log in to keep sharpening those coding skills.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Codozzle

Codozzle Logo Codozzle Logo

Codozzle Navigation

  • Home
  • About Codozzle
  • About Nallas
  • Mentors
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Codozzle
  • About Nallas
  • Mentors

Let’s learn, grow, code, and thrive together.

Through this community, we aim to bring the brightest young minds of the next generation together to showcase their talent and to grow it. Ask questions, give insights, interact with your peers and established industry veterans. Codozzle will expand your mind, harness your knowledge and create opportunities. Let’s begin.

Create A New Account
  • Recent Questions
  • Most Answered
  • Answers
  • Most Visited
  • Most Voted
  • No Answers
  • Answers For You

Codozzle Latest Questions

Janani Sekar
Janani SekarCoder Seed
Asked: May 11, 2022 at 4:41pmIn: Java

What do you mean by Garbage collection in programming?

Read less
  • 11
  • 217
Vani
VaniCoder Tree
Asked: May 4, 2022 at 4:31pmIn: Java

What do you understand by an instance variable and a local variable?

Read less
  • 7
  • 66
Vani
VaniCoder Tree
Asked: May 4, 2022 at 4:35pmIn: Java

How is Java different from C++?

Read less
  • 6
  • 109
Vani
VaniCoder Tree
Asked: May 4, 2022 at 4:31pmIn: Java

Can java be said to be the complete object-oriented programming language?

Read less
  • 6
  • 50
Codozzle
CodozzleCoder Grove
Asked: May 12, 2022 at 3:32pmIn: General

Move all negative elements to end

Given an unsorted array arr [] of size N having both negative and positive integers. The task is placing all negative element at the end of array without changing the order of positive element and negative element.  Note: Solution language is your choice ...Read more

Given an unsorted array arr [] of size N having both negative and positive integers. The task is placing all negative element at the end of array without changing the order of positive element and negative element. 

Note: Solution language is your choice (Java, Python, Dotnet, etc…)

Example 1:

Input:

N = 8

Arr [] = {1, -1, 3, 2, -7, -5, 11, 6}

Output:

1  3  2  11  6 -1  -7  -5

Example 2:

Input:

N=8

Arr [] = {-5, 7, -3, -4, 9, 10, -1, 11}

Output:

7  9  10  11  -5  -3  -4  -1

 

Your Task:  
You don’t need to read input or print anything. Your task is to complete the function segregate Elements () which takes the array arr [] and its size N as inputs and store the answer in the array arr [] itself.

Constraints:
1 ≤ N ≤ 105
-105 ≤ arr [] ≤ 105

Read less
  • 4
  • 127
Ramjee
RamjeeCoder Tree
Asked: May 4, 2022 at 3:26pmIn: Quality Engineering

What is functional testing?

Read less
  • 2
  • 43
Vani
VaniCoder Tree
Asked: May 4, 2022 at 4:27pmIn: SQL

What is Database?

Read less
  • 2
  • 31
Load More Questions

Sidebar

Ask A Question

Recent News & Events

More News & Events

Stats

  • Popular
  • Answers
  • Janani Sekar

    What do you mean by Garbage collection in programming?

    • 11 Answers
  • Vani

    What do you understand by an instance variable and a ...

    • 7 Answers
  • Vani

    How is Java different from C++?

    • 6 Answers
  • Thomas Robinson
    Thomas Robinson added an answer In computer programming, an instance variable is a variable that… March 15, 2023 at 11:37am .
  • Thomas Robinson
    Thomas Robinson added an answer Garbage collection is an automatic memory management technique used in… March 15, 2023 at 11:37am .
  • Thomas Robinson
    Thomas Robinson added an answer Java is often considered a complete object-oriented programming language. It… March 15, 2023 at 11:37am .

Categories

Contest Dot Net Full Stack General Java Python Quality Engineering SQL

Explore

  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Mentors
  • Badges
  • How-To
  • Help/FAQ

Footer

About Codozzle

Codozzle is an exciting initiative of Nallas’ inclined towards the student community to motivate and help them to showcase their coding craftsmanship.

Quick Links

  • About Nallas
  • About Codozzle
  • Meet The Team
  • Badges

Help

  • How-To
  • Support
  • FAQs

Disclaimer

  • Terms of Use
  • Privacy Policy

Follow

© 2021 Codozzle - Nallas. All Rights Reserved