Comments (3)
Take the reference from here
public class Strstr {
public static void main(String[] args) {
// TODO Auto-generated method stub
String s = "geeksforgeeks";
String x = "for";
int n = x.length();
for(int i=0;i<s.length();i++) {
if(s.substring(i,i+n).equals(x))
System.out.println("Present");
}
}
}
from amazon-sde-preparation.
Hi @Nix-code, you can submit your pull request, I'll review and let you know
from amazon-sde-preparation.
You can find a git resource here: https://learngitbranching.js.org/
from amazon-sde-preparation.
Related Issues (20)
- 05 Hashing --> Quadratic Probing in Hashing
- 05 Hashing --> 11 Relative Sorting
- 06 String --> 01 Anagram of a String
- 06 String --> 02 Print all possible strings HOT 2
- 06 String --> 03 Convert to Roman number
- 06 String --> 04 Roman Number to Integer
- 06 String --> 06 Implement Atoi (convert string to integer)
- 06 String --> 07 Binary String
- Please add question related to Bit manipulations HOT 1
- 07 Linked List --> 1. Finding middle element in a linked list HOT 3
- 07 Linked List --> 2. Delete Middle of Linked List HOT 2
- 07 Linked List --> 3. Insert in a Sorted List HOT 2
- 07 Linked List --> 4. Reverse a Linked List HOT 5
- 07 Linked List --> 5. Rotate a Linked List HOT 2
- 08 Stack --> 01 Implement stack using array HOT 3
- 08 Stack --> 02 Implement Stack using Linked List
- 08 Stack --> 03 Implement two stacks in an array
- 08 Stack --> 04 Stack using two queues HOT 1
- 08 Stack --> 05 Special Stack
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 amazon-sde-preparation.