Comments (6)
@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.
from ccc-hackerrank.
![]()
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.
Thank You so much @VikashPR . I'm closing the issue now.
from ccc-hackerrank.
@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.
Thank you 🙂
from ccc-hackerrank.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccc-hackerrank.