Grafi
Grafi
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
God bless you and your soul
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
No description
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
whole this time
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
I do not belive this
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
nahh
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
Yo, I have figure it out, if multiple groups have the same length they should maintain their current order which is alphabetical, the problem is i have got no cluq how to implemnt it using only System.Linq
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
Alright thanks
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
Okey I have changed the test case lets see if it goes thru
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
which satisfies the parameters
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
Nahh, there has to be a solution
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
Then what's the issue
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
But wait it doesn't make sense, the task states that the lists are ordered in ascending order which they are clearly are not
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
no even if I change this one the next one is even worse
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
cs return stringList
.GroupBy(s => s.Length)
.Select(g => string.Concat(g.OrderBy(s => s).Select(s => char.ToUpper(s.Last()))))
.OrderByDescending(s => s.Length);
cs return stringList
.GroupBy(s => s.Length)
.Select(g => string.Concat(g.OrderBy(s => s).Select(s => char.ToUpper(s.Last()))))
.OrderByDescending(s => s.Length);
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
So in place of T i have an M, I mean if the first case worked why not here
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
I mean it's strange because i have to take last character, but now it expects T but returns M
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
4th one
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
yield return (
stringList: new[] { "bc", "sd", "ac", "sdf", "ewr" },
expected: new[] { "CCD", "RF" });
yield return (
stringList: new[] { "du", "the", "ace", "run", "cut" },
expected: new[] { "ETNE", "U" });
yield return (
stringList: new[] { "ab", "attribute", "cheese", "swim", "cut" },
expected: new[] { "B", "E", "E", "T", "M" });
yield return (
stringList: new[] { "star", "galaxy", "quasar", "planet", "asteroid", "satellite", "comet" },
expected: new[] { "YTR", "D", "T", "E", "R" })
yield return (
stringList: new[] { "bc", "sd", "ac", "sdf", "ewr" },
expected: new[] { "CCD", "RF" });
yield return (
stringList: new[] { "du", "the", "ace", "run", "cut" },
expected: new[] { "ETNE", "U" });
yield return (
stringList: new[] { "ab", "attribute", "cheese", "swim", "cut" },
expected: new[] { "B", "E", "E", "T", "M" });
yield return (
stringList: new[] { "star", "galaxy", "quasar", "planet", "asteroid", "satellite", "comet" },
expected: new[] { "YTR", "D", "T", "E", "R" })
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
cs // yield return ( stringList: new[] { "bc", "sd", "ac", "sdf", "ewr" }, expected: new[] { "CCD", "RF" }); yield return ( stringList: new[] { "du", "the", "ace", "run", "cut" }, expected: new[] { "ETNE", "U" }); yield return ( stringList: new[] { "ab", "attribute", "cheese", "swim", "cut" }, expected: new[] { "B", "E", "E", "T", "M" }); yield return ( stringList: new[] { "star", "galaxy", "quasar", "planet", "asteroid", "satellite", "comet" }, expected: new[] { "YTR", "D", "T", "E", "R" });
73 replies
CC#
Created by Grafi on 6/7/2024 in #help
LINQ
yield return ( stringList: new[] { "bc", "sd", "ac", "sdf", "ewr" }, expected: new[] { "CCD", "RF" }); yield return ( stringList: new[] { "du", "the", "ace", "run", "cut" }, expected: new[] { "ETNE", "U" }); yield return ( stringList: new[] { "ab", "attribute", "cheese", "swim", "cut" }, expected: new[] { "B", "E", "E", "T", "M" }); yield return ( stringList: new[] { "star", "galaxy", "quasar", "planet", "asteroid", "satellite", "comet" }, expected: new[] { "YTR", "D", "T", "E", "R" });
73 replies