Giter Club home page Giter Club logo

Comments (6)

VikashPR avatar VikashPR commented on September 5, 2024

@dharsan19 thank you for rising issue
can you please attach Screenshot of the error ?

If you are getting time exceeded error please retry
Thank you :)

from ccc-hackerrank.

dharsan19 avatar dharsan19 commented on September 5, 2024

Screenshot 2022-11-02 at 3 16 29 PM

You can find the Screenshot of the Error above. The error occur in line 14 return Statement. Thank You

from ccc-hackerrank.

VikashPR avatar VikashPR commented on September 5, 2024

Screenshot 2022-11-02 at 3 39 13 PM

Screenshot 2022-11-02 at 3 16 29 PM

You can find the Screenshot of the Error above. The error occur in line 14 return Statement. Thank You

New C++ code is replaced dharsan, please use c++ code.

from ccc-hackerrank.

dharsan19 avatar dharsan19 commented on September 5, 2024

Thank You so much @VikashPR . I'm closing the issue now.

from ccc-hackerrank.

VikashPR avatar VikashPR commented on September 5, 2024

@dharsan19 please make use of python code for the question attached below

def swap(a,b):
    temp = a
    a = b 
    b = temp 
    return a,b
def partition (a, l, r):
    x = a[r]
    i = (l - 1)
    for j in range(l,r):
        if a[j] <= x:
            i = i + 1
            a[i],a[j] = swap(a[i], a[j])
    a[i + 1],a[r] = swap(a[i + 1],a[r])
    return i + 1
def Quicksort(a, l, r):
    if l < r:
        p = partition(a, l, r)
        print(p)
        for i in range(l,r+1):
            print(a[i],end=' ')
        print()
        Quicksort(a, l, p - 1)
        Quicksort(a, p + 1, r)
n = int(input())
a = list(map(int,input().split()))
Quicksort(a,0,n-1)

from ccc-hackerrank.

VikashPR avatar VikashPR commented on September 5, 2024

Thank you 🙂

from ccc-hackerrank.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.