MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Method main

Java/Leetcode/Leetcode557.java:4–8  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

2
3public class Leetcode557 {
4 public static void main(String[] args) {
5 String s="Let's take LeetCode contest";
6 String answer=reverseWords(s);
7 System.out.println(answer);
8 }
9
10 public static String reverseWords(String s) {
11 int space=0;

Callers

nothing calls this directly

Calls 1

reverseWordsMethod · 0.95

Tested by

no test coverage detected