-
👋 Hi, I’m @asmaamohamed1989
-
👀 I’m interested in Machine Learnig and Deep Learning
-
🌱 I’m currently learning Computer vision
-
💞️ I am a researcher with excellent skills in machine learning, deep learning, and Computer Vision tasks. I have experience with the programming languages Python and C++. True team player with strengths in adaptability and accuracy.
asmaamohamed1989 / betterstring Goto Github PK
View Code? Open in Web Editor NEWMy goal is to make a method called betterString that takes two Strings and a lambda that says whether the first of the two is “better”. The method should return that better String; i.e., if the function given by the lambda returns true, the betterString method should return the first String, otherwise betterString should return the second String. String string1 = ...; String string2 = ...; String longer = StringUtils.betterString(string1, string2, (s1, s2) -> s1.length() > s2.length()); String first = StringUtils.betterString(string1, string2, (s1, s2) -> true);