groupBy method of Kotlin is used to group similar items of a collection. It is useful in many cases like we can group items based on type, length, object category, etc. It takes one selector function and based on that function it groups the items.
ReadA palindrome string is a string that is equal from both sides. For example, madam, radar, level, mom are palindrome strings. In this post, we will learn how to find if a string is palindrome or not in C++.
ReadI have discussed before on how to find all palindrome numbers in C++ in [this](https://www.codevscolor.com/c-plus-plus-check-palindrome) post. If the reverse of a number is equal to the number itself, it is called a palindrome number.
ReadThe header is not only for showing titles. It may also include buttons. Normally, user action related buttons are added to the right of the title, and the back button is added to the left. The button on the left side, i.e. the back button is added automatically if we push one new screen to the navigator. It pushes the screen and adds the button. The default back button is different. It is platform-specific. On iOS, it adds one label that says the previous screen title or says "Back". But we can customize and override the back press of this button as well.
ReadPython calendar module provides one HTMLCalendar class to get one HTML calendar. In this post, I will show you how to use the HTMLCalendar class with an example. It also provides different methods to get different types of HTML calendar results. This method is really useful if you want to get one calendar as a HTML.
ReadIn this tutorial, we will learn how to solve the missing number problem in C++. One array of numbers is given that holds from 1 to n with one number missing in the list. We need to write one program that will find that missing number.
ReadIn this post, I will show you how to add one image as the header title using react native navigation library. Mostly we use a text as the title for a screen.
ReadI have already explained to you how we can add one header and how to navigate between different screens in react native. Navigation Header is an important part in mobile application, also its style. It should follow a design pattern on all screens of your app to make it attractive. font etc.'
ReadThis method is defined in python calendar module. This is similar to yeardatescalendar() that we explained before. It returns one list of month rows. Each row contains width number of months that we pass as the second argument. The default value is 3. Each month contains between 4 to 6 weeks and each week contains 1 to 7 days. All entries of the dates are numbers. All days outside the month are zero.
ReadIn our previous post, we have seen how yeardatescalendar method works. yeardays2calendar is another method to get all days for a calendar year. It returns one list of month rows. Each row contains up to width number of months and each month contains weeks. The weekdays are a tuple of day and weekday number. If a day is not in a month, its number is 0.
Read