Skip to content

Web Development Snippets

Quick snippets of useful web dev content for web devs with a short attention span

How to pass props to a component inside of React-router?

August 19, 2019 ~ dmitrygoronkov ~ Leave a comment

Another wonderful HackerRank solution – Jumping on Clouds

August 19, 2019 ~ dmitrygoronkov ~ Leave a comment

Counting valleys from HackerRank

August 17, 2019August 17, 2019 ~ dmitrygoronkov ~ Leave a comment

This problem left me day dreaming, such a beautiful description :)))) Open post to view the solution. I made two different solutions. Please leave feedback 🙂

Checking if two words are Anagram

August 17, 2019 ~ dmitrygoronkov ~ Leave a comment

Anagram means two words having same number of letters like Dormitory and Dirty room. The solution is actually very simple. We have to strip each string from everything except letters using regex, than we have to bring them to lower case, and then we can sort them!!!! By sorting two different words will became same … Continue reading Checking if two words are Anagram

Flattening the array and array chunking

August 17, 2019 ~ dmitrygoronkov ~ Leave a comment

Finding the longest word in a string

August 17, 2019 ~ dmitrygoronkov ~ Leave a comment

Finding a max character and a classic FizzBuzz

August 17, 2019 ~ dmitrygoronkov ~ Leave a comment

Finding max character in the string: (please open the post to view the solution) Here is the solution for classic FizzBuzz problem:

Palindrome challenge and capitalizing letters

August 16, 2019August 17, 2019 ~ dmitrygoronkov ~ Leave a comment

We need to check if the string is a palindrome. Please open the post to see the solution; And here is how we can capitalize first letters of each word:

Reverse a string and a number :)

August 16, 2019August 17, 2019 ~ dmitrygoronkov ~ Leave a comment

Very simple using built in array methods! Please open post to see the solution Reverse any number in JS. Please open the post to see the solution! using console.log after each method:

Sock Merchant Solution

August 16, 2019 ~ dmitrygoronkov ~ Leave a comment

Problem: John works at a clothing store. He has a large pile of socks that he must pair by color for sale. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. For example, there are n=7 socks with ar=[1,2,1,2,1,3,2] colors . There is one pair … Continue reading Sock Merchant Solution

Posts navigation

Older posts

Get new content delivered directly to your inbox.

Join 1 other subscriber

Recent posts:

  • How to pass props to a component inside of React-router?
  • Another wonderful HackerRank solution – Jumping on Clouds
  • Counting valleys from HackerRank
  • Checking if two words are Anagram
  • Flattening the array and array chunking
Blog at WordPress.com.
Web Development Snippets
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Web Development Snippets
    • Already have a WordPress.com account? Log in now.
    • Web Development Snippets
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started