Q/A Section
Ask questions and get answers from the community.
<r><p>Given a string of words, you need to find the highest scoring word.</p><p>Each letter of a word scores points according to its position in the alphabet: a = 1, b = 2, c = 3 etc.</p><p>For example, the score of abad is 8 (1 + 2 + 1 + 4).</p><p>You need to return the highest scoring word as a string.</p><p>If two words score the same, return the word that appears earliest in the original string.</p><p>All letters will be lowercase and all inputs will be valid.</p><p><img src="https://i.imgur.com/abfdsLJ.png" alt="Image preview" class="markdown-image"></p></r>
by anthonyo
You are given an array (which will have a length of at least 3, but could be very large) containing integers. The array is either entirely comprised of odd integers or entirely comprised of even integers except for a single integer N. Write a method that takes the array as an argument and returns this "outlier" N.Examples[2, 4, 0, 100, 4, 11, 2602, 36] --> 11 (the only odd number)[160, 3, 1719, 19, 11, 13, -21] --> 160 (the only even number)
by anthonyo
Write a method that takes an array of consecutive (increasing) letters as input and that returns the missing letter in the array.You will always get an valid array. And it will be always exactly one letter be missing. The length of the array will always be at least 2.The array will always contain letters in only one case.Example:['a','b','c','d','f'] -> 'e'['O','Q','R','S'] -> 'P'(Use the English alphabet with 26 letters!)
by anthonyo
What does`box-sizing: border-box` do?a. Padding and border are included in the element's total width and heightb. Only padding is included in the element's total width and heightc. Only border is included in the element's total width and heightd. Margin, padding, and border are included in the element's total width and height
by luhan
Jaden Smith, the son of Will Smith, is the star of films such as The Karate Kid (2010) and After Earth (2013). Jaden is also known for **[some of his philosophy that he delivers via Twitter](https://twitter.com/jaden)**. When writing on Twitter, he is known for almost always capitalizing every word. For simplicity, you'll have to capitalize each word, check out how contractions are expected to be in the example below.Your task is to convert strings to how they would be written by Jaden Smith. The strings are actual quotes from Jaden Smith, but they are not capitalized in the same way he origin...
by blessedtechie
Hello Africoders! 🌍Imagine waking up, grabbing your coffee, and starting your workday from the comfort of your home. No long commutes, no rigid office hours. The shift to remote work has become a significant trend, especially accelerated by the global events of recent years. Companies are embracing it, and so are employees.How was your imagination? Yeah, I know! As much as it has its pros, there are also cons to working remotely.Let me show you some pros and cons, then we go back to that imagination.### Pros of Remote Work* **Flexibility and Work-Life Balance:** You can tailor your sch...
by blessedtechie
Hello Africoders! 🌍Let me introduce you to the 7 Days Code Challenge, which we'll be doing every Thursday. In this challenge, a preferred language will be provided, but you're allowed to choose a language of your own.Today we'll be creating a To-Do List App and the preferred language is React.This is the daily breakdown:Day 1: Set up the project and create the basic structure.Day 2: Implement the UI for adding and displaying tasks.Day 3: Add functionality to mark tasks as complete.Day 4: Implement task editing and deletion.Day 5: Add local storage to save tasks.Day 6: Style the applica...
by blessedtechie
The software engineering landscape is exploding, and aspiring developers are scrambling to equip themselves with the in-demand skills to join the party. But with two main entry points - the traditional 4-year computer science (CS) degree and the intensive 6-month coding bootcamp - the decision can be a real brain teaser. There's no easy answer, as the "better" path depends on your goals, learning style, and resources.This post aims to shed light on both paths by hearing from software engineers who've taken each route. Let's get this rumble started!**CS Degree Champs:*** What did you find most...
by blessedtechie
A Narcissistic Number (or Armstrong Number) is a positive number which is the sum of its own digits, each raised to the power of the number of digits in a given base. In this Kata, we will restrict ourselves to decimal (base 10).For example, take 153 (3 digits), which is narcissistic:` 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153`and 1652 (4 digits), which isn't:````1^4 + 6^4 + 5^4 + 2^4 = 1 + 1296 + 625 + 16 = 1938````The Challenge:Your code must return true or false (not 'true' and 'false') depending upon whether the given number is a Narcissistic number in base 10.This may be True and False in your...
by blessedtechie
<r><p>Return the number (count) of vowels in the given string.</p><p>We will consider a, e, i, o, u as vowels for this Kata (but not y).</p><p>The input string will only consist of lower case letters and/or spaces.</p><p><img src="https://i.imgur.com/buVziYR.jpeg" alt="Image preview" class="markdown-image"></p></r>
by blessedtechie
About Q/A Section
Ask questions and get answers from the community.