Learn multiple algorithms to check whether a string is a rotation of another string including examples and complexity analysis.
Also find me here:
Baeldung Author
Luca Cambi
I am a senior software developer with 10+ years of experience. I have been working on many projects using different programming languages but accomplished moslty with Java and Javascript. I have experience in Cloud technologies and containerization using Docker. I believe that the code I write has an impact and can help in people's daily lives. I focus mainly on open-source programming and love Linux. I have two beautiful kids and love to spend time with them. I love playing guitar, watching movies and traveling as much as possible in my free time.
Here's what I've written (so far):
Baeldung on Java
- All
- Testing (2)
- Java String (2)
- Algorithms (2)
- Spring Boot (1)
- Java Concurrency (1)
- Java Array (1)
- JPA (1)
- Gradle (1)
- Core Java (1)
Setting up and Using Spock With Gradle
Learn how to configure Gradle dependencies to write specification tests with Spock and Spring.
Overriding Spring Beans in Integration Test
Filed under Spring Boot, Testing
In this tutorial, we learn how to override Spring beans in integration tests.
Passing Strings by Reference in Java
Filed under Java String
Learn how to change a method’s input String while preserving immutability and avoiding side effects.
Rotate Arrays in Java
Filed under Algorithms, Java Array
Learn how to rotate an array by k rotations with brute force and more complex algorithms like reverse or cyclic replacements.
Format Multiple ‘or’ Conditions in an If Statement in Java
Filed under Core Java
Learn how to improve the readability of multiple conditions in an if statement.
Returning a Value After Finishing Thread’s Job in Java
Filed under Java Concurrency
Learn how to return a value from a thread that has its job terminated
Difference Between JPA and Spring Data JPA
Filed under JPA
Learn how Spring Data JPA and JPA both work with some high-level overviews and code snippets.
Baeldung on Computer Science
- All
- Programming (2)
- Software Architecture (1)
Differences Between Faking, Mocking and Stubbing
Filed under Programming
Learn the differences between faking, mocking, and stubbing when using test implementations for software components.
System Design: Dependency Inversion Principle
Filed under Software Architecture
Learn about the Dependency Inversion Principle with examples and why we should use it.
Serialization vs. Marshaling
Filed under Programming
Learn how serialization and marshaling work and see their most common use cases.
Baeldung on Ops
- All
- Kubernetes (2)
- Docker (1)
Difference Between kubectl apply and kubectl create
Filed under Kubernetes
Learn how the kubectl object management works with kubectl create and kubectl apply.
Getting Started With K3s
Filed under Kubernetes
Learn the main features of K3s and create a simple cluster as an example.
Communicating With Docker Containers on the Same Machine
Filed under Docker
Explore how two containers can connect on the same machine using Docker Compose