sagar0-0 / dsa Goto Github PK
View Code? Open in Web Editor NEWBuilding the largest DSA solutions repository TOGETHER.
License: Creative Commons Attribution 4.0 International
Building the largest DSA solutions repository TOGETHER.
License: Creative Commons Attribution 4.0 International
Solution:
class Solution
{
public int NthTerm(int n)
{
// code here
long prev=2L;
long mod=1000000007;
for(int i=2;i<=n;i++){
long curr=(prev%mod * i%mod)+1;
prev=curr;
}
return (int)prev;
}
}
Hey @Sagar0-0 ,
I would like to contribute the solution for this problem in Java.
https://leetcode.com/problems/3sum/
Please assign this issue to me :)
Hey!
I would like to contribute the solution for this problem in Java.
https://leetcode.com/problems/maximal-square/
Please assign this issue to me
hey, sagar i would like to contribute to the project, since this project has solution on different languages i like to organize them by languages, so if you like the idea please reply to this issue and also share you though if you have any.
found some typos in the contribute.md file. wanted to fix them.
In your repo 2 sum and 3 sum have a solution but in cpp . if assigned me this and I'm contribute in java
I want to work on this question in java
Hey!
I would like to contribute the solution for this problem in Java.
https://leetcode.com/problems/the-skyline-problem/
Please assign this issue to me.
Hi I would like to work on this code and create a PR please assign this issue to me.
Thanks,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.