Want to learn how to create NQEs or show off your scripting skills? Submit your solution to a Koan challenge today!
Recently active
Hello NQE Enthusiasts,Here is another Koan challenge. A group of friends went for a hike. They were Biff, Betty, Fred, Archy, Ethel, Edgar and Xavier. While they were hiking, two of the friends had to turn back early and not finish the hike with their friends. Before the group ended their hike they found another of their friends on the trail. That person joined them for the rest of the hike.Here is the group of friends that finished the hike together. Biff, Betty, Jorge, Fred, Ethel and Edgar.You could eyeball this and tell me the answer, but try using NQE to answer these questions.Which two friends had to turn back early?Which friend joined them in the middle of the hike?Try not to look at the replies until you have tried the challenge yourself. Hints:There is a structure within NQE that is similar to a “group”.You are looking for the remainder of one “group”.Contributions: Tyson Henrie
Hello NQE Enthusiasts,Here is another Koan challenge. Use pattern list to find the following using Arithmetic Operators from the NQE documentation. Target:Bonus = Tenure * 1000Annual Bonus = Bonus + 10000Stock Award = 25 * Tenure Union Donation = Bonus + Annual Bonus / 10Bonus Pool = 200000Bonus Allocation = Bonus Pool / Bonus + Annual Bonusfin = "finance";eng = "engineering";sales = "sales_team"; Input:persons = [{ Name: "Fred", Tenure: 1, Department: fin }, { Name: "Justine", Tenure: 2, Department: fin }, { Name: "Barney", Tenure: 3, Department: eng }, { Name: "Joey", Tenure: 4, Department: eng }, { Name: "Jack", totalsales: 20000, Tenure: 5, Department: sales }, { Name: "Mike", totalsales: 10000, Tenure: 6, Department: sales }, { Name: "Sam", totalsales: 30000, Tenure: 3, Department: sales }, { Name: "Harry", totalsales: 25000, Tenure: 2, Department: sales } ];Result:select distinct { Name: person.Name, Tenure: person.Tenure, Bonus: bonus, Annual_Bonus: annualbon
Hello NQE Enthusiasts, It has been two months, so time for another challenge. ChallengeThe task is to list Name, Age and Pets owned by all people under 20 years old, that own fish. Input:persons =[{ Name: "Tim", Age: 21, pets:["dog", "mouse", "fish"] }, { Name: "Mark", Age: 19, pets: ["dog", "fish", "cat"] }, { Name: "Nina", Age: 18, pets: ["snake", "lizard"] }, { Name: "Leroy", Age: 24, pets: ["fish"]}, { Name: "Sally", Age: 11, pets: ["dog", "fish"] }]; Example Result[Name, Age, Pet…….] Contributions: Unclaimed
Hello NQE Enthusiasts, I’ll try to post a new Koan Challenge every two months. ChallengeThis task is to take the following table and group people by age. Input [{ Name: "Bob", Age: 21 }, { Name: "Sam", Age: 19 }, { Name: "Jill", Age: 18 }, { Name: "Jim", Age: 21 }, { Name: "Sally", Age: 19 } ]; Example Result[{Age: 21, Count: 2}...] Hinthttps://docs.fwd.app/latest/application/reference/nqe/guides/comprehensions/#group-by-qualifier Contributions: Unclaimed
Hello NQE Enthusiasts, Here is another Koan challenge. The task is to take a list of years and calculate the centuriesInput:[1776, 2001, 1643, 1969];Result[{“Year”: 1776, “Century”: 18}...]Hints:Use string conversions like toString Create a toNumber functionTry not to look at the replies until you have tried the challenge yourself.
Hello NQE Enthusiasts, Several Months ago we posted a challenge to use NQE to solve the FizzBuzz challenge . We had so much fun we thought we would make it a reoccurring exercise to demonstrate the power of NQE and and have some more fun with it. You might be asking “What are koans”?"koans" refer to a series of small coding challenges designed to teach programming concepts, often in a particular language. The term originates from Zen Buddhism, where a "koan" is a paradoxical question or statement used to provoke deep thought and insight.We are looking forward to see how everyone solves these challenges so tune in and give it a try, there are no wrong answers :).ChallengeYour task is to calculate the age of a list of people not in human years but in “dog years”. Assuming that one human year is equivalent to seven dog years. Calculate for the following input.Input people = [ { Name: "Tom", Age: 25 }, { Name: "Jerry", Age: 30 }, { Name: "Spike", Age: 15 } ];Expected Output: [ {
I like to give my team little challenges to exercise their NQE skills. Why don’t you play along this weekend and let’s see all the different ways you can accomplish this goal. Tune in to see some creative ways to solve the FizzBuzz challenge with NQEFizzBuzzThe task is to write a program that prints the numbers from 1 to 100, but with a twist:For multiples of three, print "Fizz" instead of the number. For multiples of five, print "Buzz" instead of the number. For numbers which are multiples of both three and five, print "FizzBuzz" instead of the number.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.