Text Justification
ฝัง
- เผยแพร่เมื่อ 22 ส.ค. 2024
- Please consume this content on nados.pepcoding.com for a richer experience. It is necessary to solve the questions while watching videos, nados.pepcoding.com enables that.
NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. Pepcoding has taken the initiative to provide counselling and learning resources to all curious, skillful and dedicated Indian coders. This video is part of the series to impart industry-level web development and programming skills in the community.
We also provide professional courses with live classes and placement opportunities.
For more free study resources and information about the courses, visit: www.pepcoding....
Have a look at our result: www.pepcoding....
Follow us on our TH-cam page: / pepcoding
Follow us on our FB page: / pepcoding
Follow us on Instagram: / pepcoding
Follow us on LinkedIn: / pepcoding-education
Follow us on Pinterest: / _created
Follow us on Twitter: home
.
.
.
Happy Programming !!! Pep it up
.
.
.
#pepcoding #code #coder #codinglife #programming #coding #java #freeresources #datastrucutres #pepcode #competitive #competitiveprogramming #softwareengineer #engineering #engineer
Thanks !!
Best ❤
nicee
Bhai explanation ho to aisi. Those compilation/runtime errors really helped understand the corner cases. Really appreciate it! Keep up the good work!
Really glad that you guys are getting helped by this. For much better experience a nd precisely arranged content visit on nados.io
Finally the best tutorial on this problem. Thanks man! I appreciate it.
ya dude
Explaination ho to essi❤
Its my first hard level qustion that i can understand in single view.
Great Explanation.
Thank you so much sir this was much awaited
Please make a video on the DP version of this problem too - word wrap problem
Fails for Test case with more than 1 word in last line.
Awesome explanation
nice explanation.
For better experience check this content on nados.pepcoding.com
c++ solution btado yar
I can share it you want now ?
#include
#include
using namespace std;
class Solution {
public:
vector fullJustify(vector& words, int maxWidth) {
vector ans;
int n = words.size();
int idx = 0;
while (idx < n) {
int lineStart = idx;
int lineLength = words[idx].size();
idx++;
// Keep adding words to the current line as long as they fit within maxWidth
while (idx < n && lineLength + 1 + words[idx].size()
10 mistakes in one code.
didn't understand properly😵💫
pay more attention