This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Solution { | |
| public static String reverse(StringBuffer input) { | |
| StringBuffer buffer = new StringBuffer(input); | |
| final int len = (input.length() / 2); | |
| for (int i = 0; i < len; i++) { | |
| swap(buffer, i, input.length()-i-1); | |
| } | |
| return buffer.toString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new Vue({ | |
| el: '#exercise', | |
| data: { | |
| effectsStarted: false, | |
| effectsToggle: false, | |
| sad: 'sad', | |
| unhappy: 'unhappy', | |
| classes: [], | |
| styles: [], | |
| classActive: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.github.theapprenticewizard.twilliokata.controller; | |
| import com.twilio.twiml.*; | |
| import com.twilio.twiml.messaging.Body; | |
| import com.twilio.twiml.messaging.Message; | |
| import com.twilio.twiml.voice.Gather; | |
| import com.twilio.twiml.voice.Say; | |
| import org.springframework.http.MediaType; | |
| import org.springframework.stereotype.Controller; | |
| import org.springframework.web.bind.annotation.GetMapping; |