Welcome to Algorithm Visualizer, an interactive online platform designed to bring algorithms to life through visualization. Whether you're a student, teacher, or professional, our platform provides an engaging way to explore and understand various algorithms.
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
| //check out blog | |
| // https://medium.com/@briankidiga.dev/ctrings-ffa556e69ff3 | |
| #include<stdio.h> | |
| #include "Main.h" | |
| int main(int argc, char* argv[]) | |
| { | |
| printf("Enter name : "); | |
| char n[64]; |
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 com.example | |
| import java.text.SimpleDateFormat | |
| import java.time.LocalDate | |
| import java.time.ZoneId | |
| import java.util.Date | |
| import java.util.Locale | |
| object DateUtils { |
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
| import os | |
| key = os.urandom(32).hex() | |
| print(key) |
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
| sealed class AppError( | |
| override val message: String? = null | |
| ) : Exception(){ | |
| data object SocketTimeOutError : AppError("Failed to connect, please check your internet connection and retry.") | |
| } |
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
| @Suppress("UNCHECKED_CAST") | |
| class MainViewModelFactory(val application: Application) : ViewModelProvider.Factory { | |
| override fun <T : androidx.lifecycle.ViewModel> create(modelClass: Class<T>): T { | |
| return MainViewModel(application) as T | |
| } | |
| } | |
| //example of usage in a composable | |
| LocalViewModelStoreOwner.current?.let { | |
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 interface JwtService { | |
| final String SECRET_KEY = ""; | |
| String generateToken( | |
| Map<String, Object> extraClaims, | |
| UserDetails userDetails | |
| ); |