MCPcopy Create free account
hub / github.com/Hsinha11/Leetcode-solutions / addSpaces

Method addSpaces

-68-Text_Justification/Code.java:5–8  ·  view source on GitHub ↗
(StringBuilder str, int count)

Source from the content-addressed store, hash-verified

3public class Main {
4 static class Solution {
5 void addSpaces(StringBuilder str, int count) {
6 for (int i = 0; i < count; i++)
7 str.append(' ');
8 }
9
10 public List<String> fullJustify(String[] words, int maxWidth) {
11 List<String> ans = new ArrayList<>();

Callers 1

fullJustifyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected