What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-08 11:59:07
Number of Palindromic Substrings
Recursive soln: 1. Here base condition comes out to be i>j if we hit this condition, return 1. 2. We check for each and every i and j, if the characters are equal, if that is not the case, return 0. 3. Call the is_palindrome function again with inc... Add solution -
SQL 2021-10-07 23:42:04
sql trigger after update
-- SQL Server (update my_table after update on my_table) CREATE TRIGGER trigger_name ON my_table AFTER UPDATE AS IF UPDATE (col_name) -- Optional, for particular column BEGIN UPDATE my_table SET my_col_date = getdate() FROM my_table END; -- Oracle (i... Add solution -
SQL 2021-10-06 22:04:11
create trigger syntax
-- Oracle DB Syntax CREATE OR REPLACE TRIGGER {trigger_name} BEFORE | AFTER INSERT | UPDATE | DELETE ON {table_name} (FOR EACH ROW) {operation to be executed} -- for example CREATE TRIGGER log_updates AFTER INSERT OR UPDATE ON Person FOR EACH ROW I... Add solution -
Other 2021-10-06 03:35:06
for vs foreach loop
1- For Loop: -It is flexible to iterate array both ascending and descending order. For Each: -It iterates from initial to end 2- For Loop: -It runs until given condition become false For Each: -Keeps execution until last element get executed 3-... Add solution -
Javascript 2021-10-05 19:02:05
codebyte-intersection-challenge
function FindIntersection(){ //1) Grab the first and second elements to be compared let firstString = strArr[0] let secondString = strArr[1] //2) Create empty arrays to store elements, after converted from strings to numbers let firstElementArray =... Add solution -
Python 2021-10-05 14:51:03
create columns with respect to conditions
# create a list of our conditions conditions = [ (df['likes_count'] <= 2), (df['likes_count'] > 2) & (df['likes_count'] <= 9), (df['likes_count'] > 9) & (df['likes_count'] <= 15), (df['likes_count'] > 15) ] #... Add solution
Best helpers
Ranking is empty