What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-08 09:39:01
create a random question generator php
<?php //Connect with mysql $db = new mysqli("host","user","pass","db"); //Perform the query to choose random questions $query = $db->query("SELECT * FROM `table` ORDER BY RAND() LIMIT 2... Add solution -
Java 2021-09-08 03:32:02
convert code python to java
#include <bits/stdc++.h> using namespace std; int main() { int m,ans=INT_MAX,I=-1,J=-1; cin>>m; vector<vector<int>> mat(m,vector<int>()); cin.ignore(); for(int i=0;i<m;i++) { string s; getline(cin,s);... Add solution -
C++ 2021-09-08 03:04:04
c++ debug memory allocation
// use valgrind for linux // use -fmudflap -lmudflap options with gcc, then start your program with MUDFLAP_OPTIONS=-print-leaks ./my_program. template<typename T> struct track_alloc : std::allocator<T> { typedef typename std::allocator&l... Add solution -
Other 2021-09-07 20:13:02
route guards flutter
final routes = { '/': (BuildContext context) => FutureBuilder<AuthState>( // This is my async call to sharedPrefs future: AuthProvider.of(context).authState$.skipWhile((_) => _ == null).first, builder: (BuildContext context, Asyn... Add solution -
Python 2021-09-07 09:02:02
python fastest fibonacci
#Python program to generate Fibonacci series until 'n' value n = int(input("Enter the value of 'n': ")) a = 0 b = 1 sum = 0 count = 1 print("Fibonacci Series: ", end = " ") while(count <= n): print(sum, end = " &quo... Add solution
Best helpers
Ranking is empty