Coderbyte | Longest Word (Hindi) | How to build logic | Coding practice

preview_player
Показать описание
#coderbyte
#coding
#buildlogic

In this video, we will learn how to build logic to solve a problem.
Longest Word
Coderbyte

Keep Learning!
Рекомендации по теме
Комментарии
Автор

the best teacher, , , , am from indonesia studen

daniramdani
Автор

I was hunting internet for the solution for this but was not getting and suddenly saw your video and watch it full and literally got to understand the logic and this is the point where I am unable to build logic unable to understand and unable to solve the problem and write the code and fail in the interviews.

Thanks a lot for the help!

devop
Автор

Mam please make vedios on other problems also of coderbyte as u r having a great explanation ❤️

shalininegi
Автор

Code can be easier like this.

class Main {

public static String LongestWord(String str) {
String sn[] = str.split("[^a-z^A-Z]");
str= sn[0];
for(int i = 1; i < sn.length; i++) {
if(sn[i].length() > str.length()) {
str = sn[i];
}
}
return str;
}

public static void main (String[] args) {
// keep this function call here
Scanner s = new Scanner(System.in);

}

}

bilalnizamani
Автор

love you mam here i got to understand use of ^^^^ this sign in regular expressions

tejasnaik